This file contains hidden or 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
# Packages | |
*.gz | |
*.bz2 | |
*.xz | |
*.7z | |
*.tar | |
# Source folders | |
nginx/* | |
openssl-*/* |
This file contains hidden or 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
@echo off | |
setlocal EnableExtensions EnableDelayedExpansion | |
pushd "%~dp0" | |
:Download_7zip | |
set version=7z1803 | |
appveyor DownloadFile https://www.7-zip.org/a/%version%-src.7z | |
7z x %version%-src.7z | |
:Patch |
This file contains hidden or 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
let crctable = function() { | |
let c = 0, | |
table = typeof Int32Array !== 'undefined' ? new Int32Array(256) : new Array(256); | |
for (let n = 0; n !== 256; ++n) { | |
c = n; | |
for (let x = 0; x < 8; x++) { | |
c = c & 1 ? -306674912 ^ c >>> 1 : c >>> 1; | |
} | |
table[n] = c; | |
} |
This file contains hidden or 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
version: 1.0.{build} | |
build_script: | |
- cmd: >- | |
C:\msys64\usr\bin\pacman -Syyuu --noconfirm | |
C:\msys64\usr\bin\pacman -Suu --noconfirm | |
appveyor DownloadFile https://gist.github.com/myfreeer/c8df0b2acbf97e8b391ca741e5248f3f/raw/tinycc-build.sh | |
set MSYSTEM=MINGW64 |
This file contains hidden or 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
version: 1.0.{build} | |
install: | |
- ps: >- | |
$gitData = ConvertFrom-StringData (git log -1 --format=format:"commitId=%H%nmessage=%s%ncommitted=%aD" | out-string) | |
if ($gitData['message'] -eq "") { $gitData['message'] = "No commit message available for $($gitData['commitid'])" } | |
# View the data with Write-Output @gitData | |
Update-AppveyorBuild @gitData |
This file contains hidden or 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
let arr = `112.80.248.52 | |
27.221.40.46 | |
119.75.219.40 | |
111.13.12.44 | |
111.13.12.22 | |
111.13.100.27 | |
117.185.16.83 | |
117.185.16.84 | |
117.185.16.13`.split('\n'); | |
arr = arr.map(url=>'http://'+url); |
This file contains hidden or 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
// ==UserScript== | |
// @name 百度网盘直接下载助手 | |
// @namespace undefined | |
// @version 0.9.24 | |
// @description 直接下载百度网盘和百度网盘分享的文件,避免下载文件时调用百度网盘客户端,获取网盘文件的直接下载地址 | |
// @author ivesjay | |
// @downloadURL https://gist.github.com/myfreeer/1106826093c401d5276bd35247a1465b/raw/baidu-pan.user.js | |
// @match *://pan.baidu.com/disk/home* | |
// @match *://yun.baidu.com/disk/home* | |
// @match *://pan.baidu.com/s/* |
This file contains hidden or 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
var myEvents = ["contextmenu", "select", "selectstart", "copy", "cut", "paste", "drag", "dragend", "dragenter", "dragleave", "dragover", "dragstart", "drop"]; | |
if (window.restrictIsFucked) myEvents.push("wheel", "select", "focus", "scroll", "keydown", "keypress", "keyup", "mousedown", "mouseenter", "mouseleave", "mousemove", "mouseout", "mouseover", "mouseup", "mousewheel", "pointercancel", "pointerdown", "pointerenter", "pointerleave", "pointermove", "pointerout", "pointerover"); | |
[...document.getElementsByTagName('*'), document, window] | |
.map(element => getEventListeners(element)) | |
.map(eventListeners => myEvents | |
.map(eventName => eventListeners[eventName]) | |
.filter(e => e === 0 || e) | |
.map(events => [...events].forEach(event => event.remove()))); | |
window.restrictIsFucked = 1; |
This file contains hidden or 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
git config --global http.proxy http://127.0.0.1:8087 | |
git config --global https.proxy http://127.0.0.1:8087 | |
git config --global --unset http.proxy | |
git config --global --unset https.proxy | |
set_proxy() { | |
git config http.proxy 127.0.0.1:8087 | |
git config https.proxy 127.0.0.1:8087 | |
git config http.sslVerify false |
NewerOlder