Skip to main content

Recently Updated Pages

Encoding and collation

IT MySQL

Changing database encoding and collation ALTER DATABASE `sua_base` CHARSET = Latin1 COLLATE = lat...

Updated 1 month ago by Diogo Gonçalo Lourenço

Exporting data

IT MySQL

To export structure only, use this option on mysqldump: mysqldump [...] --no-data To export comma...

Updated 1 month ago by Diogo Gonçalo Lourenço

Useful commands

IT MySQL

Show status  show table status; Purging MySQL Binlog files   To show binary logs mysql> SHOW BINA...

Updated 1 month ago by Diogo Gonçalo Lourenço

Security

IT MySQL

Iptables configuration to allow specific host connection to mysql: iptables -A INPUT -i eth0 -p t...

Updated 1 month ago by Diogo Gonçalo Lourenço

Cloning existing machine on Vmware ESXI

IT Virtualization

http://www.mustbegeek.com/create-copy-of-existing-virtual-machine-in-esxi-server/

Updated 1 month ago by Diogo Gonçalo Lourenço

Dealing with ISO Files with hdiutil

IT MacOS

Creating an iso file from a directory hdiutil makehybrid -iso -joliet -o output_image.iso input_d...

Updated 1 month ago by Diogo Gonçalo Lourenço

Writing image to SD card

IT MacOS

These are the steps to write an raspberry pi OS image to an SD card on MacOS 1. Insert card on re...

Updated 1 month ago by Diogo Gonçalo Lourenço

DNS Cache clear

IT MacOS

  dscacheutil -flushcache sudo killall -HUP mDNSResponder https://www.siteground.com/kb/how_to_cl...

Updated 1 month ago by Diogo Gonçalo Lourenço

Linux auto-login on MySQL

IT MySQL

Create file ~/.my.cnf and add the following lines, replace mysqluser and mysqlpass values with th...

Updated 1 month ago by Diogo Gonçalo Lourenço

Console on serial port

IT Linux Administration

Example using RedHat Linux 6.0 Using lilo bootloader Edit /etc/lilo.conf append="console=tty0 con...

Updated 1 month ago by Diogo Gonçalo Lourenço

Some useful commands

IT Linux Administration

Here is how to join two files side by side in columns, delimited by ";" paste file1 file2 -d ";"  

Updated 1 month ago by Diogo Gonçalo Lourenço

Ramdisk

IT Linux Administration

Creating a ramdisk for fast read/write and comparing it with HDD/SSD drive using dd: # Creating a...

Updated 1 month ago by Diogo Gonçalo Lourenço

Aliases on shell

IT MacOS

Since .bashrc is not working, i managed to do some tricks Edit /etc/profile and add the following...

Updated 1 month ago by Diogo Gonçalo Lourenço

Securely delete files and directories

IT Linux Administration

Shred shred -zvu -n 3 fileToDelete Wipe wipe -rfi privateDirectory/* SRM (secure remove) srm -vz ...

Updated 1 month ago by Diogo Gonçalo Lourenço

rsync

IT Linux Administration

https://serverfault.com/questions/529287/rsync-creates-a-directory-with-the-same-name-inside-of-d...

Updated 1 month ago by Diogo Gonçalo Lourenço

IPTables

IT Linux Administration

Allow All Incoming HTTP   sudo iptables -A INPUT -p tcp --dport 80 -m conntrack --ctstate NEW,ES...

Updated 1 month ago by Diogo Gonçalo Lourenço

Mounting ISO images under FreeBSD

IT Linux Administration

https://makandracards.com/jan0sch/13431-mounting-iso-images-under-freebsd  

Updated 1 month ago by Diogo Gonçalo Lourenço

SSH / SCP without known_hosts check

IT Linux Administration

When we want to connect to a remote host using different credentials and we have automatic login ...

Updated 1 month ago by Diogo Gonçalo Lourenço

Ubuntu startup mode

IT Linux Administration

  Show current default target sudo systemctl get-default To start in multi-user mode (text mode) ...

Updated 1 month ago by Diogo Gonçalo Lourenço

Testing networking services

IT Linux Administration

Netcat Testing networking services to troubleshoot communications can be easily done with netcat ...

Updated 1 month ago by Diogo Gonçalo Lourenço