# Surge configuration file
[Host]
# DNS Hijack
conntest.nintendowifi.net = 10.0.0.1
# the IP address which you want to display the bootstrap page.
[Rule]
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
#DYNAMIC_IP="" | |
set -e | |
# Set the default policies to allow everything while we set up new rules. | |
# Prevents cutting yourself off when running from remote SSH. | |
/sbin/iptables -P INPUT ACCEPT | |
/sbin/iptables -P FORWARD ACCEPT | |
/sbin/iptables -P OUTPUT ACCEPT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | |
MAKEJOBS=$(cat /proc/cpuinfo | grep processor | wc -l) | |
# fix PATH priority, better set in .bashrc / .zshrc | |
export PATH=/usr/local/bin:$PATH | |
sudo yum update && \ | |
sudo yum groupinstall -y "Development Tools" && \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- user.rb 2019-10-08 18:55:14.014163674 +0800 | |
+++ user-patched.rb 2019-10-08 19:04:01.748236038 +0800 | |
@@ -48,7 +48,7 @@ | |
gl_user.block if block_after_save | |
- log.info "(#{provider}) saving user #{auth_hash.email} from login with admin => #{gl_user.admin}, extern_uid => #{auth_hash.uid}" | |
+ log.info "(#{provider}) saving user #{auth_hash.email} from login with admin => #{gl_user.admin}, extern_uid => #{auth_hash.uid}, primary email => #{gl_user.email}, user.external => #{gl_user.external}" | |
gl_user | |
rescue ActiveRecord::RecordInvalid => e |
OlderNewer