Based on https://busylog.net/telnet-imap-commands-note/
- -k -- don't verify certificate (optional)
- -n -- use .netrc for username and password (optional)
- -X -- request to send to server
Based on https://busylog.net/telnet-imap-commands-note/
| // ==UserScript== | |
| // @name 京东只看自营 | |
| // @namespace http://tampermonkey.net/ | |
| // @version 0.1 | |
| // @description 只看京东自营产品 | |
| // @author Chopin Ngo <[email protected]> | |
| // @match https://list.jd.com/list.html* | |
| // @grant none | |
| // ==/UserScript== |
| # Usage: rpasswd [LENGTH] [CHARS] | |
| # Generate random password | |
| # | |
| # CHARS | |
| # 'a': Alphabet, a-z A-Z | |
| # 'n': Numeric, 0-9 | |
| # 'c': Character, print characters in ascii code | |
| # | |
| rpasswd() { | |
| len=12 |
| $.fn.select2.amd.define('select2/data/extended-ajax',['./ajax', './tags', '../utils', 'module', 'jquery'], function(AjaxAdapter, Tags, Utils, module, $) { | |
| function ExtendedAjaxAdapter ($element,options) { | |
| //we need explicitly process minimumInputLength value | |
| //to decide should we use AjaxAdapter or return defaultResults, | |
| //so it is impossible to use MinimumLength decorator here | |
| this.minimumInputLength = options.get('minimumInputLength'); | |
| this.defaultResults = options.get('defaultResults'); | |
| ExtendedAjaxAdapter.__super__.constructor.call(this,$element,options); | |
| } |
| let searchalias g = "google" | |
| let barposition = "bottom" | |
| let scrollstep = 70 | |
| let searchengine php = ["http://php.net", "http://php.net/manual-lookup.php?scope=quickref&pattern=%s"] | |
| let searchengine fy = "https://translate.google.com/#zh-CN/en/" | |
| let completionengines = ["google", "php", "fy"] | |
| unmap E R K J d x b B u e D f F | |
| map h previousTab | |
| map l nextTab | |
| map d closeTab |
I hereby claim:
To claim this, I am signing this object:
| <?php | |
| $a = new A(); | |
| $reflection = new \ReflectionClass($a); | |
| $property = $reflection->getProperty('privateProperty'); | |
| $property->setAccessible(true); | |
| $property->setValue($a, 'new-value'); | |
| echo $a->getPrivateProperty(); | |
| //outputs: |
| <?php | |
| class Item | |
| { | |
| private $cost = 100; | |
| public function getTotal($discount = 7) { | |
| return $this->cost *(100+$discount)/100; | |
| } | |
| } |
| <?php | |
| $time = microtime(true); | |
| ini_set('memory_limit', -1); | |
| $redis = new Redis(); | |
| $redis->connect('127.0.0.1', 6379); | |
| $arr = range(1, 1000000); | |
| array_unshift($arr, 'test'); |
| # 如果前缀要使用年份加月份,第7行需要增加判断条件 | |
| UPDATE `table` SET `no`= | |
| ( | |
| SELECT `no` | |
| FROM ( | |
| SELECT IF( | |
| (SELECT 1 FROM `table` WHERE `no` IS NOT NULL AND `no` <> "") IS NULL, | |
| "NO1000", | |
| ( | |
| SELECT CONCAT("NO", SUBSTRING(`no`, 3) + 1) |