Skip to content

Instantly share code, notes, and snippets.

@Ivoz
Ivoz / CA.crt
Created Feb 23, 2014
A random self-signed cert
View CA.crt
-----BEGIN CERTIFICATE-----
MIIC0jCCAboCBQDQKZmkMA0GCSqGSIb3DQEBCwUAMC0xKzApBgNVBAMTIkdlbmVy
aWMgUGlwYSBDZXJ0aWZpY2F0ZSBBdXRob3JpdHkwHhcNMTQwMjIzMTIzNTM1WhcN
MTUwMjIzMTIzNTM1WjAtMSswKQYDVQQDEyJHZW5lcmljIFBpcGEgQ2VydGlmaWNh
dGUgQXV0aG9yaXR5MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA2nP8
dYN9P8IFogGy0INayhsafe+LRh3a7Qd6PnyxBZrP3RaRXo+gQ/wswD744cURuSX6
NJgmFt/sgMBclQtnNwkUUXaHzsZIsjQKr3EgUGhepnt7yU6UU0lW2L0yz8n4YLlV
ezSaIH7VMA8YRhgxBJGt/Nv/OnQk4y/tUxQnucKwhB/kax8rMiOuzry8e8FHc3yU
4KZaJYLVF3QJOAIRvicMLe5BybFDue7TaZk9snsFtCBoOnKz4sFgaPdP6hHfTqt7
ZEjHVSoo0tvAmGftfon+kJNtYir9hkXabWS1rVOE2pCui3HRBwMya6+TT9tLhFaJ
View keybase.md

Keybase proof

I hereby claim:

  • I am Ivoz on github.
  • I am ivo (https://keybase.io/ivo) on keybase.
  • I have a public key whose fingerprint is 2F04 3DCC D6E6 D5AC D262 2E0B C046 E8A8 7452 2973

To claim this, I am signing this object:

View prompt.sh
#!/usr/bin/bash
# Reset
Reset='\[\e[0m\]'
# Regular Colors
Black='\[\e[0;30m\]'
Red='\[\e[0;31m\]'
Green='\[\e[0;32m\]'
Yellow='\[\e[0;33m\]'
View repro-3.sh
#!/usr/bin/bash
# Reproduce namespace / editable install problem with pip
# https://github.com/pypa/pip/issues/3
# cleanup from previous invocations
foos=('foo-main' 'foo-client' 'foo-env')
rm -rf -- "${foos[@]}"
@Ivoz
Ivoz / screens.sh
Created May 26, 2014
Do xrandr stuff
View screens.sh
#!/bin/bash
laptop_screen="LVDS1"
external_screen="HDMI1"
position="left"
if [[ ! -z "$1" ]]; then
external_screen="$1"
fi
@Ivoz
Ivoz / alias.sh
Last active Sep 14, 2015
My aliases
View alias.sh
#!/usr/bin/sh
# cd
alias ..='cd ..'
alias ...='cd ../..'
alias ....='cd ../../..'
alias .....='cd ../../../..'
# common
alias cls='clear'
alias sctl='sudo systemctl'
View gist:1324546
if __main__():
start()
def start():
print "Hello world!"
View tmux.trace
execve("/usr/bin/tmux", ["tmux"], [/* 42 vars */]) = 0
brk(0) = 0x7f8d39f75000
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f8d38e17000
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=130608, ...}) = 0
mmap(NULL, 130608, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f8d38df7000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
View nginxerrors.nginx
## errors.log
2011/10/31 20:59:09 [error] 14227#0: *34 rewrite or internal redirection cycle while internal redirect to "/index.html", client: 127.0.0.1, server: localhost, request: "GET /favicon.ico HTTP/1.1", host: "localhost"
## home.conf
server {
server_name localhost;
listen 127.0.0.1:80;