I hereby claim:
- I am stollcri on github.
- I am stollcri (https://keybase.io/stollcri) on keybase.
- I have a public key whose fingerprint is FD0D 1A69 8AD9 F05A 3052 707A 0D01 AA8F 51B2 E3EA
To claim this, I am signing this object:
#include <stdio.h> | |
#include <limits.h> | |
#include <sys/time.h> | |
#define TEST_ITTERATIONS 100 | |
#define TEST_LOOPS 100000 | |
static inline int min3a(int a, int b, int c) | |
{ | |
if (a < b) { |
import CoreFoundation | |
let TEST_ITTERATIONS = 100.0 | |
let TEST_LOOPS = 100_000 | |
func min3a(a: Int, b: Int, c: Int) -> Int { | |
if a < b { | |
if a < c { | |
return a | |
} else { |
/* | |
* Here the Comparable protocol is used as the type constraint | |
* For equality testing the Equitable protocol would be needed | |
* To print a variable it must conform to the Printable protocol | |
* | |
* see also: | |
* https://developer.apple.com/library/prerelease/ios/documentation/General/Reference/SwiftStandardLibraryReference/Equatable.html#//apple_ref/doc/uid/TP40014608-CH17-SW1 | |
*/ | |
func min3a_generics<T: Comparable>(a: T, b: T, c: T) -> T { | |
if a < b { |
I hereby claim:
To claim this, I am signing this object:
#!/bin/sh | |
### BEGIN INIT INFO | |
# Provides: nmon | |
# Required-Start: $network $named $syslog | |
# Required-Stop: $network $named $syslog | |
# Should-Start: nmon | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
### END INIT INFO | |
# |
#!/bin/bash | |
cat WIDE_TAB_DELIMITED.TXT | awk -F\t '$40 ~ /09\/.+?\/2015/' >> MATCH_COL_40_DATE_SEPT.TXT |
$ myapp | |
$ Ctrl-z | |
[1]+ Stopped myapp | |
$ disown -h %1 | |
$ bg 1 | |
[1]+ myapp & | |
$ exit |
$SRC_DIR=/var/www/htdocs | |
cd $SRC_DIR/images | |
DIR_SIZE=$(du . -hS | tail -n1 | awk '{print $1}') | |
echo "Syncing s3://BUCKET_NAME/images/ ($DIR_SIZE)" | |
/usr/local/bin/aws s3 sync . s3://BUCKET_NAME/images/ --storage-class STANDARD --exclude '.*' --exclude '*.php' | |
cd $SRC_DIR/images-old | |
DIR_SIZE=$(du . -hS | tail -n1 | awk '{print $1}') | |
echo "Syncing s3://BUCKET_NAME/images-old/ ($DIR_SIZE)" |
# insert ADDTHISTEXT at line 4 of MYFILE.TXT | |
sed -i '4i\ADDTHISTEXT\' MYFILE.TXT |
#!/bin/bash | |
# | |
# Refresh data in AWS RDS database | |
# | |
# Add to cron: aws_db_sync.sh &> aws_db_sync.log | |
# or | |
# Call by: aws_db_sync.sh &> aws_db_sync.log & | |
# tail -f aws_db_sync.log | |
if [ ! -r ~/.my.cnf ]; then |