Skip to content

Instantly share code, notes, and snippets.

View barneydesmond's full-sized avatar

Barney Desmond barneydesmond

  • Arista Networks
  • Sydney, Australia
  • X @furinkan
View GitHub Profile

Bless you random commenter-kun for transcribing all the quotes on screen! I've dumped it into DeepL and revised the translations a bit in a way that I think makes more sense.

https://www.youtube.com/watch?v=N8g9B0zEXpM&lc=Ugw0fsg_PhjPuglKHSl4AaABAg

0:01 (voiceover) "Well then. Let's go home, sensei."

0:06 (voiceover) "To the place where all our love resides."

0:12 NEXT EPISODE

nmap -A -T4 scanme.nmap.org ming@Ming-ders-MacBook-Pro
Starting Nmap 6.47 ( http://nmap.org ) at 2014-09-14 13:04 CST
Nmap scan report for scanme.nmap.org (74.207.244.221)
Host is up (0.19s latency).
Not shown: 997 closed ports
PORT STATE SERVICE VERSION
22/tcp open ssh OpenSSH 5.3p1 Debian 3ubuntu7.1 (Ubuntu Linux; protocol 2.0)
| ssh-hostkey:
| 1024 8d:60:f1:7c:ca:b7:3d:0a:d6:67:54:9d:69:d9:b9:dd (DSA)
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDAXucjNpFho1vE9taFdbQAat42nOpwlcFny79ne0xD2X7dXZBlaBXFR2sw1mywAfE0lQMGhYxnWID/CHWm4nAW0fjvVFggC7RFhAWH1MzsiYDk602GptcLyyvUJxf/Xfpi9+BPqmexAWPVYCRGgSD69bcUtJAPNF2Mzl7lAk1gGgkwOYQmKssFxvmKWXQm0cSyu4Brx8YJS8OMdyHV4O7kdzTRa5CXJUHpV/21bLTb75mekqNM7X5EgpieVWj14c3qZrfdyb/yU0ouJPY8cVy6vBO32DglJZ/kHEs3PWrrHObeX1Z6y83QiA2qKKo/kL0/oPikQ6hLVcilFf0ADPX1nx7Cb6xGpKwSQrGUfCSn56hIK2BeBJ/SlBAPMFDv9x43MD56PDoLfjbKJSniMT7eEuG7rLt7yXBT6yATWFoXwn1K1BZt2YufEOGP96fARj0nTz66loSD+xCysov+xqnCrl5wQPCXzWcmL+EC1dMxzR5gcS2Tr6MmjHfqUdtkXak9k7ohy5Ec1ah533eN8XPjIRJaxXuUsO79cGuikX54ywI90SRwCyegq4hQZS3gqlY6VS/lhP7/47QQHRuOM8Lyx0Tl70QN3xZlorihs4zX+FVESC1HXkOgG0tEdJc+mXyluTodEWfUuC92d3DIeMOpfkBiIlVgLA7Us+ub7mPO7Q== bdesmond1@vector.local

As of 2018-07-26

Price (AUD) First buy Later buys First gems/$ Later gems/$
$1.50 120 ?? 80 ??
$7.50 600 330 80 44
$14.00 1360 800 97 57
$38.00 3360 2000 88 52
$71.00 6560 4000 92 56
$145.00 12960 ???? 89 ??
@barneydesmond
barneydesmond / spectre.c
Created March 13, 2018 00:01 — forked from ErikAugust/spectre.c
Spectre example code
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#ifdef _MSC_VER
#include <intrin.h> /* for rdtscp and clflush */
#pragma optimize("gt",on)
#else
#include <x86intrin.h> /* for rdtscp and clflush */
#endif

"Crushes (made up)"

Shotas read from right to left.

Far right

  • Crush: Makura hirotte kita zo- (I picked up the pillow)
  • S-type: Suki...
@barneydesmond
barneydesmond / unicode_test.py
Last active May 2, 2017 23:45
Unicode handling in Python 2.7 on OSX (I can't remember if this is the native version or one I brew-installed)
# encoding: utf-8
# Barney Desmond <barneydesmond@gmail.com> - CC0 2017-05-03
# This is an ordinary string, which is considered encoded by default. Printing
# it means it needs to match the terminal's encoding type, which it tries to
# detect (and the python need to declare it when in files)
raw_bytes = '\xe3\x81\x82\xe3\x82\x8a\xe3\x81\x8cthanks'
# This is a Unicode string now, it holds codepoints and has sane semantics.
ustring = raw_bytes.decode('utf8')

Keybase proof

I hereby claim:

  • I am barneydesmond on github.
  • I am barneydesmond (https://keybase.io/barneydesmond) on keybase.
  • I have a public key ASCD2PAXPNp2SKvcDUzLEBI2Z2Y3PgYXNnvGvysSvU1ycAo

To claim this, I am signing this object:

@barneydesmond
barneydesmond / underwater.hs
Created February 20, 2015 21:18
Learning underwater functors
module KneeHigh where
data Girl =
Girl { bewbs :: Double
, waste :: Double
, heepz :: Double
, waitt :: Double
, haiyt :: Double
} deriving Show
#include <stdlib.h>
#include <stdio.h>
#include "mylib.h"
/* initialize the array with integers 0...length */
void initialize_MyArray(MyArray* a, long length){
a->length = length;
a->arr = (int*)malloc(length * sizeof(int));
int i;
for(i=0; i<length; i++){