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 / upgrade.sh
Last active April 2, 2020 13:45
Unattended upgrade riot-web (Matrix.org Web Client) including pre-releases
#!/bin/bash
pushd /home/matrix/riot > /dev/null
LATEST=$(curl -sSL https://api.github.com/repos/vector-im/riot-web/releases | grep "browser_download_url" | grep -o -E "https://github.com/(.+)\.\w+" | grep -E "\.tar\.gz$" | head -n 1)
curl -sSL -o latest $LATEST.asc && diff current latest
if [[ $? -eq 0 ]]; then
rm latest
else
curl -sSL -o riot.tar.gz $LATEST
@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;
@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

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 / 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
@u1-liquid
u1-liquid / update-gitlab.sh
Created March 3, 2017 14:22
Update GitLab on Docker
#!/bin/sh
sudo docker stop gitlab
sudo docker rm gitlab
sudo docker pull gitlab/gitlab-ce:latest
sudo docker run --detach \
--hostname gitlab.some.where \
--publish 80:80 \
--publish 443:443 \
@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 / update-sentry.sh
Last active March 23, 2022 15:01
Update Sentry on Docker
#!/bin/sh
sudo docker stop sentry-worker sentry-cron
sudo docker stop sentry sentry-smtp sentry-postgres sentry-redis
sudo docker rm sentry-worker
sudo docker rm sentry-cron
sudo docker rm sentry
sudo docker rm sentry-smtp
sudo docker rm sentry-postgres
@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 / 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>