Skip to content

Instantly share code, notes, and snippets.

View TakashiSasaki's full-sized avatar

Takashi SASAKI TakashiSasaki

View GitHub Profile
@TakashiSasaki
TakashiSasaki / gitlab on QNAP.yaml
Created March 9, 2018 05:56
Dockerコンテナを更新するにあたって、マルチコンテナの設定ファイルをコピーしておく。
gitlab:
environment:
DEBUG: 'false'
GITLAB_PORT: 10080
GITLAB_SECRETS_DB_KEY_BASE: qcs-gitlab-app
GITLAB_SSH_PORT: 10022
image: sameersbn/gitlab:8.9.6-1
links:
- redis:redisio
- postgresql:postgresql
@TakashiSasaki
TakashiSasaki / gitlab.yaml
Last active March 27, 2018 15:25
gitlab on QNAP
gitlab:
environment:
DEBUG: 'false'
GITLAB_PORT: 10080
GITLAB_SECRETS_DB_KEY_BASE: qcs-gitlab-app
GITLAB_SSH_PORT: 10022
GITLAB_SECRETS_SECRET_KEY_BASE: randomrandomrandom
GITLAB_SECRETS_OTP_KEY_BASE: hogehogehoge12345
image: sameersbn/gitlab:10.4.4
links:
@TakashiSasaki
TakashiSasaki / naming.abnf
Last active September 27, 2018 01:40
Naming convention
name = leader *("." trailer)
leader = 1*term *( "-" term)
trailer = 1*hexchar / decimals
term = ( ALPHA / ucschar / iprivate ) *( ALPHA / DIGIT / ucschar / iprivate )
hexchar = HEXDIG / "a" / "b" / "c" / "d" / "e" / "f"
decimals = integer "." integer *( "." integer )
integer = ( %x31-39 *DIGIT ) / "0"
ucschar = %xA0-D7FF / %xF900-FDCF / %xFDF0-FFEF / u1234 / u56789 / uabcde
u1234 = %x10000-1FFFD / %x20000-2FFFD / %x30000-3FFFD / %x40000-4FFFD
u56789 = %x50000-5FFFD / %x60000-6FFFD / %x70000-7FFFD / %x80000-8FFFD / %x90000-9FFFD
@TakashiSasaki
TakashiSasaki / Raspbian make -p
Last active September 30, 2018 07:09
make -p -f /dev/null on various environments
make: *** No targets. Stop.
# GNU Make 4.1
# Built for arm-unknown-linux-gnueabihf
# Copyright (C) 1988-2014 Free Software Foundation, Inc.
# License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
# This is free software: you are free to change and redistribute it.
# There is NO WARRANTY, to the extent permitted by law.
# Make data base, printed on Sun Sep 30 16:08:59 2018
hogehoge
fugafuga
@TakashiSasaki
TakashiSasaki / block-domains-2020.txt
Last active March 2, 2022 11:25
Blocked domains by Takashi SASAKI
2mdn.net
doubleclick.net
im-apps.net
kanade-ad.net
lijit.com
logly.co.jp
openx.net
outbrain.com
pippio.com
@TakashiSasaki
TakashiSasaki / export on bash
Created November 14, 2018 08:41
Cygwinインストール直後の環境変数とか。
declare -x ALLUSERSPROFILE="C:\\ProgramData"
declare -x APPDATA="C:\\Users\\佐々木隆志\\AppData\\Roaming"
declare -x CLASSPATH=".;.;.;.;.;C:\\PROGRA~2\\JMF21~1.1E\\lib\\sound.jar;C:\\PROGRA~2\\JMF21~1.1E\\lib\\jmf.jar;C:\\PROGRA~2\\JMF21~1.1E\\lib;"
declare -x COMMONPROGRAMFILES="C:\\Program Files\\Common Files"
declare -x COMPUTERNAME="SURFACEPRO4"
declare -x COMSPEC="C:\\WINDOWS\\system32\\cmd.exe"
declare -x CommonProgramW6432="C:\\Program Files\\Common Files"
declare -x DriverData="C:\\Windows\\System32\\Drivers\\DriverData"
declare -x EXECIGNORE="*.dll"
declare -x FPS_BROWSER_APP_PROFILE_STRING="Internet Explorer"
@TakashiSasaki
TakashiSasaki / etc-default_config-smb.conf
Created November 19, 2018 03:42
smb.conf of my QNAP TS-1079 Pro
[global]
passdb backend = smbpasswd
workgroup = WORKGROUP
security=user
server string=NAS Server
encrypt passwords = Yes
username level = 0
map to guest = Bad User
null passwords = Yes
max log size = 10
@TakashiSasaki
TakashiSasaki / .gitignore
Last active November 22, 2018 00:22
systemd and init.d script for dhtnode on my Raspbery Pi
*.swp
id_rsa.pem
openconnect.conf
password.enc
password.txt