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 | |
$SPARK_HOME/sbin/start-thriftserver.sh \ | |
--master local[*] \ | |
--conf spark.sql.thriftServer.incrementalCollect=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 | |
if [[ $# -ne 2 ]]; then | |
echo "Usage: docker-machine-add-generic.sh [HOST] [NAME]" | |
fi | |
docker-machine create -d generic --generic-ssh-user root --generic-ssh-key ${HOME}/.ssh/id_rsa --generic-ip-address $1 $2 |
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 | |
# | |
# Overclocking nvidia GTX 960 4GB | |
# | |
# Use this to get current value | |
# nvidia-settings -q <PROP> | |
# | |
# Set cool bits | |
sudo nvidia-xconfig --cool-bits=31 # Reboot after this command |
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
alert("Hello world!"); |
I hereby claim:
- I am piffall on github.
- I am piffall (https://keybase.io/piffall) on keybase.
- I have a public key whose fingerprint is B720 2BBA 93B4 5F33 8F23 8677 BB05 0E78 433F E380
To claim this, I am signing this object:
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
[program:eclim] | |
user=user | |
directory=/home/user/ | |
command=xvfb-run /home/user/eclipse/eclimd -Xmx256M | |
redirect_stderr=true | |
stdout_logfile=/home/user/eclipse/eclimd.log | |
stderr_logfile=/home/user/eclipse/eclimd.error.log | |
stdout_logfile_maxbytes=10MB | |
stderr_logfile_maxbytes=10MB |
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 | |
echo '$1' | iconv -f utf-8 -t iso-8859-1 | festival --language english --tts |
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 | |
# Intall node.js packages | |
# sudo npm install -g markdown-styles | |
# Convert a README.md to HTML | |
generate-md --layout github --input README.md |
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 | |
# Forwarding localhost Web and MySQL Unix-Socket and TCP Socket to other servers with socat | |
# | |
# Install: | |
# sudo apt-get install socat | |
# | |
# MySQL | |
socat UNIX-LISTEN:/var/lib/mysql/mysql.sock,fork,reuseaddr,unlink-early,user=mysql,group=mysql,mode=777 TCP:mysql-server:3306 & | |
# Apache2 | |
socat TCP-LISTEN:80,fork TCP:apache2-server:80 & |
NewerOlder