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 | |
function get_packages() { | |
packages="dnsmasq audacious elinks filezilla build-essential \ | |
lua5.3 screen tmux vim tree libpython-dev python-pip python-setuptools \ | |
python-django postgresql x11vnc libqt5webkit5 patchelf rpm2cpio \ | |
libatasmart-bin smartmontools shellcheck libqt5webkit5 cmake scons tox \ | |
qconf xserver-xorg-dev bison linux-headers-$(uname -r).* libssl-dev \ | |
libmicrohttpd-dev net-tools john wamerican-insane file patch diffutils \ | |
iw libjsoncpp-dev libcurl4-openssl-dev shellinabox figlet toilet i3 \ | |
clang device-tree-compiler rsync luakit qt5-default geany cifs-utils \ |
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
# | |
# Sample configuration file for ISC dhcpd for Debian | |
# | |
# $Id: dhcpd.conf,v 1.1.1.1 2002/05/21 00:07:44 peloy Exp $ | |
# | |
# The ddns-updates-style parameter controls whether or not the server will | |
# attempt to do a DNS update when a lease is confirmed. We default to the | |
# behavior of the version 2 packages ('none', since DHCP v2 didn't | |
# have support for DDNS.) |
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 | |
#assuming appliance is a dns server on another network | |
#and you want to be able to talk to those clients on that network | |
#and you can ssh into the appliance | |
#this might be useful if you dont want to use iptables | |
appliance="192.168.100.76" | |
route add -net 172.18.0.0 netmask 255.255.0.0 gw "$appliance" | |
ssh root@"$appliance" route add -net 172.18.0.0 netmask 255.255.0.0 gw 172.18.0.1; echo "1" > /proc/sys/net/ipv4/ip_forward; |
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 | |
if [ $UID != 0 ]; then echo "Please run as root"; exit 1; fi | |
SUBNET_ADDRESS='10.0.0.1' | |
SUBNET_RANGE='10.0.0.2,10.0.0.100,12h' | |
INTERNET="eno1" #upstream | |
SUBNET="enp7s0f0" #downstream | |
ifconfig "$SUBNET" "$SUBNET_ADDRESS" #set your ip for downstream | |
#ip addr add "$SUBNET_ADDRESS" dev "$SUBNET" |
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
/*************************************************** | |
This is our GFX example for the Adafruit ILI9341 Breakout and Shield | |
----> http://www.adafruit.com/products/1651 | |
Check out the links above for our tutorials and wiring diagrams | |
These displays use SPI to communicate, 4 or 5 pins are required to | |
interface (RST is optional) | |
Adafruit invests time and resources providing this open source code, | |
please support Adafruit and open-source hardware by purchasing | |
products from Adafruit! |
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
#!ipxe | |
set serverip 172.18.0.1 | |
set tftpboot tftp://${serverip} | |
:menu | |
menu iPXE boot menu | |
item --key w win10 Le Windows 10 Boot | |
choose os | |
goto ${os} |
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 | |
function scraper() | |
{ | |
#first variable is keyword, second is site you want searched, 3rd is the item number in question | |
URL=$(elinks "https://www.google.com/search?ei=vAXaWsCBL9OSjwSH-YPgBg&q=+"$1"+"$2"+"$3 | grep -i $2 | grep -m1 url?q | sed 's|https://www.google.com/url?q=||g' | sed 's|&sa.*||g' | awk -F' ' '{print $2}') | |
# ^standard web search string ^only site results ^url formatting ^strip google prefix ^strip google suffix ^URL only | |
sleep 5 | |
echo $URL | |
} |
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 -y gcc \ | |
pkg-config \ | |
libarchive13 \ | |
libarchive-dev \ | |
libcurl3 \ | |
libcurl3-dev \ | |
libgpgme11 \ | |
libgpgme11-dev \ | |
autogen \ | |
autoconf \ |
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/python | |
import subprocess, curses, curses.panel, os | |
from time import sleep | |
from menus import * #get all those stats | |
################################################# | |
#AVAILABLE BOARDS: opipc, opiz, opione, neo | |
board = neo | |
############################################ | |
COLUMNS=79 #default tty size - 1 | |
LINES=24 |
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/python | |
import curses | |
from time import sleep | |
curses.initscr() | |
string = "this is a really fun scrolling string " | |
def scroll(stdscr): | |
try: | |
curses.curs_set(0) |