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
| /** | |
| * Disable the emoji's | |
| */ | |
| function disable_emojis() { | |
| remove_action( 'wp_head', 'print_emoji_detection_script', 7 ); | |
| remove_action( 'admin_print_scripts', 'print_emoji_detection_script' ); | |
| remove_action( 'wp_print_styles', 'print_emoji_styles' ); | |
| remove_action( 'admin_print_styles', 'print_emoji_styles' ); | |
| remove_filter( 'the_content_feed', 'wp_staticize_emoji' ); | |
| remove_filter( 'comment_text_rss', 'wp_staticize_emoji' ); |
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
| # Restore bootloader after Windows install | |
| bcdedit /enum firmware | |
| bcdedit /set {bootmgr} path \EFI\UBUNTU\SHIMX64.efi | |
| # Make Windows use UTC to match ubuntu | |
| Reg add HKLM\SYSTEM\CurrentControlSet\Control\TimeZoneInformation /v RealTimeIsUniversal /t REG_QWORD /d 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 configures WordPress file permissions based on recommendations | |
| # from http://codex.wordpress.org/Hardening_WordPress#File_permissions | |
| # | |
| # Author: Michael Conigliaro | |
| # | |
| WP_OWNER=changeme # <-- wordpress owner | |
| WP_GROUP=changeme # <-- wordpress group | |
| WP_ROOT=/home/changeme # <-- wordpress root directory |
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
| echo 0 >/sys/class/leds/led0/brightness | |
| echo 0 >/sys/class/leds/led1/brightness | |
| echo performance > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor | |
| echo performance > /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor | |
| echo performance > /sys/devices/system/cpu/cpu2/cpufreq/scaling_governor | |
| echo performance > /sys/devices/system/cpu/cpu3/cpufreq/scaling_governor | |
| exit 0 |
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
| # set current over USB to 1.2A | |
| max_usb_current=1 | |
| # overscan to adjust image position | |
| overscan_left=0 | |
| overscan_right=0 | |
| overscan_top=0 | |
| overscan_bottom=0 | |
| # HDMI config |
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 apt-get install --reinstall iptables | |
| update-alternatives --config iptables | |
| legacy | |
| net.ipv4.ip_forward = 1 | |
| sudo sysctl -p /etc/sysctl.conf | |
| iptables -A FORWARD -i eth0 -o ztuze4sgqk -j 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
| #include "DHT.h" | |
| #include <Wire.h> | |
| #include <Adafruit_BMP085.h> | |
| #include <ESP8266WiFi.h> | |
| #include <ESP8266HTTPClient.h> | |
| #define DHTPIN D5 | |
| #define DHTTYPE DHT22 |
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
| // install entware | |
| installentware // for coreelec | |
| wget -O - http://bin.entware.net/armv7sf-k3.2/installer/generic.sh | sh // for libreelec rasbperry 3 | |
| // update && install zerotier | |
| opkg update | |
| opkg install zerotier | |
| // start the daemon |
NewerOlder