Advanced Search
Search Results
47 total results found
Dealing with ISO Files with hdiutil
Creating an iso file from a directory hdiutil makehybrid -iso -joliet -o output_image.iso input_directory/ Mounting an iso file into /Volumes/ hdiutil mount source_image.iso
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 reader Identify the disk number diskutil list 2. Unmount the disk unmountDisk /dev/disk2 3. Write the image sudo dd bs=1m if=hassos_rpi3-2.12.img of=/dev/rdisk2 conv...
DNS Cache clear
dscacheutil -flushcache sudo killall -HUP mDNSResponder https://www.siteground.com/kb/how_to_clear_the_local_dns_cache_in_mac_os/
Linux auto-login on MySQL
Create file ~/.my.cnf and add the following lines, replace mysqluser and mysqlpass values with the correct ones [client] user=mysqluser password="mysqlpass" For safety, make this file readable to you only by running chmod 0600 ~/.my.cnf Next time you run mysq...
Encoding and collation
Changing database encoding and collation ALTER DATABASE `sua_base` CHARSET = Latin1 COLLATE = latin1_swedish_ci; https://pt.stackoverflow.com/questions/72139/qual-codificação-de-caracteres-collation-devo-usar-em-mysql
Exporting data
To export structure only, use this option on mysqldump: mysqldump [...] --no-data To export command result to csv file format: SELECT order_id,product_name,qty FROM orders WHERE foo = 'bar' INTO OUTFILE '/var/lib/mysql-files/orders.csv' FIELDS TERMINATED BY ',...
Useful commands
Show status show table status; Purging MySQL Binlog files To show binary logs mysql> SHOW BINARY LOGS; To Purge binary logs manually until some point mysql> PURGE BINARY LOGS TO 'binlog.000776'; To show binary logs mysql> SET GLOBAL binlog_expire_logs_secon...
Security
Iptables configuration to allow specific host connection to mysql: iptables -A INPUT -i eth0 -p tcp -m tcp --dport 3306 -s IP.ADD.RE.SS -j ACCEPT
Cloning existing machine on Vmware ESXI
http://www.mustbegeek.com/create-copy-of-existing-virtual-machine-in-esxi-server/
Notes
VDI /VHD Conversion With virtualbox https://www.sysprobs.com/vdi-vhd-convert-virtualbox-virtual-machines-virtual-pc
Cloning configuration
https://jcutrer.com/howto/networking/mikrotik/perfectrestore-script
Wireguard VPN setup
In this tutorial we will setup a VPN (Virtual Private Network). There are multiple types of VPN, in this tutorial we will focus on "remote access VPN" type. We will configure server and client and test the connection. WireGuard uses ChaCha20 Encryption Algorit...
Switching
3Com Choosing which firmware to boot verifying current versions: > show version setting next-active to the backup (before update) one: > boot system backup setting next-active to the active (most recent) one: > boot system active Reset to defaults: https://www...
Trunk between Cisco and Linux
Cisco configuration interface GigabitEthernet0/11 switchport trunk allowed vlan 200,231 switchport mode trunk switchport voice vlan 280 spanning-tree portfast end Kali Linux configuration /etc/networking/interfaces interface GigabitEthernet0/11 switchport tr...
Curiosities
Off by one error (OBOE) https://en.wikipedia.org/wiki/Off-by-one_error Layer 8 Issues https://en.wikipedia.org/wiki/Layer_8
Tools
Download entire site with wget and authentication $ wget --user=THE_USERNAME --password=THE_PASSWORD --recursive --no-parent https://SITE_URL/
Flashing Dell PERC H710 mini to IT mode
https://fohdeesha.com/docs/perc/
Laravel
supervisor https://laravel.com/docs/5.4/queues#supervisor-configuration Generate random string: <?php use Illuminate\Support\Str; $id = Str::random(9); Source: https://stackoverflow.com/questions/58152743/how-i-can-generate-the-unique-id-in-laravel