Reference:
sudo fdisk -l
""" | |
This script trys to add and delete records from cloudflare based on the current status of the account in tailscale, and eliminate the need for TailScale's magic DNS. | |
Each domain will be created under a subdomain "SUBDOMAIN", that way it'll be easier to find and detele records. | |
IMPORTANT: this script is not very well tested and it tries to DELETE some DNS records. Use it at your own risk, especially if your SUBDOMAIN value is generic and it's also used elsewhere in your domain. | |
""" | |
import os | |
import requests |
Reference:
sudo fdisk -l
############################################################################ | |
# # | |
# ------- Useful Docker Aliases -------- # | |
# # | |
# # Installation : # | |
# copy/paste these lines into your .bashrc or .zshrc file or just # | |
# type the following in your current shell to try it out: # | |
# wget -O - https://gist.githubusercontent.com/jgrodziski/9ed4a17709baad10dbcd4530b60dfcbb/raw/d84ef1741c59e7ab07fb055a70df1830584c6c18/docker-aliases.sh | bash | |
# # | |
# # Usage: # |
$ uname -r
#!/bin/bash | |
# You need to install pv for it to work (sudo apt-get install pv) | |
# Don't forget to change the permissions on the file (sudo chmod +x white-rabbit.sh) | |
# Then just run ./white-rabbit.sh and enjoy | |
CURSOR="$USER@$HOSTNAME:${PWD}$" | |
echo -n $CURSOR | |
echo " Wake up, Neo..." | pv -qL 10 |
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:
#!/bin/bash | |
# | |
# What is that | |
# ============ | |
# | |
# This script will help you setting up your digital ocean | |
# infrastructure with Ansible v2.0+ and DO API v2 | |
# | |
# Usually, when working with DO, one is supposed to use digital_ocean.py | |
# inventory file, and spin up instances in a playbook. |
#!/bin/bash | |
# -------------------------------------------------------------------------------------------- | |
# Installs Ruby using rbenv/ruby-build on the Raspberry Pi (Raspbian) | |
# | |
# Run from the web: | |
# bash <(curl -s https://gist.githubusercontent.com/blacktm/8302741/raw/install_ruby_rpi.sh) | |
# -------------------------------------------------------------------------------------------- | |
# Set the Ruby version you want to install |
Activity.create( | |
hash = JSON.parse(params[:payload]) | |
:action => "deployed the intranet", | |
:details => params["identifier"], | |
:user_id => "1", | |
) |