Skip to content

Instantly share code, notes, and snippets.

View digideskio's full-sized avatar

airbender digideskio

View GitHub Profile
@digideskio
digideskio / gist:557f591a24d7cb09937ed1c379d6bed3
Created October 3, 2017 17:13 — forked from lynsei/gist:ff0e6e62e1842220a876
instant-rancher-server-on-automated-ssl-in-10-lines-of-bash-code.sh
INSTANT RANCHER-SERVER ON AUTOMATED SSL in 10 Lines of Bash Code
# make a rancher-server:443 for ca-validated A+ SSL using Ubuntu-Trusty/jWilder-Nginx-Reverse-Proxy/LetsEncrypt+proxy-companion on AWS EC2 (or basically any cloud host using Ubuntu Trusty)
# by Dr. C.Hogan
# install docker fresh on ubuntu-trusty & set things up proper
sudo apt-get install apt-transport-https ca-certificates
sudo apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
sudo echo "deb https://apt.dockerproject.org/repo ubuntu-trusty main" >> /etc/apt/sources.list.d/docker.list; sudo apt-get-update
@digideskio
digideskio / etc-hosts-on-win.md
Created May 24, 2017 08:29 — forked from zenorocha/etc-hosts-on-win.md
/etc/hosts on Windows

1. Get your IP Address

echo `ifconfig $(netstat -nr | grep -e default -e "^0\.0\.0\.0" | head -1 | awk '{print $NF}') | grep -e "inet " | sed -e 's/.*inet //' -e 's/ .*//' -e 's/.*\://'`

2. Modify your hosts file

notepad

release modernizr in 10 easy steps

  1. compare HEAD with most recent release to determine new semver level (fundemental/breaking changes = bump major, new feature-detects/publically-exposed-util = bump minor, update to existing code (in non behavior changing way) = bump patch). Github compare view is handy here (e.g. https://github.com/Modernizr/Modernizr/compare/v3.3.1...master)
  2. update package.json version to new semver version
  3. run git tag ${semver} (e.g. git tag v3.4.0), then push the tags (git push --tags)
  4. npm publish
  5. log into the modernizr.com server
  6. cd ~/modernizr-neue
  7. npm update && bower update
  8. npm run deploy
  9. pm2 restart 0
#Block the APNIC range of IP addresses - a common source of hacking attempts
sudo ipfw -q add deny src-ip 43.0.0.0/8
sudo ipfw -q add deny src-ip 58.0.0.0/8
sudo ipfw -q add deny src-ip 59.0.0.0/8
sudo ipfw -q add deny src-ip 60.0.0.0/8
sudo ipfw -q add deny src-ip 61.0.0.0/8
sudo ipfw -q add deny src-ip 110.0.0.0/8
sudo ipfw -q add deny src-ip 111.0.0.0/8
sudo ipfw -q add deny src-ip 112.0.0.0/8
# encoding: utf8 1,1 Top# encoding: utf8
import argparse
from datetime import datetime
import json
from random import randint
import requests
import sys
from time import sleep
<?xml version="1.0" encoding="UTF-8"?>
<playlist xmlns="http://xspf.org/ns/0/" version="1">
<title>WebTV</title>
<creator>raspberry-remote</creator>
<info>https://github.com/dennmtr/raspberry-remote</info>
<trackList>
<track>
<title>ERT1</title>
<location>https://www.youtube.com/watch?v=pFp1gkaq-gE</location>
<extension application="https://github.com/dennmtr/raspberry-remote">
####################################
# BASIC REQUIREMENTS
# http://graphite.wikidot.com/installation
# http://geek.michaelgrace.org/2011/09/how-to-install-graphite-on-ubuntu/
# Last tested & updated 10/13/2011
####################################
cd
sudo apt-get update
sudo apt-get upgrade
@digideskio
digideskio / wp-erp-extends.php
Created January 9, 2017 23:47 — forked from ediamin/wp-erp-extends.php
WP ERP - HRM: Custom employee types
<?php
/**
* Plugin Name: WP ERP Extends
* Description: Custom filters and hooks for WP ERP
*/
add_filter( 'erp_hr_employee_types', 'erp_hr_employee_types_custom_types' );
function erp_hr_employee_types_custom_types( $default_types ) {
$custom_types = [
'custom_type_1' => 'Custom Type 1',
jquery.js:8625 POST https://lsapi.seomoz.com/linkscape/url-metrics/?Cols=133211401440&AccessID=…ape-9db4aecd4a&Expires=1467498160&Signature=F5Kl3FwLjtEmwURftEGiqSEpyPk%3D 401 (Your authentication failed. Check your authentication details and try again. For more information on signed authentication, see: http://apiwiki.moz.com/signed-authentication)
@digideskio
digideskio / VRUXUI.md
Created December 30, 2016 21:37 — forked from omgmog/VRUXUI.md
This is mirrored from the now unavailable http://vruxui.com/video-gallery

Click an image below to view the video on Youtube.

VRPlanetarium

Menu Interactions

Environment