Skip to content

Instantly share code, notes, and snippets.

$ sudo /Applications/Install\ OS\ X\ Mavericks.app/Contents/Resources/createinstallmedia --volume /Volumes/Untitled --applicationpath /Applications/Install\ OS\ X\ Mavericks.app --nointeraction
Password:
Erasing Disk: 0%... 10%... 20%...100%...
Copying installer files to disk...
Copy complete.
Making disk bootable...
Copying boot files...
Copy complete.
Done.
System Events Information
Time Device Event Type Elapse Time Errors
2013-10-05 19:07:05 192.168.089.041 HTTP Log In
2013-10-05 19:06:34 H/W Monitor Raid Powered On
2013-10-05 19:04:00 192.168.089.041 HTTP Log In
2013-10-05 19:03:18 192.168.089.020 HTTP Log In
2013-10-05 16:58:51 Raid Set # 000 Offlined
2013-10-05 16:54:29 RS232 Terminal VT100 Log In
2013-10-05 16:54:17 H/W Monitor Raid Powered On
2013-10-05 16:51:39 H/W Monitor Raid Powered On
@tioan
tioan / 0_reuse_code.js
Created November 1, 2013 10:07
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@tioan
tioan / Marked.sublime-build
Created April 28, 2014 16:40
$blah.sublime-build
{
"cmd": ["open","-a","/Applications/Marked.app","$file"],
"selector": "text.html.markdown"
}
firewall {
all-ping enable
broadcast-ping disable
group {
network-group BOGONS {
description "Invalid WAN networks"
network 10.0.0.0/8
network 100.64.0.0/10
network 127.0.0.0/8
network 169.254.0.0/16
@tioan
tioan / gitkeep
Last active August 29, 2015 14:19 — forked from simoncoulton/gitkeep
find . -type d -empty -exec touch {}/.gitkeep \;
cat bin/tftphere
#!/bin/sh
exec sudo dnsmasq -d --enable-tftp --port 0 --tftp-root $(pwd)
root@naddi:~# iwinfo
client0 ESSID: "paderborn.freifunk.net"
Access Point: A6:1C:FA:9E:C3:D8
Mode: Master Channel: 44 (5.220 GHz)
Tx-Power: 16 dBm Link Quality: unknown/70
Signal: unknown Noise: -94 dBm
Bit Rate: unknown
Encryption: none
Type: nl80211 HW Mode(s): 802.11an
Hardware: 168C:0033 168C:A120 [Atheros AR9580]
root@warehouse:/etc/nginx/sites-enabled# cat netdata
upstream backend {
# the netdata server
server 127.0.0.1:19999;
keepalive 64;
}
server {
# nginx listens to this
listen 80;
➜ ~ cat ~/.config/systemd/user/weechat.service
[Unit]
Description=Weechat IRC Client (in tmux)
[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/usr/bin/tmux -2 new-session -d -s irc /usr/bin/weechat
ExecStop=/usr/bin/tmux kill-session -t irc