Skip to content

Ricardo Malla's Blog

  • Home
  • Information Technology
    • O/S
    • Databases
    • Software
  • Life
    • Health
  • Ideas
  • Notes

Category: Uncategorized

jenkins: scripts to locate shell commands

Posted January 7, 2021 Ricardo MallaLeave a commentPosted in Uncategorized

  locate config.xml | grep ‘/var/lib/jenkins’     grep -R ‘/home/Scripts/’ /var/lib/jenkins/jobs/ | grep config.xml

MySQL: Set primary key and autoincrement

Posted December 23, 2020December 28, 2020 Ricardo MallaLeave a commentPosted in Uncategorized

ALTER TABLE XXXXXX ADD PRIMARY KEY (ID); ALTER TABLE XXXXXX MODIFY id int NOT NULL AUTO_INCREMENT;   ALTER TABLE proxy_ips ADD UNIQUE (proxy); o select a DB: use DB_NAME;

Apache: mod_rewrite not affecting my directory

Posted December 21, 2020December 21, 2020 Ricardo MallaLeave a commentPosted in Uncategorized

  The .htaccess on my local directory is not being considered. if this is the case go to:   go to /etc/apache2/apache2.conf and change this from <Directory /var/www/> Options Indexes FollowSymLinks AllowOverride none Require all granted to <Directory /var/www/> Options […]

Python: imaplib – no way to sort feched uids by date

Posted December 19, 2020 Ricardo MallaLeave a commentPosted in Uncategorized

One could instinctively think that when you search your emails using imaplib as per below, and you get a list of all the uids of the emails that john doe has sent, that there’s a correlation between the UID and […]

Bash: Execute .sql file from bash script

Posted December 15, 2020 Ricardo MallaLeave a commentPosted in Uncategorized

  mysql -u user -p < db.sql

Posts navigation

1 2 … 8 Next
Proudly powered by WordPress | Theme: Sydney by aThemes.