This file contains 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
import logging | |
logging.basicConfig(level=logging.DEBUG, | |
format='%(asctime)s %(filename)s[Line:%(lineno)d] %(levelname)s %(message)s', | |
datefmt='%Y-%m-%d %H:%M:%S', | |
filename='SSDB_SERVER.log', | |
filemode='w') | |
console = logging.StreamHandler() | |
console.setLevel(logging.INFO) |
This file contains 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 "Install SaltStack " | |
yum install -y https://repo.saltstack.com/yum/redhat/salt-repo-latest-1.el6.noarch.rpm | |
yum install -y gcc python-pip python-devel openssl-devel libffi-devel | |
yum install -y salt-master salt-minion salt-api | |
pip install pyopenssl | |
echo "Create User: saltapi password: saltapi" | |
useradd -M -s /sbin/nologin saltapi | |
echo 'saltapi' | passwd --stdin saltapi |
This file contains 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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Management; | |
namespace ConsoleApplication5 | |
{ | |
class VisualSVN_WMI_Api | |
{ | |
/// <summary> |
This file contains 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
#!/usr/bin/env bash | |
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin | |
export PATH | |
#=================================================================# | |
# System Required: CentOS 6,7, Debian, Ubuntu # | |
# Description: One click Install ShadowsocksR Server # | |
# Author: Teddysun <i@teddysun.com> # | |
# Thanks: @breakwa11 <https://twitter.com/breakwa11> # | |
# Intro: https://shadowsocks.be/9.html # | |
#=================================================================# |
This file contains 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
package main | |
import ( | |
"crypto/md5" | |
"encoding/hex" | |
"flag" | |
"fmt" | |
"io" | |
"log" | |
"os" |
This file contains 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 | |
pushd %~dp0 | |
CLS | |
COLOR 0E | |
:MAINMENU | |
CLS | |
ECHO. | |
ECHO --------------------------------------------------------------- | |
ECHO ---------------- Intel Meltdown Windows Patch ----------------- |
This file contains 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
SELECT tb.name AS "表名", | |
c.name AS "字段名称", | |
p.value AS "字段注释", | |
t.name AS "字段类型", | |
c.max_length AS "字段长度", | |
c.is_nullable AS "是否可空", | |
c.is_identity AS "是否主键" | |
FROM sys.tables AS tb | |
INNER JOIN sys.columns AS c ON tb.object_id = c.object_id | |
INNER JOIN sys.types AS t ON c.system_type_id = t.system_type_id |
This file contains 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
using System; | |
using System.Security.Authentication; | |
using System.Security.Cryptography.X509Certificates; | |
using Novell.Directory.Ldap; | |
namespace LDAPTest | |
{ | |
class Program | |
{ | |
static void Main(string[] args) |
This file contains 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 encFunc = function (inValue) { | |
var result = ""; | |
var v1, v2, v3, v4, v5, v6, v7; | |
var index = 0x0; | |
var secDict = | |
"A4NjFqYu5wPHsO0XTdDgMa2r1ZQocVte9UJBvk6/7=yRnhISGKblCWi+LpfE8xzm3"; | |
while (index < inValue.length) { | |
v1 = inValue.charCodeAt(index++); | |
v2 = inValue.charCodeAt(index++); | |
v3 = inValue.charCodeAt(index++); |
This file contains 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
public class OkHttp3Hook { | |
private static final String TAG = "OkHttp3Hook"; | |
private static final String realCallClassName = "okhttp3.RealCall"; | |
private static final String httpUrlClassName = "okhttp3.HttpUrl"; | |
private static final String requestBuilderClassName = "okhttp3.Request$Builder"; | |
private static final String getResponseWithInterceptorChainMethodName = "getResponseWithInterceptorChain"; | |
/** |
OlderNewer