Steps I take when setting up a VPN server on Digital Ocean
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
using System; | |
using System.Diagnostics; | |
using System.IO; | |
using System.IO.Pipes; | |
using System.Management; | |
using System.Threading; | |
using System.Windows.Forms; | |
namespace steamswtor | |
{ |
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
defaults write com.apple.PowerChime ChimeOnAllHardware -bool true; open /System/Library/CoreServices/PowerChime.app & |
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/sh | |
defaults write com.apple.dock persistent-apps -array-add '{"tile-type"="spacer-tile";}'; killall Dock |
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 | |
wget http://codicefiscale.it/doRCf.php --post-data="codfisc=$1" 2> /dev/null | |
cat doRCf.php | awk -F'#' '{ print "SESSO: " $3 "\nDATA: " $4 "\nLUOGO: " $5 }' | |
rm doRCF.php |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>ANSIBlueColor</key> | |
<data> | |
YnBsaXN0MDDUAQIDBAUGKyxYJHZlcnNpb25YJG9iamVjdHNZJGFyY2hpdmVyVCR0b3AS | |
AAGGoKcHCBMZHSQoVSRudWxs1QkKCwwNDg8QERJcTlNDb21wb25lbnRzVU5TUkdCXE5T | |
Q29sb3JTcGFjZV8QEk5TQ3VzdG9tQ29sb3JTcGFjZVYkY2xhc3NPECgwLjI1NDkwMTk2 | |
MDggMC40NzQ1MDk4MDM5IDAuNjk4MDM5MjE1NyAxTxAmMC4yMDEyMTY5MzYxIDAuMzkx |
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 time | |
import json | |
import requests | |
# setup your variables! | |
data = dict(grant_type='password', client_id='MYCLIENTID', | |
client_secret='MYCLIENTSECRET', username='MYUSERNAME', | |
password='MYPASSWORD', scope='read_thermostat') |
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
[{"service":"webradio","name":"SomaFM: Groove Salad","uri":"http://somafm.com/groovesalad256.pls"},{"service":"webradio","name":"SomaFM: Illinois Street Lounge","uri":"http://somafm.com/illstreet130.pls"},{"service":"webradio","name":"SomaFM: Left Coast 70s","uri":"http://somafm.com/seventies320.pls"},{"service":"webradio","name":"SomaFM: ThistleRadio","uri":"http://somafm.com/thistle130.pls"},{"service":"webradio","name":"SomaFM: Sonic Universe","uri":"http://somafm.com/sonicuniverse192.pls"},{"service":"webradio","name":"SomaFM: Drone Zone","uri":"http://somafm.com/dronezone256.pls"},{"service":"webradio","name":"SomaFM: Secret Agent","uri":"http://somafm.com/secretagent130.pls"},{"service":"webradio","name":"EuropaRadioJazz HD","uri":"http://thesoundofjazz.net:8000/TheSoundOfJazzHD.m3u"},{"service":"webradio","name":"SomaFM: Indie Pop Rock","uri":"http://somafm.com/indiepop130.pls"},{"service":"webradio","name":"Audiophile Stream Network: Baroque","uri":"http://8.38.78.173:8045/listen.pls"},{"service":"we |
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 | |
import socket | |
import sys | |
if len(sys.argv) < 3: | |
print "Uso: wake.py <ADR> <MAC> (es: 192.168.1.255 00:11:22:33:44:55)" | |
sys.exit(1) | |
mac = sys.argv[2] |
OlderNewer