Skip to content

Instantly share code, notes, and snippets.

View Vaduz's full-sized avatar

Satoru Yoshihara Vaduz

View GitHub Profile
@Vaduz
Vaduz / style.css
Last active April 7, 2021 00:00
IntelliJ IDEA Markdown Plugin Custom CSS for preview
body {
font-family: 'Hiragino Kaku Gothic Pro', 'ヒラギノ角ゴ Pro W3', Meiryo, メイリオ, Osaka, 'MS PGothic', arial, helvetica, sans-serif;
font-size: 85%;
}
@Vaduz
Vaduz / gist:5fbfd6ac651c371148bd9dc3a7a329b3
Created August 28, 2016 15:04
recursively convert iso file to mkv by using handbrakecli in windows
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" }
[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
#!/bin/bash
printf "password\nshutdown\n" | /usr/bin/nc localhost 8081
@Vaduz
Vaduz / gist:126ebe67ae3c318383cf
Last active November 13, 2015 11:38
Install QT5 & Mumble server on Raspberry PI
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
@Vaduz
Vaduz / murmur_setup.sh
Created August 23, 2015 20:02
Setting up murmur server on Raspberry PI
#!/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
@Vaduz
Vaduz / dice_chart.js
Created February 23, 2015 09:54
kataso dice chart
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);
#!/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
@Vaduz
Vaduz / gist:d4dd4cac6374dcb50cbc
Last active June 5, 2018 19:06
CSGO Dedicated server setup
# 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
@Vaduz
Vaduz / gist:7867773
Created December 9, 2013 05:40
remove control char
sed -r "s/\x1B\[([0-9]{1,3}((;[0-9]{1,3})*)?)?[m|K]//g"