Skip to content

Instantly share code, notes, and snippets.

View abiosoft's full-sized avatar

Abiola Ibrahim abiosoft

View GitHub Profile
/usr/local/go/src/cmd/go/main.go: goto Slow
/usr/local/go/src/cmd/internal/rsc.io/arm/armasm/ext_test.go: goto nomatch
/usr/local/go/src/cmd/internal/rsc.io/arm/armasm/ext_test.go: goto Fix
/usr/local/go/src/cmd/internal/rsc.io/x86/x86asm/ext_test.go: goto nomatch
/usr/local/go/src/cmd/internal/rsc.io/x86/x86asm/ext_test.go: goto Fix
/usr/local/go/src/cmd/yacc/yacc.go:var indgo = make([]int, NSTATES) // index to the stored goto table
/usr/local/go/src/cmd/yacc/yacc.go: goto l1
/usr/local/go/src/cmd/yacc/yacc.go: goto l1
/usr/local/go/src/cmd/yacc/yacc.go: // do a goto on c
/usr/local/go/src/cmd/yacc/yacc.go: fmt.Fprintf(foutput, "\t%v goto %v\n", symnam(j0+NTBASE), temp1[j1])
@abiosoft
abiosoft / gist:6967ca02e792897ed3ab
Created February 17, 2016 07:58
kubernetes docker
docker run --net=host -d gcr.io/google_containers/etcd:2.0.12 /usr/local/bin/etcd --addr=127.0.0.1:4001 --bind-addr=0.0.0.0:4001 --data-dir=/var/etcd/data
docker run \
--volume=/:/rootfs:ro \
--volume=/sys:/sys:ro \
--volume=/dev:/dev \
--volume=/var/lib/docker/:/var/lib/docker:ro \
--volume=/var/lib/kubelet/:/var/lib/kubelet:rw \
--volume=/var/run:/var/run:rw \
--net=host \
@abiosoft
abiosoft / GIF-Screencast-OSX.md
Created March 2, 2016 10:41 — forked from dergachev/GIF-Screencast-OSX.md
OS X Screencast to animated GIF

OS X Screencast to animated GIF

This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.

Screencapture GIF

Instructions

To capture the video (filesize: 19MB), using the free "QuickTime Player" application:

Keybase proof

I hereby claim:

  • I am abiosoft on github.
  • I am abiosoft (https://keybase.io/abiosoft) on keybase.
  • I have a public key whose fingerprint is 7A87 6C9D FCAC DE15 641E 4A90 8874 C6F1 1FD0 43FB

To claim this, I am signing this object:

@abiosoft
abiosoft / main.go
Created June 18, 2017 05:35
webapp with static dir
package main
import (
"fmt"
"net/http"
)
func main() {
http.Handle("/static/", http.StripPrefix("/static", http.FileServer(http.Dir("static"))))
http.HandleFunc("/", handler)
@abiosoft
abiosoft / log
Created March 17, 2018 17:34
vagrant bundle error log
urrent directory: /home/abiola/.vagrant.d/gems/2.4.1/gems/nokogiri-1.8.2/ext/nokogiri
/home/abiola/.rvm/rubies/ruby-2.4.1/bin/ruby -r ./siteconf20180317-6457-194o3fh.rb extconf.rb
/home/abiola/.rvm/gems/ruby-2.4.1/gems/bundler-1.16.1/lib/bundler/source/git.rb:202:in `rescue in load_spec_files': https://github.com/hashicorp/vagrant-spec.git (at master@f3daeda) is not yet checked out. Run `bundle install` first. (Bundler::GitError)
from /home/abiola/.rvm/gems/ruby-2.4.1/gems/bundler-1.16.1/lib/bundler/source/git.rb:199:in `load_spec_files'
from /home/abiola/.rvm/gems/ruby-2.4.1/gems/bundler-1.16.1/lib/bundler/source/path.rb:100:in `local_specs'
from /home/abiola/.rvm/gems/ruby-2.4.1/gems/bundler-1.16.1/lib/bundler/source/git.rb:166:in `specs'
from /home/abiola/.rvm/gems/ruby-2.4.1/gems/bundler-1.16.1/lib/bundler/lazy_specification.rb:76:in `__materialize__'
from /home/abiola/.rvm/gems/ruby-2.4.1/gems/bundler-1.16.1/lib/bundler/spec_set.rb:85:in `block in materialize'
@abiosoft
abiosoft / fixes.txt
Last active March 18, 2018 09:50
Ubuntu 17.10 fixes :(
# Sadly i have to go through these. Unity was fine :(
# Important installs
Gnome tweak tool
Top panel workspace scroll extension
Dash to Dock extension
Gtile extension
# Ubuntu's gnome session is not for me, the dock is problematic
sudo apt install gnome-session
@abiosoft
abiosoft / gtk.css
Created April 27, 2018 18:58 — forked from jamesridgway/gtk.css
Reduce title bar size for applications in Gnome by creating ~/.config/gtk-3.0/gtk.css with the following contents
# Gnome 3 - based on https://blog.samalik.com/make-your-gnome-title-bars-smaller/
.header-bar.default-decoration {
padding-top: 3px;
padding-bottom: 3px;
font-size: 0.8em;
}
.header-bar.default-decoration .button.titlebutton {
padding: 0px;
}
REMOTE=${REMOTE:-"upstream/master"}
DOC_EXAMPLE_CHANGE_PATTERN="\
-e ^doc/ \
-e ^examples/ \
-e ^(VERSION|LICENSE)$ \
-e \.md$\
"
echo using remote $REMOTE
@abiosoft
abiosoft / details
Created June 28, 2018 22:14
Manjaro/Arch open file fix
Append to /etc/systemd/system.conf
DefaultLimitNOFILE=500000