Skip to content

Instantly share code, notes, and snippets.

View tors's full-sized avatar
:octocat:

Tors tors

:octocat:
  • Vim
View GitHub Profile
-----BEGIN PGP PUBLIC KEY BLOCK-----
mQINBGLVDUUBEADD3v4P0zwKWAaVACjxwvQ5bfmrUjvFYfNDW6TU2kzKkqHfbq33
He7RS7hZMzUEm6p8JAr7gSWLFpdYzdUvBJeGpRXW7lHyhXErSdiRFW3aQeqxekVL
XRzmZfF111yO6hcHXdGyplwqfJiRXRCdm8iHzYRtOC++4rVL/JsgYjxEAVmYRUxr
A5ELrplSaT4nH9aDh+9nSKd3kzbjEIpqU6druEYUv+p09baNAHGfIHOOK1bzubYW
SNSOA6+QwuwXlsnN/GhGX9vbOGRarRsP6qvm01xHo0/Dz+KnfIUuOFW1iU8vODlV
9/mQ2mHOWX+jEnhfVyVtlf1LNqxHv/QaZhkwZ1eYSEyR++bhWMFKXfminvgjex7h
XLz70KLIamKYoKwyDzk/PX7Nswv3g5CDZpzFJPxEMLoGWKDmVf/5Qh9QnemOSIyd
FDba7K0D7aa9nloCGop0tcNn3RDQW0YLp7DAZNZmZGf56PZFpxF/VBOGfZ1SZs4t
<!--
[System.ArgumentException]: Key duplication when adding: sessionState
at System.Collections.Hashtable.PutImpl (System.Object key, System.Object value, Boolean overwrite) [0x00000] in <filename unknown>:0
at System.Collections.Hashtable.Add (System.Object key, System.Object value) [0x00000] in <filename unknown>:0
at System.Collections.Specialized.NameObjectCollectionBase.BaseAdd (System.String name, System.Object value) [0x00000] in <filename unknown>:0
at System.Collections.Specialized.NameObjectCollectionBase.BaseSet (System.String name, System.Object value) [0x00000] in <filename unknown>:0
at System.Configuration.ConfigurationSectionCollection.get_Item (System.String name) [0x00000] in <filename unknown>:0
at System.Configuration.Configuration.GetSection (System.String path) [0x00000] in <filename unknown>:0
at System.Web.Configuration.WebConfigurationManager.GetSection (System.String sectionName, System.String path, System.Web.HttpContext context) [0x00000] in <filename unknown>:0
at
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"><head><title>Runtime Error</title><style type="text/css">body {font-family:"Verdana","DejaVu Sans",sans-serif;font-weight:normal;font-size: .7em;color:black;background-color: white}
p {font-family:"Verdana","DejaVu Sans",sans-serif;font-weight:normal;color:black;margin-top: -5px}
b {font-family:"Verdana","DejaVu Sans",sans-serif;font-weight:bold;color:black;margin-top: -5px}
h1 { font-family:"Verdana","DejaVu Sans",sans-serif;font-weight:normal;font-size:18pt;color:red }
h2 { font-family:"Verdana","DejaVu Sans",sans-serif;font-weight:normal;font-size:14pt;color:maroon }
pre,code {font-family:"Lucida Console","DejaVu Sans Mono",monospace;font-size: 0.9em,white-space: pre-line}
div.bodyText {font-family: "Verdana","DejaVu Sans",sans-serif}
table.sampleCode {width: 100%; background-color: #ffffcc; }
.errorText {color: red; font
#! /bin/bash
# Years of muscle memory using an ANSI keyboard layout makes
# typing on an ISO keyboard layout quite challenging. This script...
#
# - Replaces section key with the tilde key
# - Replaces tilde with left shift key
hidutil property --set '{"UserKeyMapping":[{"HIDKeyboardModifierMappingSrc":0x700000035,"HIDKeyboardModifierMappingDst":0x7000000E1},{"HIDKeyboardModifierMappingSrc":0x700000064,"HIDKeyboardModifierMappingDst":0x700000035}]}'
@tors
tors / keybase.md
Created February 10, 2018 07:02
kb proof

Keybase proof

I hereby claim:

  • I am tors on github.
  • I am torsd (https://keybase.io/torsd) on keybase.
  • I have a public key whose fingerprint is B7DF 6319 E5F1 3A45 F0F0 73FE 3911 C057 5775 68C7

To claim this, I am signing this object:

@tors
tors / fiblua.sh
Created August 28, 2016 00:56
luad benchmark
~/Desktop/fiblua $ time ./fiblua
9227465
real 0m1.292s
user 0m1.281s
sys 0m0.004s
~/Desktop/fiblua $ time lua5.1 fib.lua
9227465
real 0m1.307s
echo "Please enter your golang path (ex: $HOME/Go) :"
read gopath
echo "Please enter your github username:"
read user
mkdir $gopath
mkdir -p $gopath/src/github.com/$user
export GOPATH=$gopath
#!/bin/sh
cd ~/.vim/bundle
for directory in `ls ~/.vim/bundle`
do
echo "Checking for $directory update..."
if [ -d "$directory/.git" ]
then
cd $directory
git pull
cd ..
[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]][([][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]])[+!+[]+[+[]]]+([][[]]+[])[+!+[]]+(![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[+!+[]]+([][[]]+[])[+[]]+([][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]])[+!+[]+[+[]]]+(!![]+[])[+!+[]]]((![]+[])[+!+[]]+(![]+[])[!+[]+!+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]+(!![]+[])[+[]]+(![]+[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+
#! /bin/bash
# /etc/init.d/gitlab
# GITLAB
# Maintainer: @randx
# App Version: 3.0
### BEGIN INIT INFO
# Provides: gitlab