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
body { | |
font-family: 'Hiragino Kaku Gothic Pro', 'ヒラギノ角ゴ Pro W3', Meiryo, メイリオ, Osaka, 'MS PGothic', arial, helvetica, sans-serif; | |
font-size: 85%; | |
} |
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
gci . *.ISO -R | ForEach-Object { $input = $_.FullName; $newfile = "E:\ISOs\" + $_.BaseName + ".mkv"; &"C:\Program Files\HandBrake\HandBrakeCLI.exe" -i "$input" -o "$newfile" --preset "High Profile" } |
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
[Unit] | |
Description=7 Days to Die dedicated server | |
After=auditd.service systemd-user-sessions.service network.target | |
[Service] | |
ExecStart=/home/vaduz/steamcmd/7d2d/startserver.sh -configfile=serverconfig.xml | |
ExecStop=/home/vaduz/bin/kill7d2d.sh | |
RestartSec=5s | |
Restart=always |
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 | |
printf "password\nshutdown\n" | /usr/bin/nc localhost 8081 |
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
sudo apt-get update | |
sudo apt-get upgrade | |
sudo apt-get install debian-keyring debian-archive-keyring | |
sudo echo "deb http://ftp.debian.org/debian/ wheezy-backports main" >> /etc/apt/sources.list | |
sudo echo "deb-src http://ftp.debian.org/debian/ wheezy-backports main" >> /etc/apt/sources.list | |
# If you get warning like: There is no public key available for the following key IDs: | |
# You can add the key by following commands |
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 | |
sudo apt-get install build-essential pkg-config qt4-dev-tools libqt4-dev libspeex1 \ | |
libspeex-dev libboost-dev libasound2-dev libssl-dev g++ \ | |
libspeechd-dev libzeroc-ice-dev ice-slice libpulse-dev slice2cpp \ | |
libcap-dev libspeexdsp-dev libprotobuf-dev protobuf-compiler \ | |
libogg-dev libavahi-compat-libdnssd-dev libsndfile1-dev \ | |
libg15daemon-client-dev libxi-dev | |
wget http://download.qt.io/official_releases/qt/5.5/5.5.0/single/qt-everywhere-opensource-src-5.5.0.tar.gz |
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
var script = document.createElement("script"); | |
script.src = "https://www.google.com/jsapi"; | |
document.body.appendChild(script); | |
var chart_div = document.createElement("div"); | |
chart_div.id = "dice_chart"; | |
google.load("visualization", '1', {packages:['corechart']}); | |
var chart = new google.visualization.ColumnChart(chart_div); |
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/env ruby | |
while line = STDIN.gets | |
#puts line | |
fields = line.split(' ') | |
if fields[4].to_f < 0 | |
fields[4] = fields[4].to_f + 180.0 | |
elsif fields[4].to_f > 0 | |
fields[4] = fields[4].to_f - 180.0 | |
end |
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
# set up host | |
# execute following commands by root | |
adduser deploy -g wheel | |
echo 'deploy ALL=(ALL) NOPASSWD: ALL' > /etc/sudoers.d/deploy | |
# Connect with deploy | |
# prerequisite | |
yum install ld-linux.so.2 glibc.i686 libstdc++.i686 wget unzip | |
# CentOS 7 oriented | |
yum install net-tools |
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
sed -r "s/\x1B\[([0-9]{1,3}((;[0-9]{1,3})*)?)?[m|K]//g" |
NewerOlder