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
ii dh-python 1.20140128-1ubuntu8.2 all Debian helper tools for packaging Python libraries and applications
ii libpython-stdlib:amd64 2.7.5-5ubuntu3 amd64 interactive high-level object-oriented language (default python version)
ii libpython2.7:amd64 2.7.6-8ubuntu0.2 amd64 Shared Python runtime library (version 2.7)
ii libpython2.7-minimal:amd64 2.7.6-8ubuntu0.2 amd64 Minimal subset of the Python language (version 2.7)
ii libpython2.7-stdlib:amd64 2.7.6-8ubuntu0.2 amd64 Interactive high-level object-oriented language (standard library, version 2.7)
ii libpython3-dev:amd64 3.4.0-0ubuntu2 amd64 header files and a static library for Python (default)
ii libpython3-stdlib:amd64 3.4.0-0ubuntu2 amd64 interactive high-level object-oriented language (default python3 version)
ii libpyth
CREATE KEYSPACE bids WITH REPLICATION = { 'class' : 'SimpleStrategy', 'replication_factor' : 1 };
CREATE TABLE bids.bid_data (url varchar primary key, impressions bigint, bid_request_count bigint, response_200 bigint, response_204 bigint, bid_rate double, win_rate double, avergae_encounter_rate double);
CREATE INDEX ON bids.bid_data(impressions);
CREATE INDEX ON bids.bid_data(bid_request_count);
CREATE INDEX ON bids.bid_data(response_200);
CREATE INDEX ON bids.bid_data(response_204);
CREATE INDEX ON bids.bid_data(bid_rate);
CREATE INDEX ON bids.bid_data(win_rate);
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