Skip to content

Instantly share code, notes, and snippets.

View soniah's full-sized avatar

Sonia Hamilton soniah

View GitHub Profile
@soniah
soniah / main.go
Last active April 5, 2023 06:20
generate sql injection attacks
package main
import (
"flag"
"fmt"
"strings"
)
/*
in Oracle, need:
@soniah
soniah / main.go
Last active September 24, 2021 21:30
golang builder pattern
package main
// tip of the hat to Jon Calhoun
//
// see also: https://www.calhoun.io/using-functional-options-instead-of-method-chaining-in-go/
import (
"errors"
"fmt"
"strings"
@soniah
soniah / keybase.md
Created May 25, 2020 06:17
keybase.md

Keybase proof

I hereby claim:

  • I am soniah on github.
  • I am soniah (https://keybase.io/soniah) on keybase.
  • I have a public key whose fingerprint is A395 7DC6 2507 27B9 86C3 EDF0 B073 C82C A091 56FC

To claim this, I am signing this object:

@soniah
soniah / goimports2.sh
Created August 30, 2019 05:37
remove all blank lines in go 'imports' statements
#!/bin/bash
# remove all blank lines in go 'imports' statements,
# then sort with goimports
if [ $# != 1 ] ; then
echo "usage: $0 <filename>"
exit 1
fi
@soniah
soniah / How to sync mp4s to iPad using VLC
Last active December 16, 2018 22:56
iPad mp4 vlc sync
* open iTunes
* plug in iPad
* top middle of screen, click on tiny grey icon, that sort of looks like an iPad (next to Music, Films, etc dropdown)
* middle left, click on 'File Sharing'
* choose orange VLC icon
* click Add, bottom right
* click Sync
* on iPad, run VLC app

Keybase proof

I hereby claim:

  • I am soniah on github.
  • I am soniah (https://keybase.io/soniah) on keybase.
  • I have a public key whose fingerprint is C3F0 319E D50E 5365 E1D7 BA64 2490 7913 A8B7 7238

To claim this, I am signing this object: