Skip to content

Instantly share code, notes, and snippets.

<?php
/**
* 加密 hash,生成发送给用户的 hash 字符串
*
* @param array $hash_data
* @param string $hash_key
* @return string
*/
function encode_hash($hash_data, $hash_key = false)
@nameldk
nameldk / .bash_profile - windows git bash
Last active September 19, 2017 08:34
.bash_profile on windows git bash, .bashrc not working
# git
alias g='git'
alias gl='git pull'
alias gco='git checkout'
alias gb='git branch'
alias gba='git branch -a'
alias gst='git status'
alias gr='git remote'
# dir
@nameldk
nameldk / curl.ini
Created January 19, 2018 08:14 — forked from reinaldomendes/curl.ini
PHP Curl error 77 on ssl conections
;###################################################
; NOTE
;####################################################
; change your curl.ini on /etc/php.d/curl.ini
;
;This config was only tested on amazon AMI
;Please check if /etc/ssl/certs/ca-bundle.crt exists
;
;If you don't have the ca-bundle root certificate you
; can get this in
@nameldk
nameldk / sublime text 3 eclipse keymap
Last active February 11, 2019 03:10 — forked from Flet/gist:5447732
Sublime Text: Eclipse Shortcuts keymap
[
{ "keys": ["f12"], "command": "htmlprettify"},
{ "keys": ["f1"], "command": "fold" },
{ "keys": ["f2"], "command": "unfold" },
{ "keys": ["alt+/"], "command": "auto_complete" },
{ "keys": ["alt+/"], "command": "replace_completion_with_auto_complete", "context":
[
{ "key": "last_command", "operator": "equal", "operand": "insert_best_completion" },
{ "key": "auto_complete_visible", "operator": "equal", "operand": false },
@nameldk
nameldk / bank.txt
Created June 15, 2018 09:18 — forked from jpzhu/bank.txt
银行 电子回单
招商银行 https://app.cmbchina.com/cevs/checkmain.aspx 企业
招商银行 https://app.cmbchina.com/pevs/pccheck.aspx 个人
建设银行 https://b2bstatic.ccb.com/B2Bdzhd.HTM
中国银行 https://ebsnew.boc.cn/boccp/elecbillvalidate.html?lan=C
工商银行 https://mybank.icbc.com.cn/icbc/perbank/e_bill/ebill_verify_query.jsp?isClose=1
交通银行 http://www.bankcomm.com/BankCommSite/shtml/jyjr/cn/7924/9484/list.shtml?channelId=7158
兴业银行 https://corporatebank.cib.com.cn/firm/cash/receipt/receiptQuery!openPrint.do
平安银行 https://ebank.sdb.com.cn/corporbank/validateElectronicBillInput.do
浦发银行 http://ebank.spdb.com.cn/net/eBillValidateInput.do
@nameldk
nameldk / IDM Cleaner.bat
Created October 8, 2018 02:47 — forked from CHEF-KOCH/IDM Cleaner.bat
Internet Download Manager fake serial leftovers remover
IDM Cleaner.bat
:: IDM Registry Cleaner
:: Completely cleans registry of all IDM fake serial leftovers
@ECHO OFF
@TITLE IDM Registry Cleaner
@COLOR 0E
@ECHO :: IDM Registry Cleaner
@ECHO :: Compeletely cleans registry of all IDM fake serial leftovers
@ECHO.
@nameldk
nameldk / IDM Reset.bat
Created October 8, 2018 02:48 — forked from Egyiastic/IDM Reset.bat
Reset Internet Download Manager
@Echo Off
Title IDM Trial Reset by http://arabia-geeks.blogspot.com/ & Color 57
@Echo Resetting your IDM License Brought to you by http://arabia-geeks.blogspot.com/
@Echo.
@Echo.
Pause
TASKKILL /F /IM IDMan.exe
@ECHO.
@echo Off HKEY_CURRENT_USER\Software\Classes\Wow6432Node\CLSID\{7B8E9164-324D-4A2E-A46D-0165FB2000EC} [7] >permdel.txt
@nameldk
nameldk / shu-ipa-install.plist
Last active October 25, 2023 08:50
use shu and shortcut to install ipa file. need rename ipa file to 1.ipa
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>items</key>
<array>
<dict>
<key>assets</key>
<array>
<dict>
@nameldk
nameldk / FiddlerScript.js
Created July 1, 2020 03:22 — forked from jonschoning/FiddlerScript.js
FiddlerScript.js
//https://gist.github.com/1368507
import System;
import System.Windows.Forms;
import Fiddler;
import System.Text.RegularExpressions;
// INTRODUCTION
// This is the FiddlerScript Rules file, which creates some of the menu commands and
// other features of Fiddler. You can edit this file to modify or add new commands.
@nameldk
nameldk / jsbox_ipa_install.plist
Created December 31, 2020 09:14
jsbox_ipa_install.plist
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>items</key>
<array>
<dict>
<key>assets</key>
<array>
<dict>