Skip to content

Instantly share code, notes, and snippets.

View j67678's full-sized avatar

j67678

View GitHub Profile
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@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
@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
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:
# 安装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
# 安装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:
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
@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
@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 <disassembler@dasm.cz>
# Modified by: alirobe <alirobe@alirobe.com> 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 / Windows 10 Disable Services.bat
Created September 3, 2017 08:48 — forked from 2510/Windows 10 Disable Services.bat
Disable unused services (for me) on Windows 10
REM Windows Search
sc config WSearch start=disabled
REM SSDP Discovery
sc config SSDPSRV start=disabled
REM Geolocation Service
sc config lfsvc start=disabled
REM ActiveX Installer
sc config AXInstSV start=disabled
REM AllJoyn Router Service
sc config AJRouter start=disabled