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 | |
# read a line | |
while IFS= read -r line; do | |
# remove everything *after* (%%) the first space in the string | |
# that's the date. | |
date=${line%% *} | |
# remove everything *before* (##) 'SRC=' from line, and put that in |
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
1/15 5*3 30 15+8=23 | |
1/23 23 46 23+16=39 | |
1/39 13*3 78 39+24=63 | |
1/63 7*3*3 126 63+32=95 |
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 <stdlib.h> | |
char *shell_escape(char *, size_t); | |
int main(int argc, char **argv) { | |
puts(shell_escape("'; echo shell'", 14)); | |
} | |
char *shell_escape(char *data, size_t n) { | |
size_t i, j, single_quotes = 0; |
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
"@diana_clarke: I'll never know why I miscarried, but I do know it happened the weekend the internet decided to toss abuse my way. @shanley is a bully. #!ok" | |
[...] | |
"@sindarina: @diana_clarke I know this is traumatic, but ... to insinuate it being linked to @shanley, that feels like crossing a line to me. Not OK " | |
"@juliepagano: @diana_clarke I am really sorry for your loss. I cannot imagine how hard that is. However, the implication you’re making here is troubling." | |
Como dijo el Comediante: "It's a joke. It's all a fuckin' joke." |
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
void | |
bubblesort(int A[], unsigned int n) | |
{ | |
int i, j; | |
for(i = 0; i < n; i++) { | |
for(j = i; j < n; j++) { | |
if(A[i] > A[j]) { | |
int t = A[j]; | |
A[j] = A[i]; |
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
zsh: | |
+zsh:4> command -v xyz | |
xyz | |
+zsh:5> unset xyz | |
+zsh:6> command -v xyz | |
xyz | |
+zsh:8> PATH='' | |
+zsh:9> command -v xyz | |
xyz | |
+zsh:10> PATH=: |
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 shell in zsh ksh mksh dash bash /bin/bash 'busybox sh'; do | |
echo "$shell": | |
$shell <<'eof' | |
set -x | |
PATH= | |
echo "PATH=$PATH" | |
ls | |
eof |
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
KERNEL/DIRS.A86:; Copyright Work of Caldera, Inc. All Rights Reserved. | |
KERNEL/DIRS.A86:; THIS WORK IS A COPYRIGHT WORK AND CONTAINS CONFIDENTIAL, | |
KERNEL/CDEVIO.A86:; Copyright Work of Caldera, Inc. All Rights Reserved. | |
KERNEL/CDEVIO.A86:; THIS WORK IS A COPYRIGHT WORK AND CONTAINS CONFIDENTIAL, | |
KERNEL/DRIVER.EQU:; Copyright Work of Caldera, Inc. All Rights Reserved. | |
KERNEL/DRIVER.EQU:; THIS WORK IS A COPYRIGHT WORK AND CONTAINS CONFIDENTIAL, | |
KERNEL/FDOS.A86:; Copyright Work of Caldera, Inc. All Rights Reserved. | |
KERNEL/FDOS.A86:; THIS WORK IS A COPYRIGHT WORK AND CONTAINS CONFIDENTIAL, | |
KERNEL/NETWORK.A86:; Copyright Work of Caldera, Inc. All Rights Reserved. | |
KERNEL/NETWORK.A86:; THIS WORK IS A COPYRIGHT WORK AND CONTAINS CONFIDENTIAL, |
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 | |
stty=$(stty -g) | |
trap 'stty "$stty"' EXIT | |
stty raw | |
IFS= read -rs -N1 a | |
while read -t0; do | |
IFS= read -rs -N1 b | |
a+=$b | |
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
#include <stdlib.h> | |
#include <sys/time.h> | |
#include <signal.h> | |
void on_sigalrm(int sig) { | |
return; | |
} | |
int main(int argc, char *argv[]) { | |
float wait; |