This file contains 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.txt | |
dtoverlay=dwc2 | |
cmdline.txt | |
after rootwait add: | |
modules-load=dwc2,g_ether | |
This file contains 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
[Unit] | |
Description=Camera streamer for raspberry pi | |
After=network-online.target | |
Wants=network-online.target | |
[Service] | |
ExecStart=/usr/local/bin/mjpg_streamer -i "input_uvc.so -r 1280x720 -q 100 -y -d /dev/video0" -o "output_http.so -p 8090" | |
[Install] | |
WantedBy=multi-user.target |
This file contains 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
#!/usr/bin/env python | |
# !/usr/bin/python | |
#-------------------------------------- | |
# ___ ___ _ ____ | |
# / _ \/ _ \(_) __/__ __ __ | |
# / , _/ ___/ /\ \/ _ \/ // / | |
# /_/|_/_/ /_/___/ .__/\_, / | |
# /_/ /___/ | |
# | |
# bmp180.py |
This file contains 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 |
This file contains 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 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 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 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 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 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 |
OlderNewer