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 | |
auth_email='YOUR_EMAIL' | |
auth_key='YOUR_API_KEY' | |
zone_id='YOUR_ZONE_ID' | |
#you must create the record before using this script | |
record_id='YOUR_RECORD_ID' | |
host_name='YOUR_HOST_NAME' |
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
const fs = require("fs"); | |
const login = require("facebook-chat-api"); | |
login({appState: JSON.parse(fs.readFileSync('appstate.json', 'utf8'))}, (err, api) => { | |
if(err) return console.error(err); | |
api.setOptions({selfListen: true}); | |
api.listen((err, event) => { | |
if(err) return console.error(err); |
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
// ==UserScript== | |
// @name vmware open console in new tab | |
// @namespace http://agartner.com | |
// @version 0.2 | |
// @description opens vmrc console in new tab rather than window. also forces html5 console if html5 = true. forces external if externalConsle = true | |
// @match https://vcloud.ialab.us/cloud/org/* | |
// @copyright 2014-2017, Alex Gartner | |
// ==/UserScript== | |
unsafeWindow.openPopoutConsole = function(vmName, vmId, vAppName, vmDevicesAvailable, buttonLabels, miscLabels, confirmationLabels, isVmrc) { |
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
[Unit] | |
Description=Forward TCP from 9000 to 9001 (bidirectional) | |
After=network.target | |
[Service] | |
Type=simple | |
User=nobody | |
Group=nobody | |
ExecStart=/usr/bin/socat TCP-LISTEN:9000,reuseaddr,fork TCP:9001 | |
Restart=always |
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 | |
cd /sys/class/hwmon | |
for dir in $(ls); do | |
cd $dir | |
if [[ $(cat name) = "amdgpu" ]]; then | |
echo 1 > pwm1_enable | |
cat pwm1_max > pwm1 | |
fi | |
cd .. |
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 python2 | |
import sys | |
import os | |
import tempfile | |
import shutil | |
import hashlib | |
import time | |
import re | |
import argparse |
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 | |
lex "$1" | |
if [[ -n "$2" ]]; then | |
gcc lex.yy.c -ll -o "$2" | |
else | |
gcc lex.yy.c -ll | |
fi | |
rm lex.yy.c |
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
/** | |
* Static pie charts | |
*/ | |
span { | |
z-index:100; | |
position:fixed; | |
width: 115px; | |
left: 0; | |
text-align:center; |
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 bash | |
NGINX_ROOT='/usr/local/etc/nginx/' | |
BASE_CONF_NAME='proxy_template.conf' | |
CERT_DIR='keys/' | |
CHALLENGE_DIR='/var/letsenc-challenge/.well-known/acme-challenge/' | |
ACME_TINY_DIR='/opt/acme-tiny/' | |
ROUTER_IP='138.247.115.10' | |
RENEW_SCRIPT_PATH='/opt/acme-tiny/renewCerts.sh' |
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 | |
#run to setup | |
#iptables -N root-ban | |
#iptables -A root-ban -j RETURN | |
#iptables -A INPUT -j root-ban | |
#uncomment if cron | |
#export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin |