Skip to content

Instantly share code, notes, and snippets.

View u1-liquid's full-sized avatar
👋
手を振る

まっちゃとーにゅ u1-liquid

👋
手を振る
View GitHub Profile
@u1-liquid
u1-liquid / gist:fc2ec6b7cbe813d0d101f15d7f31d49b
Last active February 25, 2017 11:20
Create Bootable ISO image at Ubuntu
genisoimage -b boot/etfsboot.com -no-emul-boot -boot-load-size 8 -iso-level 2 -udf -joliet-long -allow-limited-size -V -J -l -D -N -r -relaxed-filenames -o server2012r2.iso /mnt/iso
@u1-liquid
u1-liquid / Sakura.txt
Created February 25, 2017 17:23
Switter For Windows by @hanalen_ ColorSchemes like Azurea's Sakura
{
"blockOne":"#ffe0e0",
"blockTwo":"#ffc0c0",
"mentionOne":"#e0ffe0",
"mentionTwo":"#c0ffc0",
"select":"#d0e0ff",
"tweet":"#000000",
"retweet":"#408000",
"mention":"#0000ff",
"defaultColor":"#ffe0e0",
@u1-liquid
u1-liquid / Connect to VPN.xml
Created February 25, 2017 19:22
Connect VPN automatically on boot (or network connected)
<?xml version="1.0" encoding="UTF-16"?>
<Task version="1.4" xmlns="http://schemas.microsoft.com/windows/2004/02/mit/task">
<RegistrationInfo>
<Date>2016-06-15T02:46:17.5513954</Date>
<Author>tsukinet-notepc\satsuki</Author>
<URI>\Connect to vpn</URI>
</RegistrationInfo>
<Triggers>
<EventTrigger>
<Enabled>true</Enabled>
@u1-liquid
u1-liquid / config.yml
Last active February 26, 2017 15:31
FlexGet Configuration for get torrent automatically from nyaa.se
tasks:
nyaa-se:
rss: http://www.nyaa.se/?page=rss&cats=1_11&term=searchterm&user=userid
metainfo_series: yes
series:
settings:
OnAir:
set:
path: /path/for/storage/{{series_name}}/
OnAir:
@u1-liquid
u1-liquid / setup-gitlab.sh
Created March 3, 2017 14:21
Setup GitLab using Docker
#!/bin/sh
sudo docker pull gitlab/gitlab-ce:latest
sudo docker run --detach \
--hostname gitlab.some.where \
--publish 80:80 \
--publish 443:443 \
--publish 22:22 \
--name gitlab \
@u1-liquid
u1-liquid / setup-sentry.sh
Last active April 3, 2017 20:08
Setup Sentry using Docker
#!/bin/sh
sudo docker pull redis:3.2-alpine
sudo docker pull postgres:9.5
sudo docker pull tianon/exim4
sudo docker pull sentry:latest
sudo docker run \
--detach \
--name sentry-redis \
@u1-liquid
u1-liquid / dnsmasq.postconf
Created July 29, 2017 19:46
Asuswrt-Merlin OpenVPN dedicated SSID configuration for both 2.4G/5G Guest Network
#!/bin/sh
CONFIG=$1
source /usr/sbin/helper.sh
logger "dnsmasq-dhcp: Configure wl0.1 and wl1.1 to have isolated DHCP"
ifconfig wl0.1 192.168.33.1 netmask 255.255.255.0
ifconfig wl1.1 192.168.34.1 netmask 255.255.255.0
iptables -D INPUT -i wl0.1 -j ACCEPT
iptables -I INPUT -i wl0.1 -j ACCEPT

Keybase proof

I hereby claim:

  • I am u1-liquid on github.
  • I am u1_liquid (https://keybase.io/u1_liquid) on keybase.
  • I have a public key ASAuT0_-aqMLx-SzXgqjolfeYgUqJoi86y6FONMagsT0kgo

To claim this, I am signing this object:

@u1-liquid
u1-liquid / file0.txt
Last active October 14, 2018 17:36
CentOSしかサポートしてくれないVPSサービスですが何としてもWindows Serverを動かしてみたかったです ref: https://qiita.com/u1-liquid/items/b9ae7d032f607c69e11a
[root@sdurnqde ~]# yum install -y curl vim unzip
@u1-liquid
u1-liquid / iro-moe.nginx.vhost
Created October 23, 2019 12:43
Nginx Virtual Host setup including Misskey, Matrix-Synapse, Matrix-Riot-Web
map $http_upgrade $connection_upgrade {
default upgrade;
'' close;
}
proxy_cache_path /var/cache/nginx/misskey levels=1:2 keys_zone=CACHE-MSKY:10m inactive=7d max_size=1g;
server {
listen 80;
listen [::]:80;