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
# $OpenBSD: login.conf,v 1.6 2015/10/23 22:55:49 sthen Exp $ | |
# | |
# Sample login.conf file. See login.conf(5) for details. | |
# | |
# | |
# Standard authentication styles: | |
# | |
# passwd Use only the local password file |
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
#include <assert.h> | |
#include <err.h> | |
#include <stdio.h> | |
#include <string.h> | |
#include <time.h> | |
#include <unistd.h> | |
#include <sys/ioctl.h> | |
#include <sys/socket.h> |
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
function foo { | |
typeset s=$? | |
if [ $s -ne 0 ]; then | |
echo -n "$s" | |
fi | |
} | |
PS1='$(foo)' |
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
(import re) | |
(import [hy.lex [tokenize]]) | |
(defn extract-exprs [src] | |
(dict-comp | |
(, (.start x) (.end x)) | |
(-> x | |
.group | |
(cut 1 -1) | |
tokenize) |
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
" Place me into after/plugin/fireplace.vim in your Vim directory. Don't overwrite anything! | |
augroup fireplace_connect | |
autocmd FileType hy command! -buffer -bar -nargs=* | |
\ Connect FireplaceConnect <args> | |
augroup END | |
function! s:set_up_eval() abort | |
command! -buffer -bang -range=0 -nargs=? Eval :exe s:Eval(<bang>0, <line1>, <line2>, <count>, <q-args>) |
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
(defmacro let+ [vars &rest body] | |
(setv cover []) | |
(setv uncover []) | |
(for* [v vars] | |
(if (instance? list v) | |
(do | |
(setv name (gensym (first v))) | |
(.append cover `(try | |
(setv ~name ~(first v)) | |
(except))) |
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 ( | |
"log" | |
) | |
func a() []*int { | |
foo := make([]*int, 10) | |
for i, v := range foo { |
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
$ grep rbm /etc/fstab | |
# nfs der rbm | |
dijkstra.math.upb.de:/srv/export /rbm nfs defaults,auto 0 0 | |
$ sudo mount /rbm -v | |
mount.nfs: timeout set for Tue Feb 17 13:54:53 2015 | |
mount.nfs: trying text-based options 'vers=4.2,addr=131.234.115.42,clientaddr=131.234.11.197' | |
mount.nfs: mount(2): Connection refused | |
mount.nfs: trying text-based options 'addr=131.234.115.42' | |
mount.nfs: prog 100003, trying vers=3, prot=6 | |
mount.nfs: portmap query retrying: RPC: Program not registered |
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
buf = bytes(...) | |
while len(buf) < 4: | |
buf.append(s.recv(4 - len(buf))) |
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
Parameter settings: | |
LeftEdge = 1760 | |
RightEdge = 5310 | |
TopEdge = 1636 | |
BottomEdge = 4442 | |
FingerLow = 25 | |
FingerHigh = 30 | |
MaxTapTime = 180 | |
MaxTapMove = 231 | |
MaxDoubleTapTime = 180 |