Skip to content

Instantly share code, notes, and snippets.

View j67678's full-sized avatar

j67678

View GitHub Profile
@j67678
j67678 / reclaimWindows10.ps1
Created September 3, 2017 08:54 — forked from alirobe/reclaimWindows10.ps1
This Windows 10 Setup Script turns off a bunch of unnecessary Windows 10 telemetery, removes bloatware, and privacy invasions. Not guaranteed to catch everything. Review and tweak before running. Reboot after running. Scripts for reversing are included and commented. Fork of https://github.com/Disassembler0/Win10-Initial-Setup-Script (different …
##########
# Tweaked Win10 Initial Setup Script
# Primary Author: Disassembler <[email protected]>
# Modified by: alirobe <[email protected]> based on my personal preferences.
# Version: 2.6.1, 2017-08-02
# Primary Author Source: https://github.com/Disassembler0/Win10-Initial-Setup-Script
# Tweaked Source: https://gist.github.com/alirobe/7f3b34ad89a159e6daa1/
# Tweak difference:
#
# @alirobe's version is a subset focused on safely disabling telemetry, 'smart' features, and 3rd party bloat ...
@j67678
j67678 / shadowsocks-libev.sh
Last active October 10, 2017 09:26 — forked from yzyzsun/shadowsocks-libev.sh
shadowsocks-libev server setup script on CentOS 7
yum -y install wget vim
cd /etc/yum.repos.d
wget https://copr.fedorainfracloud.org/coprs/librehat/shadowsocks/repo/epel-7/librehat-shadowsocks-epel-7.repo
yum -y install shadowsocks-libev
vim /etc/shadowsocks-libev/config.json
vim /usr/lib/systemd/system/shadowsocks-libev.service
#User=nobody
#Group=nobody
# 安装Caddy:
wget -N --no-check-certificate https://softs.fun/Bash/caddy_install.sh && chmod +x caddy_install.sh && bash caddy_install.sh install http.filemanager
# 配置Caddy:
mkdir -p /usr/local/caddy/www/file
echo ":80 {
root /usr/local/caddy/www/file
timeouts none
gzip
filemanager / /usr/local/caddy/www/file {
database /usr/local/caddy/filemanager.db
# 安装Caddy:
wget -N --no-check-certificate https://softs.fun/Bash/caddy_install.sh && chmod +x caddy_install.sh && bash caddy_install.sh install http.filemanager
# 配置Caddy:
mkdir -p /usr/local/caddy/www/file
echo ":80 {
root /usr/local/caddy/www/file
browse
timeouts none
gzip
}" > /usr/local/caddy/Caddyfile
# 安装Caddy:
wget -N --no-check-certificate https://softs.fun/Bash/caddy_install.sh && chmod +x caddy_install.sh && bash caddy_install.sh install http.filemanager
# 配置Caddy:
echo ":80 {
gzip
proxy / https://www.google.com.hk
}" > /usr/local/caddy/Caddyfile
/etc/init.d/caddy restart
import os
import subprocess
domains = open('domains.txt').read().splitlines()
domains_ok = open('domains_ok.txt', 'w')
domains_fail = open('domains_fail.txt', 'w')
for domain in domains:
@j67678
j67678 / BlurEffect.kt
Created July 23, 2019 00:26 — forked from mohanen/BlurEffect.kt
Android Image blur beyond renderscript blur radius
package com.example.ziro.blur
/**
* Created by ziro on 19/11/17.
*/
import android.content.Context
import android.graphics.Bitmap
import android.graphics.Canvas
import android.renderscript.Allocation
@j67678
j67678 / HotCorner.ahk
Last active September 26, 2019 01:27 — forked from dvtate/HotCorner.ahk
Add a hot-corner to switch desktop in windows 10
; download & install: https://autohotkey.com/
; save this script with the extension ".ahk"
; click on the script to start it and/or set it to launch automatically.
#Persistent
SetTimer, HotCorners, 0
return
HotCorners:
CoordMode, Mouse, Screen
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.