I hereby claim:
- I am jrumbut on github.
- I am jrumbut (https://keybase.io/jrumbut) on keybase.
- I have a public key whose fingerprint is 8870 4B2A CFA1 C0BE F83A FBBC EB89 F978 197C 11BA
To claim this, I am signing this object:
library(caret) | |
library(doParallel) | |
registerDoParallel(cores = 2) | |
# Read data. | |
data <- read.csv('train.csv') | |
test <- read.csv('test.csv') | |
# Set classification column to factor. |
function copyOnConditional() { | |
var ss=SpreadsheetApp.getActiveSpreadsheet();// some global variables | |
var master = ss.getSheetByName('Raw Data'); | |
var colWidth = master.getMaxColumns(); | |
//function copyRowsOnCondition() { | |
var data = master.getDataRange().getValues(); | |
for(n=2;n<data.length;++n){ |
#!/bin/bash | |
# usage: $0 [source_dir] ... | |
# where source_dir args are directories containing git repositories | |
red="\033[00;31m" | |
green="\033[00;32m" | |
yellow="\033[00;33m" | |
blue="\033[00;34m" | |
purple="\033[00;35m" | |
cyan="\033[00;36m" |
#defines function for later use, put it in .bashrc or similar | |
#usage: docker-net | |
#output: | |
#bdc5fb58bc94 /adoring_euler 172.17.0.3 map[8888/tcp:[{ 8888}]] | |
#c7591aa275ff /hopeful_davinci 172.17.0.2 map[6006/tcp:[{ 32769}] 8888/tcp:[{ 80}]] | |
docker-net() { | |
docker inspect --format '{{ .Config.Hostname }} {{ .Name }} {{ .NetworkSettings.IPAddress }} {{ .HostConfig.PortBindings }}' $(docker ps -q); | |
} |
I hereby claim:
To claim this, I am signing this object:
#!/bin/bash | |
#Usage cat access.log | ./hash-delimited_apache_logs | |
sed 's/^\(.*\) \(.*\) \(.*\) \[\(.*\)\] \"\([[:alpha:]]\+\) \(.*\) HTTP\/1\.1\" \(.*\) \(.*\) \"\(.*\)\" \"\(.*\)\"$/\1#\2#\3#\4#\5#\6#\7#\8#\9#\10/g' |
cat 404.log | awk '{print $2}' | sort | uniq -c | grep -v '^ *1 ' | sort |
cat access.log.1 | grep " 500 " | awk -F'"' '{print $2,",",$4,",",$6}' > /home/ubuntu/500.log | |
cat access.log.1 | grep " 404 " | awk -F'"' '{print $2,",",$4,",",$6}' > /home/ubuntu/404.log |
git log -1 --oneline | |
#see commit message only:git log -1 --pretty=%B | |
#man git-log |