Skip to content

Instantly share code, notes, and snippets.

View linkimfly's full-sized avatar
🤒
Out sick

linkimfly

🤒
Out sick
View GitHub Profile
@huntagain2008
huntagain2008 / wechat_bot.vbs
Last active January 21, 2022 11:39
Windows微信桌面端定时发送消息vbs脚本
WeekStr = "2,3,4,5,6"'Monday, Tuesday, Wednesday, Thursday, Friday
someTime = #9:19:01 AM#
NameStr = "WeChat Friend Name or WeChat Group Name"
TextStr = "36.1"
Function Istime(I_dayofweek,Times)'Scheduled Execution
userHour=Hour(Times)
userMinute=Minute(Times)
userSecond=Second(Times)
@alexcontes
alexcontes / wait-for-elements.js
Created September 21, 2018 07:52
Wait for elements
/**
* @param sel - the selector you want to wait for
* @param action - the callback that will be executed when element/s matching the given selector are found, it is passed the array of found elements
* @param stopLooking - if true the function will stop looking for more elements after the first match
*/
function waitForElems(sel, action, stopLooking) {
var tick;
var id = 'fke' + Math.floor(Math.random() * 12345);
var type = window.MutationObserver ? 'M' : 'S';
var lastMutation = Date.now();
@rhukster
rhukster / sphp.sh
Last active March 30, 2024 10:41
Easy Brew PHP version switching (Now moved to https://github.com/rhukster/sphp.sh)
#!/bin/bash
# Creator: Phil Cook
# Modified: Andy Miller
#
# >>> IMPORTANT: Moved to: https://github.com/rhukster/sphp.sh
# >>> Kept here for legacy purposes
#
osx_major_version=$(sw_vers -productVersion | cut -d. -f1)
osx_minor_version=$(sw_vers -productVersion | cut -d. -f2)
osx_patch_version=$(sw_vers -productVersion | cut -d. -f3)
@whour
whour / Sublime Text Licence Key Build 3156
Created December 12, 2017 02:49 — forked from dr3772/Sublime Text Licence Key Build 3156
Sublime Text Dev Build 3156 Serial Key
----- BEGIN LICENSE -----
eldon
Single User License
EA7E-1122628
C0360740 20724B8A 30420C09 6D7E046F
3F5D5FBB 17EF95DA 2BA7BB27 CCB14947
27A316BE 8BCF4BC0 252FB8FF FD97DF71
B11A1DA9 F7119CA0 31984BB9 7D71700C
2C728BF8 B952E5F5 B941FF64 6D7979DA
B8EB32F8 8D415F8E F16FE657 A35381CC
@cprakashagr
cprakashagr / LICENCE SUBLIME TEXT
Last active May 1, 2024 10:50
Sublime Text 3 Serial key build is 3143
## Sublime Text 3 Serial key build is 3103
—– BEGIN LICENSE —–
Michael Barnes
Single User License
EA7E-821385
8A353C41 872A0D5C DF9B2950 AFF6F667
C458EA6D 8EA3C286 98D1D650 131A97AB
AA919AEC EF20E143 B361B1E7 4C8B7F04
B085E65E 2F5F5360 8489D422 FB8FC1AA
@Aeternam
Aeternam / getopt_prac.py
Created November 29, 2016 08:43
best getopt exmaple
#!/bin/env python
#coding:utf-8
#
import getopt,sys
def usage():
"""
The output configuration file contents.
@snakevil
snakevil / router.pi-1.md
Last active April 16, 2024 20:57
使用树莓派3B打造超强路由之一:初装

使用树莓派3B打造超强路由之一:初装

新款的树莓派3B功能之丰富,性能之强悍,让我垂涎。考虑到家里的网件 WNDR3700v2 也服役四年有余了。还是败了一个树莓派3B回来打造成新的路由。

WARNING 本文所有指令均仅供参考,切勿无脑复制粘贴!

〇 安装系统

/*--- waitForKeyElements(): A utility function, for Greasemonkey scripts,
that detects and handles AJAXed content.
Usage example:
waitForKeyElements (
"div.comments"
, commentCallbackFunction
);
@JulienBlancher
JulienBlancher / filter.d_nginx-auth.conf
Last active March 26, 2024 12:52
Fail2ban Config with Nginx and SSH
#
# Auth filter /etc/fail2ban/filter.d/nginx-auth.conf:
#
# Blocks IPs that makes too much accesses to the server
#
[Definition]
failregex = ^<HOST> -.*"(GET|POST).*HTTP.*"
ignoreregex =
@LeCoupa
LeCoupa / fake-referer.casper.coffee
Last active October 21, 2020 10:43 — forked from papoms/fake-referrer.casper.js
How to fake the HTTP referer with CasperJS --> https://github.com/LeCoupa/awesome-cheatsheets
# Define Variables + Casper Initialization
fakeReferer = 'https://google.com/'
targetUrl = 'https://facebook.com/'
casper = require('casper').create()
# Fake the referer
casper.start fakeReferer, ->