Skip to content

Instantly share code, notes, and snippets.

View skaag's full-sized avatar
🏠
Working from home

Aric Fedida skaag

🏠
Working from home
View GitHub Profile
tcp 0 0 127.0.0.1:85 0.0.0.0:* LISTEN 9921/pvedaemon
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 1777/sshd
tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN 2006/master
tcp 0 0 0.0.0.0:59236 0.0.0.0:* LISTEN 1753/rpc.statd
tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN 1743/rpcbind
tcp6 0 0 :::22 :::* LISTEN 1777/sshd
tcp6 0 0 :::3128 :::* LISTEN 2050/spiceproxy
tcp6 0 0 :::25 :::* LISTEN 2006/master
tcp6 0 0 :::55227 :::* LISTEN 1753/rpc.statd
tcp6 0 0 :::8006 :::* LISTEN 9612/pveproxy
#!/bin/sh
# Some config params:
device_id=$(hostname | tr -cd "[:digit:]" )
device_port=$((22000+$device_id))
vnc_port=$((25000+$device_id))
remote_port=23456
host_addr=1.2.3.4
host_user=skaag
$:/etc/apt# apt-cache policy chromium-browser
chromium-browser:
Installed: (none)
Candidate: 37.0.2062.120-1~deb7u1
Version table:
37.0.2062.120-1~deb7u1 0
500 http://ftp.debian.org/debian/ stable/main armhf Packages
500 http://security.debian.org/ stable/updates/main armhf Packages
@skaag
skaag / gist:071f7a41d2c2600bd7d1
Created December 16, 2014 17:19
Meteor Map Generation
var redraw_map = function(){
var $map = $("#map")
// Prep
$map.gmap3({
clear: {
name:["marker", "infowindow"],
}
});
@skaag
skaag / keybase.md
Created December 16, 2014 03:29
keybase.md

Keybase proof

I hereby claim:

  • I am skaag on github.
  • I am skaag (https://keybase.io/skaag) on keybase.
  • I have a public key whose fingerprint is 3CE2 713F 5DBE 2BDF 8DE3 D038 EC8C 9B6E 201F 428C

To claim this, I am signing this object:

SELECT CASE
WHEN ("json" -> "key_to_set") IS NULL THEN "json"
ELSE COALESCE(
(SELECT ('{' || string_agg(to_json("key") || ':' || "value", ',') || '}')
FROM (SELECT *
FROM json_each("json")
WHERE "key" <> "key_to_set"
UNION ALL
SELECT "key_to_set", to_json("value_to_set")) AS "fields"),
'{}'
{"_app_guid":"QCLYt",
"cust_phone_num":"+1 555 123 1234",
"account_number":"90714-66222",
"items": [{
"name":"Florida Power & Light",
"icon":"utilities/FPL.png",
"price":84,
"fee":1,
"credit":0,
"total":86}],
[1729800.656019] [Hardware Error]: CPU:16 MC4_STATUS[-|CE|MiscV|-|AddrV|-|Poison|CECC]: 0x9d514c40001d011b
[1729800.656262] [Hardware Error]: MC4_ADDR: 0x0000000befc99400
[1729800.656367] [Hardware Error]: Northbridge Error (node 4): L3 cache tag error.
[1729800.656584] [Hardware Error]: cache level: L3/GEN, tx: GEN, mem-tx: RD
server {
listen 192.168.1.5:443 ssl;
server_name skaag.net;
root /home/skaag/sites/skaag.net/htdocs;
ssl_certificate /home/skaag/sites/ssl/skaag.net.pem;
ssl_certificate_key /home/skaag/sites/ssl/skaag.net.key;
location /r/ {
2014-07-04T21:55:01Z crond[33402]: crond: USER root pid 298045 cmd /sbin/hostd-probe ++group=host/vim/vmvisor/hostd-probe
2014-07-04T21:55:01Z syslog[298047]: starting hostd probing.
2014-07-04T21:55:07Z syslog[298047]: hostd probing is done.