This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- | |
| title: Disable IPV6 | |
| description: How to disable IPV6 on your OpenWrt router | |
| template: comments.html | |
| tags: [template, markdown] | |
| --- | |
| # OpenWrt Disable IPV6 | |
| The following steps will disable IPV6 on your OpenWrt router . All the steps are performed via the command line. You can performe them in the console of the router but the preferred way is via SSH. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /etc/config/network | |
| config interface 'loopback' | |
| option device 'lo' | |
| option proto 'static' | |
| option ipaddr '127.0.0.1' | |
| option netmask '255.0.0.0' | |
| config globals 'globals' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sudo pacman -Sy imagemagick | |
| for i in *.webp; do name=`echo "$i" | cut -d'.' -f1`; echo "$name"; convert "$i" "${name}.jpg"; done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| config defaults | |
| option input 'ACCEPT' | |
| option output 'ACCEPT' | |
| option forward 'REJECT' | |
| option synflood_protect '1' | |
| config zone | |
| option name 'lan' | |
| list network 'lan' | |
| option input 'ACCEPT' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| config interface 'loopback' | |
| option device 'lo' | |
| option proto 'static' | |
| option ipaddr '127.0.0.1' | |
| option netmask '255.0.0.0' | |
| config globals 'globals' | |
| option ula_prefix 'fd06:b29e:9a13::/48' | |
| option packet_steering '1' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # This script will increse the size of the LVM disk partition so that you can take advantage of additional space after increasing the virtual | |
| # disk size either through virtualbox, openstack, or some other virtualization tool | |
| if [ -z "$1" ] ; then | |
| echo "You must specify the disk device being extended, eg: /dev/sda or /dev/vda"; | |
| echo "Example Usage: ./extend-lvm.sh /dev/sda"; | |
| echo "Run 'fdisk -l' to see the existing devices and partitions. If there are more than one, this will also give you a clue as to which one has grown and needs to be modified"; | |
| exit 1 | |
| fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sudo nano /Library/LaunchAgents/com.fortinet.forticlient.credential_store.plist | |
| <key>RunAtLoad</key> | |
| <true/> | |
| <key>RunAtLoad</key> | |
| <false/> | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| cd /etc/pihole && sudo service pihole-FTL stop && sudo rm -rf pihole-FTL.db && sudo service pihole-FTL start && cd |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| macOS Command-Line Native tftpd: | |
| Configure your network interface for the proper server address for your device. Using System Preferences > Network is perhaps the easiest. | |
| Connect your device to the network interface | |
| Start tftpd | |
| $ sudo cp path/to/file/to/serve.bin /private/tftpboot/the_name_the_device_is_looking_for.bin | |
| $ sudo launchctl load -F /System/Library/LaunchDaemons/tftp.plist | |
| Confirm tfptd is running by looking for the UDP listener on port 69 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| HP pkg fails to install because it checks for os less then 12.0 | |
| expand contents of pkg into folder | |
| pkgutil --expand HewlettPackardPrinterDrivers-10.6.0.1.1.1602826228.pkg HewlettPackardPrinterDrivers-10.6.0.1.1.1602826228 | |
| Modify distribution file: | |
| if (system.compareVersions(system.version.ProductVersion, '12.0') > 0) { | |
| to be 13.0 or something higher |
NewerOlder