This file contains 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 | |
# | |
# podgetter.pl | |
# | |
# Podcast downloader exclusively for BBC Radio | |
# | |
# 2014/04/11 v1.0 | |
# 2014/06/10 v1.1 | |
# |
This file contains 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 -x | |
LANG=C | |
basepass="XXXXXXXX" | |
reposerver="xxx.xxx.xxx.xxx" | |
function prep_network { | |
set -x | |
yum -y update | |
yum -y groupinstall "Gnome Desktop" |
This file contains 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
import numpy as np | |
import matplotlib.pyplot as plt | |
import pandas as pd | |
from pandas import Series, DataFrame | |
import pandas.io.data as web | |
from numpy.random import randint, randn, rand, multivariate_normal | |
def run_perceptron(axes): | |
n1 = randint(40,80) |
This file contains 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
import numpy as np | |
import matplotlib.pyplot as plt | |
import pandas as pd | |
from pandas import Series, DataFrame | |
from numpy.random import randint, randn, rand, multivariate_normal | |
def run_perceptron(ax): | |
n1 = 60 | |
n2 = 40 |
This file contains 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
import numpy as np | |
import matplotlib.pyplot as plt | |
import pandas as pd | |
from pandas import Series, DataFrame | |
from numpy.random import randint, randn, rand, multivariate_normal | |
K = 3 # Number of classes (2 or 3) | |
N = 50 # Number of training data | |
HR = 200 # Heatmap resolution |
This file contains 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 -x | |
function destroy_vol { | |
vol=$1 | |
brick_del_cmd=$(gluster vol info $vol | awk -F':' '/Brick[0-9]+/ { print "ssh " $2 " rm -rf " $3 ";" }') | |
yes | gluster vol stop $vol | |
yes | gluster vol delete $vol | |
eval $brick_del_cmd | |
} |
This file contains 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 -x | |
yum groupinstall -y "Desktop" \ | |
"General Purpose Desktop" \ | |
"X Window System" \ | |
"Desktop Platform" | |
yum install tigervnc-server firefox | |
chkconfig NetworkManager off | |
service NetworkManager stop |
This file contains 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 -x | |
curl -s http://192.168.101.9:5000/dck/api/v1.0/libdck > /tmp/libdck.sh | |
. /tmp/libdck.sh | |
function child { | |
echo "I'm child" > /etc/motd | |
date >> /etc/motd | |
dck-poke $pid "child_setup" "true" | |
} |
This file contains 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 -x | |
LANG=C | |
basepass="XXXXXXXX" | |
reposerver="xxx.xxx.xxx.xxx" | |
function prep_network { | |
set -x | |
yum -y update | |
yum -y groupinstall "Gnome Desktop" |
This file contains 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/linux/shmem_fs.h.orig 2013-11-20 13:46:54.609963899 +0900 | |
+++ include/linux/shmem_fs.h 2013-11-20 14:24:31.313954190 +0900 | |
@@ -10,6 +10,24 @@ | |
#define SHMEM_NR_DIRECT 16 | |
+struct simple_xattrs { | |
+ struct list_head head; | |
+ spinlock_t lock; | |
+}; |
OlderNewer