#!/usr/bin/env bash | |
DUCKPATH=~/duckdns | |
TOKEN=changeme | |
DOMAINS=steelcomputers | |
curl -sSv "https://www.duckdns.org/update?domains=${DOMAINS}&token=${TOKEN}&ip=" \ | |
2>> ${DUCKPATH}/stderr.log \ | |
>> ${DUCKPATH}/stdout.log | |
printf ' - ' >> ${DUCKPATH}/stdout.log | |
date >> ${DUCKPATH}/stdout.log |
#!/usr/bin/python | |
"""Startup script.""" | |
import os | |
from subprocess import check_output | |
DRIVE_PARENT = '/Users/myusername/Shares' |
#!/usr/bin/python | |
# -*- coding: utf-8 -*- | |
# Parsea la página de busquedas de DailyMotion para encontrar | |
# episodios de Detective Conan, busca las URL y las imprime, | |
# para usar junto con JDownloader | |
import urllib2 | |
import time | |
from BeautifulSoup import BeautifulSoup |
#!/usr/bin/env python | |
import requests | |
import sys | |
#************************************# | |
# User Serviceable Stuff # | |
#************************************# | |
TOKEN = 'YOUR TOKEN' | |
DOMAIN = 'YOURSUBDOMAIN' | |
DEBUG = False | |
## End of user serviceable stuff... |
import urllib2 | |
domains = ['YOUR_DOMAIN1', 'YOUR_DOMAIN2'] | |
token = 'YOUR_ACCESS_TOKEN' | |
ip_check_url = 'http://icanhazip.com' | |
def get_public_ip(): | |
response = urllib2.urlopen(url=ip_check_url) |
Start with a fresh Ubuntu Server 16.04 installation.
NOTE: In the commands and files below, be sure to replace <yourusername>
with your username and <yourgroupname>
with your group name (probably the same as your username). Also, replace <yourhostname>
with your server's hostname.
- Add the latest mono apt source (from instructions at http://www.mono-project.com/download/#download-lin-ubuntu):
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
echo "deb http://download.mono-project.com/repo/ubuntu xenial main" | sudo tee /etc/apt/sources.list.d/mono-official.list
sudo apt update
I screwed up using git ("git checkout --" on the wrong file) and managed to delete the code I had just written... but it was still running in a process in a docker container. Here's how I got it back, using https://pypi.python.org/pypi/pyrasite/ and https://pypi.python.org/pypi/uncompyle6
apt-get update && apt-get install gdb
This is a quick-and-dirty guide to setting up a Raspberry Pi as a "router on a stick" to PrivateInternetAccess VPN.
Install Raspbian Jessie (2016-05-27-raspbian-jessie.img
) to your Pi's sdcard.
Use the Raspberry Pi Configuration tool or sudo raspi-config
to:
android.permission.ACCESS_ALL_DOWNLOADS | |
android.permission.ACCESS_BLUETOOTH_SHARE | |
android.permission.ACCESS_CACHE_FILESYSTEM | |
android.permission.ACCESS_CHECKIN_PROPERTIES | |
android.permission.ACCESS_CONTENT_PROVIDERS_EXTERNALLY | |
android.permission.ACCESS_DOWNLOAD_MANAGER | |
android.permission.ACCESS_DOWNLOAD_MANAGER_ADVANCED | |
android.permission.ACCESS_DRM_CERTIFICATES | |
android.permission.ACCESS_EPHEMERAL_APPS | |
android.permission.ACCESS_FM_RADIO |