Recently Updated Pages
jQuery
Select2 Getting select2 values programmatically: $('#mySelect2').val('1'); // Select the op...
Security
Iptables configuration to allow specific host connection to mysql: iptables -A INPUT -i eth0 -p ...
Exporting data
To export structure only, use this option on mysqldump: mysqldump [...] --no-data To export com...
Cloning configuration
https://jcutrer.com/howto/networking/mikrotik/perfectrestore-script
Some useful commands
Here is how to join two files side by side in columns, delimited by ";" paste file1 file2 -d ";"...
Console on serial port
Example using RedHat Linux 6.0 Using lilo bootloader Edit /etc/lilo.conf append="console=tty0 ...
Mounting ISO images under FreeBSD
https://makandracards.com/jan0sch/13431-mounting-iso-images-under-freebsd
Flashing Dell PERC H710 mini to IT mode
https://fohdeesha.com/docs/perc/
DNS Cache clear
dscacheutil -flushcache sudo killall -HUP mDNSResponder https://www.siteground.com/kb/how_t...
Tools
Download entire site with wget and authentication $ wget --user=THE_USERNAME --password=THE_...
Testing networking services
Netcat Testing networking services to troubleshoot communications can be easily done with netcat...
IPTables
Allow All Incoming HTTP sudo iptables -A INPUT -p tcp --dport 80 -m conntrack --ctstate NEW...
rsync
https://serverfault.com/questions/529287/rsync-creates-a-directory-with-the-same-name-inside-of-d...
Securely delete files and directories
Shred shred -zvu -n 3 fileToDelete Wipe wipe -rfi privateDirectory/* SRM (secure remove) srm...
Curiosities
Off by one error (OBOE) https://en.wikipedia.org/wiki/Off-by-one_error Layer 8 Issues https:...
Writing image to SD card
These are the steps to write an raspberry pi OS image to an SD card on MacOS 1. Insert card on r...
Services
Managing services with systemctl Start sudo systemctl start application.service Stop sudo sys...
Aula 6
Identificação dos riscos e ameaças Threat Analysis - criar controlos que respondam às a...
Dealing with ISO Files with hdiutil
Creating an iso file from a directory hdiutil makehybrid -iso -joliet -o output_image.iso input_...
Ubuntu startup mode
Show current default target sudo systemctl get-default To start in multi-user mode (text mo...