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
*.aux | |
*.glo | |
*.idx | |
*.log | |
*.toc | |
*.ist | |
*.acn | |
*.acr | |
*.alg | |
*.bbl |
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 | |
HOST=192.168.0.1 | |
USER=admin | |
PASS=password | |
curl --cookie-jar cookies.txt http://${HOST}/login.asp -s | |
curl --cookie cookies.txt --cookie-jar cookies.txt --data "user=${USER}&pws=${PASS}" http://${HOST}/goform/login -s | |
curl --cookie cookies.txt --cookie-jar cookies.txt --data "dir=admin/&WFReset=Wifi%%20Factory%%20Reset%%20&file=wireless" http://${HOST}/goform/Wls -s | |
curl --cookie cookies.txt http://${HOST}/goform/logout -s |
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/sh | |
# Place in /etc/motd.d and drop the .sh suffix. | |
echo -e "\n\033[1mWelcome to Gentoo Linux!\033[0m" | |
echo -e "\nThis server is maintained by \033[1m$(cat /etc/maintainer)\033[0m." | |
echo -e "Contact \033[1m$(cat /etc/maintainer-address)\033[0m for support." | |
echo -e "\n \033[1;32m*\033[0m $(cat /etc/gentoo-release)" |
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 | |
# | |
# Author: Patrick Hieber - github.com/phieber | |
# | |
# This work is licensed under a GNU General Public License (GPLv3) Version 3.0 http://www.gnu.org/licenses/gpl-3.0.html | |
cleanup() { | |
rm -rf /tmp/Gentoo* /tmp/root.tar.xz /tmp/boot.tar.xz /tmp/*.json /tmp/partition_setup.sh /tmp/rpi* | |
find /var/www/de/trickhieber/pa/rpi/htdocs/geNtOOBS* -mtime +1 -exec rm {} \; |
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 <Adafruit_GPS.h> | |
#include <SD.h> | |
#include <SPI.h> | |
#include <XMLWriter.h> | |
Adafruit_GPS GPS(&Serial3); | |
// Set GPSECHO to 'false' to turn off echoing the GPS data to the Serial console | |
// Set to 'true' if you want to debug and listen to the raw GPS sentences. | |
#define GPSECHO true |
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 | |
cd /tmp | |
# SDK | |
git clone --recursive https://github.com/pfalcon/esp-open-sdk.git | |
cd esp-open-sdk && make | |
## add it to the PATH | |
export PATH=/tmp/esp-open-sdk/xtensa-lx106-elf/bin:$PATH |
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
import network | |
import gc | |
import webrepl | |
import esp | |
esp.osdebug(None) | |
ap_if = network.WLAN(network.AP_IF) | |
sta_if = network.WLAN(network.STA_IF) |
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
# clone micropython | |
cd unix | |
make axtls | |
make | |
./micropython -m upip install micropython-umqtt.simple | |
./micropython -m upip install micropython-umqtt.robust | |
./micropython -m upip install micropython-time | |
make clean | |
make axtls | |
make |
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 | |
echo 'deb http://deb.torproject.org/torproject.org xenial main' > /etc/apt/sources.list.d/tor.list | |
echo 'deb-src http://deb.torproject.org/torproject.org xenial main' >> /etc/apt/sources.list.d/tor.list | |
gpg --keyserver keys.gnupg.net --recv A3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89 | |
gpg --export A3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89 | sudo apt-key add - | |
apt-get update | |
apt-get install -y tor deb.torproject.org-keyring onioncat apparmor-utils dstat patch curl vim-nox |
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 | |
# https://github.com/marcan/takeover.sh | |
# | |
# Allows to install another Linux flavor like e.g. Gentoo even if the VPS hoster doesn't offer/allow you to do so. | |
# | |
# First argument: the deep link to the sysresccd iso image | |
set -o nounset | |
/etc/init.d/apache2 stop |
OlderNewer