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
| AFA0> controller details | |
| Executing: controller details | |
| Controller Information | |
| ---------------------- | |
| Remote Computer: . | |
| Device Name: AFA0 | |
| Controller Type: No Info | |
| Access Mode: READ-WRITE | |
| Controller Serial Number: Last Six Digits = 4D50F9 | |
| Number of Buses: 3 |
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
| #ifdef __cplusplus | |
| extern "C" { | |
| #endif | |
| /* | |
| ANSI C code generated by SmartEiffel The GNU Eiffel Compiler, Eiffel tools and libraries | |
| Release 2.3 (Thursday July 11th 2007) [Antoine-Auguste Parmentier] | |
| Copyright (C), 1994-2002 - INRIA - LORIA - ESIAL UHP Nancy 1 - FRANCE | |
| Copyright (C), 2003-2005 - INRIA - LORIA - IUT Charlemagne Nancy 2 - FRANCE | |
| D.COLNET, P.RIBET, C.ADRIAN, V.CROIZIER F.MERIZEN - SmartEiffel@loria.fr | |
| http://SmartEiffel.loria.fr |
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
| while :; do wget -qO- http://horseebooksipsum.com/api/v1 | say; done |
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 foo(*args, **kwargs): | |
| def f(myargs=args, mykwargs=kwargs): | |
| def g(*myargs, **mykwargs): | |
| # do stuff with myargs and mykwargs | |
| return g() | |
| # do stuff with f | |
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
| #!/usr/bin/perl | |
| use strict; | |
| use warnings; | |
| $< and die "This won't work unless run by root"; | |
| my @errors; | |
| sub log_error { | |
| push(@errors, pop); |
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 | |
| grep oomguarpages /proc/user_beancounters | head -n 4 | tail -n 1 | awk '{print $6}' |
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
| class classproperty(property): | |
| def __get__(self, cls, inst): | |
| return self.fget.__get__(None, inst)() | |
| class MyClass(object): | |
| numbers = [1,2,3,4,5] |
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 | |
| for user in $(cut -d ':' -f 1 /etc/passwd); do | |
| if [ $(id -u $user) -ge 1000 ]; then | |
| if [ -z $(getent group $user) ]; do | |
| addgroup "$user" | |
| fi |
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 | |
| set -e | |
| vardir='/var/local/check-smart' | |
| [ -d "$vardir" ] | |
| [ -x smartctl -a -x sendmail ] | |
| cd "$vardir" |
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
| update_all_shells () { | |
| for session in $(tmux list-sessions|cut -d ':' -f 1); do | |
| for window in $(tmux list-windows -t $session | cut -d ':' -f 1); do | |
| tmux set-window-option -t $session:$window synchronize-panes on | |
| tmux send-keys -t $session:$window 'source ~/.zshrc' | |
| tmux send-keys -t $session:$window 'ENTER' | |
| tmux set-window-option -t $session:$window synchronize-panes off | |
| done | |
| done | |
| } |