Skip to content

Instantly share code, notes, and snippets.

/*!
Math.uuid.js (v1.4)
http://www.broofa.com
mailto:robert@broofa.com
Copyright (c) 2010 Robert Kieffer
Dual licensed under the MIT and GPL licenses.
*/
/*
@Wind4
Wind4 / vwdecode.php
Created December 11, 2013 08:05
威盾PHP加密专家解密算法 By:Neeao
<?php
/***********************************
* 威盾PHP加密专家解密算法 By:Neeao
* http://Neeao.com
* 2009-09-10
***********************************/
$filename="index.php";//要解密的文件
$lines = file($filename);//0,1,2行
#!/bin/bash
BRANCH_CURRENT=$(git rev-parse --abbrev-ref HEAD)
BRANCH_TARGET=
DELETE_CURRENT=0
DEPLOY_COMMAND=
usage() {
echo "Usage: $0 target_branch [options]" 1>&2
echo "Options:" 1>&2
@Wind4
Wind4 / gist:27e4a279fc3e0d3647ce
Created July 29, 2015 07:34
Windows OEM Key
powershell "(Get-WmiObject -query ‘select * from SoftwareLicensingService’).OA3xOriginalProductKey"
#!/bin/bash
#
# Author: Wind4 (puxiaping@gmail.com)
#
# Installs a shadowsocks-libev server for CentOS 6/7
set -e
# declare
WORK_DIR=/tmp/shadowsocks-libev
#!/bin/bash
#
# vlmcsd - this script starts and stops the vlmcsd-server daemon
#
# Run level information:
# chkconfig: 2345 99 99
# description: KMS Emulator in C
# processname: vlmcsd
# Source function library
/**
* Fast UUID generator, RFC4122 version 4 compliant.
* @author Jeff Ward (jcward.com).
* @license MIT license
* @link http://stackoverflow.com/questions/105034/how-to-create-a-guid-uuid-in-javascript/21963136#21963136
**/
var UUID = (function() {
var self = {};
var lut = []; for (var i=0; i<256; i++) { lut[i] = (i<16?'0':'')+(i).toString(16); }
self.generate = function() {
@Wind4
Wind4 / ssh.txt
Last active April 3, 2019 12:34
CentOS禁止非WHEEL用户使用SU命令
[root@localhost ~]#useradd -M -s /sbin/nologin -n username
[root@localhost ~]#passwd username
@Wind4
Wind4 / ShutDown.cs
Created December 11, 2013 08:15
C# 调用系统关机、重启、注销的类
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.InteropServices;
namespace WorkHelper
{
class ShutDown
{