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/.*\://'`
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
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 |
- 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)
- update package.json version to new semver version
- run
git tag ${semver}
(e.g.git tag v3.4.0
), then push the tags (git push --tags
) - npm publish
- log into the modernizr.com server
cd ~/modernizr-neue
npm update && bower update
npm run deploy
pm2 restart 0
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
#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 |
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
# 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 | |
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"?> | |
<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"> |
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
#################################### | |
# 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 |
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
<?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', |
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
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) |