Skip to content

Instantly share code, notes, and snippets.

View ted-gould's full-sized avatar
🏠
Working from home

Ted Gould ted-gould

🏠
Working from home
View GitHub Profile
@ted-gould
ted-gould / tcp.dump
Created June 8, 2017 16:07
TCP Dump Results failing 7, 9, 17
10:55:36.459046 IP 127.0.0.1.39622 > 127.0.0.1.10000: Flags [S], seq 2666891434, win 43690, options [mss 65495,sackOK,TS val 3566109157 ecr 0,nop,wscale 7], length 0
10:55:36.459079 IP 127.0.0.1.10000 > 127.0.0.1.39622: Flags [S.], seq 1896085292, ack 2666891435, win 43690, options [mss 65495,sackOK,TS val 3566109157 ecr 3566109157,nop,wscale 7], length 0
10:55:36.459111 IP 127.0.0.1.39622 > 127.0.0.1.10000: Flags [.], ack 1, win 342, options [nop,nop,TS val 3566109157 ecr 3566109157], length 0
10:55:36.459561 IP 127.0.0.1.39622 > 127.0.0.1.10000: Flags [P.], seq 1:9, ack 1, win 342, options [nop,nop,TS val 3566109157 ecr 3566109157], length 8
10:55:36.459580 IP 127.0.0.1.10000 > 127.0.0.1.39622: Flags [.], ack 9, win 342, options [nop,nop,TS val 3566109157 ecr 3566109157], length 0
10:55:36.459999 IP 127.0.0.1.39622 > 127.0.0.1.10000: Flags [F.], seq 9, ack 1, win 342, options [nop,nop,TS val 3566109157 ecr 3566109157], length 0
10:55:36.460082 IP 127.0.0.1.10000 > 127.0.0.1.39622: Flags [F.], seq 1, ack 10,
$ curl --unix-socket /run/snapd.socket --url http:/v2/snaps/hello-world | json_pp
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 401 100 401 0 0 173k 0 --:--:-- --:--:-- --:--:-- 195k
{
"status-code" : 200,
"status" : "OK",
"type" : "sync",
"result" : {
"revision" : 25,
#!/usr/bin/python3
import os
import time
import sys
filename = os.path.basename(sys.argv[1])
basename = filename.split('.txt')[0]
filetime = os.path.getmtime(filename)
@ted-gould
ted-gould / snapcraft.yaml
Created October 29, 2015 03:00
Snapcraft.yaml for GiNaC and the ginsh shell
name: ginac
vendor: Ted Gould <ted@ubuntu.com>
summary: "..."
description: "..."
version: 1.0
icon: icon.svg
parts:
ginac:
plugin: autotools