Skip to content

Instantly share code, notes, and snippets.

View GitHub30's full-sized avatar
🌴
On vacation

GitHub30

🌴
On vacation
  • Osaka, Japan
View GitHub Profile
@GitHub30
GitHub30 / install-libproj.so.ubuntu1710.sh
Created April 22, 2018 06:50
Workbench can't find libproj.so, some options may be unavailable.
sudo apt install -y libproj12
var conditions = [{lt: 10000, tax: 0}, {ge: 10000, lt: 15000, tax: 100}, {ge: 15000, lt: 20000, tax: 200}, {ge: 20000, tax: 300}];
function accommodationTax(charge){
for(var condition of conditions){
if((!condition.ge || charge >= condition.ge) && (!condition.lt || charge < condition.lt)){
return condition.tax;
}
}
}
FILE_PATH='/usr/local/bin/gdrive' \
&& sudo wget -O "$FILE_PATH" 'https://docs.google.com/uc?id=0B3X9GlR6EmbnQ0FtZmJJUXEyRTA&export=download' \
&& sudo chmod +x "$FILE_PATH"
gdrive list -q 'name contains "partial"'
from os import system
from time import sleep
from requests_html import HTMLSession
url = 'http://releases.ubuntu.com/18.04/'
print(url)
while True:
if HTMLSession().get(url).html.find('title', first=True).text != 'Ubuntu 18.04 LTS (Bionic Beaver) Beta 2':
system('notify-send "Ubuntu 18.04 released"')
async function checkAppDomain(subdomain='subdomain'){
const res = await fetch('https://domain-registry.appspot.com/check?domain=' + subdomain + '.app').then(r => r.json());
console.info(subdomain, res);
}
@GitHub30
GitHub30 / death_march.md
Created May 7, 2018 04:55 — forked from voluntas/death_march.md
デスマーチが起きる理由 - 3つの指標

デスマーチが起きる理由 - 3つの指標

著者: 青い鴉(ぶるくろ) @bluecrow2

これは結城浩さんの YukiWiki 運用停止で消えてしまった http://www.hyuki.com/yukiwiki/wiki.cgi?%A5%C7%A5%B9%A5%DE%A1%BC%A5%C1%A4%AC%B5%AF%A4%AD%A4%EB%CD%FD%CD%B3 に存在していた文章のバックアップです。 自分がとても感銘を受けた文章なので、このまま読めなくなるのはとてももったいないと思い、バックアップとして公開しています。

もし図を保存されていた方いらっしゃいましたら、 Gist にコメントを頂けると嬉しいです。

この記事に対してなにかある場合はこの Gist にコメントをお願いします。

#cat /etc/system-release
# Amazon Linux AMI release 2018.03
# LinuxのNetwork Interfaceの名前は15文字まで(NICNAMEは11文字まで)
set -xe \
&& sudo yum -y update \
&& sudo yum -y install git gcc readline-devel openssl-devel \
&& git clone https://github.com/SoftEtherVPN/SoftEtherVPN.git \
&& cd SoftEtherVPN/ \
# LinuxのNetwork Interfaceの名前は15文字まで(NICNAMEは11文字まで)
set -x \
&& NICNAME=honmachi ACCOUNTNAME=honmachi HUB=DEFAULT USERNAME=username PASSWORD= IP_ADDRESS=10.0.2.15 \
&& vpncmd localhost /SERVER /HUB:$DEFAULT /CMD UserCreate $USERNAME /GROUP:none /REALNAME:none /NOTE:none \
&& vpncmd localhost /SERVER /HUB:$DEFAULT /CMD UserPasswordSet $USERNAME /PASSWORD:$PASSWORD \
&& vpncmd localhost /CLIENT /CMD NicCreate $NICNAME \
&& vpncmd localhost /CLIENT /CMD NicList \
&& vpncmd localhost /CLIENT /CMD AccountCreate $ACCOUNTNAME /SERVER:localhost:443 /HUB:$HUB /USERNAME:$USERNAME /NICNAME:$NICNAME \
&& vpncmd localhost /CLIENT /CMD AccountList \
&& vpncmd localhost /CLIENT /CMD AccountPasswordSet $ACCOUNTNAME /PASSWORD:$PASSWORD /TYPE:standard \
set -x \
&& curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash - \
&& sudo apt-get install -y nodejs \
&& sudo apt-get install gcc g++ make \
&& curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add - \
&& echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list \
&& sudo apt-get update \
&& sudo apt-get install -y yarn