Skip to content

Ricardo Malla's Blog

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

Category: Uncategorized

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

Powershell: Office365 Create global rule NOT to send Read Receipts

Posted December 13, 2020 Ricardo MallaLeave a commentPosted in Uncategorized

New-TransportRule -RemoveHeader ‘Disposition-Notification-To’ -Name ‘Disable Read Receipt’ -StopRuleProcessing:$false -Mode ‘Enforce’ -Comments ‘ ‘ -RuleErrorAction ‘Ignore’ -SenderAddressLocation ‘Header’

Posts navigation

Previous 1 2 3 … 9 Next
Proudly powered by WordPress | Theme: Sydney by aThemes.