I hereby claim:
- I am anon5r on github.
- I am fujimoto (https://keybase.io/fujimoto) on keybase.
- I have a public key whose fingerprint is 1C02 8A68 60C4 E654 4CED E017 FF88 E49C 9EB7 87A4
To claim this, I am signing this object:
#!/bin/sh | |
#DOCKER_TAG=latest | |
SLEEP_SEC=30 | |
DOCKER_TAG=${1:-latest} | |
GITLAB_PORT_HTTP=50080 | |
GITLAB_PORT_SSL=443 | |
GITLAB_PORT_SSH=22 | |
echo -e "\e[1;37mPulling tag:\e[m \e[33m$DOCKER_TAG\e[m" | |
sudo docker pull gitlab/gitlab-ce:$DOCKER_TAG |
location ^~ /.well-known/acme-challenge/ { | |
root /var/www/letsencrypt; | |
} | |
location = /.well-known/acme-challenge/ { | |
return 404; | |
} |
#!/bin/sh | |
# 無難な対応としては、最初にmastodonを一度停止した方が良いので停止する。 | |
# systemctl stop mastodon-{web,sidekiq,stream} | |
# mastodonユーザー出ない場合は下記のコマンドでmastodonユーザーになる | |
# 一般ユーザーからの場合 | |
# sudo su - mastodon |
package net.anoncom.android.example; | |
import java.io.IOException; | |
import org.xmlpull.v1.XmlPullParser; | |
import org.xmlpull.v1.XmlPullParserException; | |
import android.content.res.Resources; | |
import android.util.Log; | |
public class XmlSample { |
I hereby claim:
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
print "今日も一日がんばるびぃ!\n" |
<?php | |
/** | |
* $hostname が接続先として接続応答出来る状態かを確認します。 | |
* | |
* @access public | |
* @static | |
* @param string $hostname 接続先ホスト名またはIP | |
* @param int $port 接続先ポート番号 | |
* @param int $timeout タイムアウトを指定する(秒) | |
* @return boolean |
// Pad string to right | |
String.prototype.pad=function(len,str){ | |
if(typeof str=="undefined") str=" "; | |
if(this.length>len) return this.toString(); | |
str=str.repeat(len-this.length); | |
return (this+str).substr(0,len); | |
} | |
// Pad string to left | |
String.prototype.lpad=function(len,str){ | |
if(typeof str=="undefined") str=" "; |
<?php | |
// 回転するやつ /-\| | |
$c=['|','/','-','\\']; | |
// like GCP | |
//$c=['⣤','⣆','⡇','⠏','⠛','⠹','⢸','⣰']; | |
$ci = count($c); | |
for($i=0;$i<=100;$i++){ | |
echo "\r"; // 描画カーソルを行頭に戻す | |
$block=str_repeat('#',floor($i/5)); | |
printf('Processing... %s [%-20s]%3d%%', $c[$i%$ci], $block, $i); |