Skip to content

Instantly share code, notes, and snippets.

@s-schumann
s-schumann / homer.yml
Last active February 6, 2020 11:19
Install latest Homer from repo with Ansible
---
- hosts: all
become: yes
pre_tasks:
- name: System update
apt:
update_cache: yes
cache_valid_time: 3600
@s-schumann
s-schumann / web-servers.md
Created March 8, 2016 19:51 — forked from willurd/web-servers.md
Big list of http static server one-liners

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000
@s-schumann
s-schumann / gist:842b2065bea86894af20
Created December 29, 2014 13:05
Protect window.console method calls, e.g. console is not defined
// Link: https://stackoverflow.com/questions/3326650/console-is-undefined-error-for-internet-explorer/16916941#16916941
<script type="text/javascript">
/**
* Protect window.console method calls, e.g. console is not defined on IE
* unless dev tools are open, and IE doesn't define console.debug
*/
(function() {
if (!window.console) {
window.console = {};
}
@s-schumann
s-schumann / gist:5b45d14f3e110456c2ba
Created May 20, 2014 15:58
Ping each IP on subnet
nmap -n -sP 192.168.1.0/24
@s-schumann
s-schumann / keybase.md
Created March 29, 2014 18:30
keybase.md

Keybase proof

I hereby claim:

  • I am s-schumann on github.
  • I am schumann (https://keybase.io/schumann) on keybase.
  • I have a public key whose fingerprint is 2EF4 3CFE 9ABA 403F 301A 85CE 48BC 4B67 ADBF 449A

To claim this, I am signing this object:

@s-schumann
s-schumann / new_gist_file.sh
Created November 11, 2013 09:48
Download file from speedtest
wget --output-document=/dev/null http://speedtest.wdc01.softlayer.com/downloads/test500.zip