$ touch /usr/share/applications/robo3t.desktop
$ vim /usr/share/applications/robo3t.desktop
install.packages(c("Rcpp", "plotrix", "RcppEigen", "BH", "devtools")) | |
library("devtools") | |
install_github(repo = "mnist", username = "xrobin", ref = "master") | |
install_github(repo = "DeepLearning", username = "xrobin", ref = "master") | |
my.diag.function <- function(rbm, batch, data, iter, batchsize, maxiters, layerFromCpp) { | |
print(iter) | |
} |
#!/bin/bash | |
JAILS=`fail2ban-client status | grep "Jail list" | sed -E 's/^[^:]+:[ \t]+//' | sed 's/,//g'` | |
for JAIL in $JAILS | |
do | |
fail2ban-client status $JAIL | |
done |
#!/usr/bin/env python2.7 | |
import argparse | |
from ost import * | |
def testVerbosityLevel(): | |
print("Verbosity: %d" % GetVerbosityLevel()) | |
LogError("LogError") # >= 0 | |
LogWarning("LogWarning") # >= 1 | |
LogScript("LogScript") # >= 2 |
import errno | |
import tempfile | |
import os | |
class ScopedTemporaryFile(object): | |
""" Temp file to use in a with statement. | |
with ScopedTemporaryFile() as f: | |
... do stuff with f ... |