This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| set incsearch | |
| set hlsearch | |
| let mapleader = "," | |
| inoremap jk <ESC> | |
| nnoremap <leader>w :w<CR> | |
| set surround | |
| set clipboard+=unnamedplus |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "fmt" | |
| "math" | |
| ) | |
| type ErrNegativeSqrt float64 | |
| func (e ErrNegativeSqrt) Error() string { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| for disp in $(seq 10 100) | |
| do | |
| echo "Trying to use display $disp and port 5900+$disp" | |
| Xvnc :$disp -geometry 1280x1024 -ac -SecurityTypes None & | |
| xvnc_pid=$! | |
| ps -p $xvnc_pid | |
| if [ $? -eq 0 ]; then | |
| # magic string to enable remote visualization |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff -rupN i3-4.8-original/common.mk i3-4.8-patched/common.mk | |
| --- i3-4.8-original/common.mk 2014-06-15 13:12:43.000000000 -0400 | |
| +++ i3-4.8-patched/common.mk 2014-06-16 08:18:43.263744935 -0400 | |
| @@ -1,6 +1,7 @@ | |
| UNAME=$(shell uname) | |
| DEBUG=1 | |
| COVERAGE=0 | |
| +USE_ICONS=1 | |
| INSTALL=install | |
| LN=ln |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ./configure --prefix=/home/myuser/git-static CFLAGS="${CFLAGS} -static" NO_OPENSSL=1 NO_CURL=1 | |
| make | |
| make install |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def DFS(g, vertex, visited): | |
| visited[vertex] = True | |
| if vertex in g: | |
| for dest in g[vertex]: | |
| if not visited[dest]: | |
| DFS(g, dest, visited) | |
| print vertex | |
| #to call it you do somethng like |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| | Title | Artist | Album | | | |
| |-------------------------------------------------------+--------------------------------------+------------------------------------------------------+-------| | |
| | Cabaret Blanc | Olivia Ruiz | La Femme Chocolat | 04:10 | | |
| | Ils Ont Changé Ma Chanson | Arno - Stephan Eicher | Le Best Of | 03:58 | | |
| | L'Autre Bout Du Monde | Emily Loizeau | L'Autre Bout Du Monde | 03:18 | | |
| | Louxor J'Adore (Katerine vs Joachim Garraud) | Katerine | Louxor J'Adore | 03:07 | | |
| | Sabali | Amadou |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # aptitude install libdbus-1-dev libtiff5-dev libgif-dev libjpeg8-dev libxpm-dev texinfo | |
| ./autogen.sh | |
| ./configure --prefix=$HOME/opt/emacs24 --with-x-toolkit=gtk3 --without-gsettings | |
| make | |
| make install |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| USERNAME=$1 | |
| . /etc/rc.common | |
| dscl . create /Users/$USERNAME | |
| dscl . create /Users/$USERNAME RealName "$USERNAME Account" | |
| dscl . create /Users/$USERNAME hint "Password Hint" | |
| dscl . passwd /Users/$USERNAME thisistheaccountpassword | |
| dscl . create /Users/$USERNAME UniqueID 546 |