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
curl --include \ | |
--no-buffer \ | |
--header "Connection: Upgrade" \ | |
--header "Upgrade: websocket" \ | |
--header "Host: example.com:80" \ | |
--header "Origin: http://example.com:80" \ | |
--header "Sec-WebSocket-Key: SGVsbG8sIHdvcmxkIQ==" \ | |
--header "Sec-WebSocket-Version: 13" \ | |
http://example.com:80/ |
Based on https://busylog.net/telnet-imap-commands-note/
新款的树莓派3B功能之丰富,性能之强悍,让我垂涎。考虑到家里的网件 WNDR3700v2 也服役四年有余了。还是败了一个树莓派3B回来打造成新的路由。
WARNING
本文所有指令均仅供参考,切勿无脑复制粘贴!
〇 安装系统
I’m looking for any tips or tricks for making chrome headless mode less detectable. Here is what I’ve done so far:
Set my args as follows:
const run = (async () => {
const args = [
'--no-sandbox',
'--disable-setuid-sandbox',
'--disable-infobars',
/** | |
* Check if a given ip is in a network | |
* @param string $ip IP to check in IPV4 format eg. 127.0.0.1 | |
* @param string $range IP/CIDR netmask eg. 127.0.0.0/24, also 127.0.0.1 is accepted and /32 assumed | |
* @return boolean true if the ip is in this range / false if not. | |
*/ | |
function ip_in_range( $ip, $range ) { | |
if ( strpos( $range, '/' ) == false ) { | |
$range .= '/32'; | |
} |
#!/bin/sh | |
# This program has two feature. | |
# | |
# 1. Create a disk image on RAM. | |
# 2. Mount that disk image. | |
# | |
# Usage: | |
# $0 <dir> <size> | |
# |
(function($){ | |
$(function(){ | |
$.ajax({ | |
contentType: 'application/text; charset=utf-8', | |
crossBrowser: true, | |
type: 'GET', | |
url: '/cdn-cgi/trace', | |
}).done(function(d){ | |
var data = d.replace(/[\r\n]+/g, '","').replace(/\=+/g, '":"'); | |
data = '{"' + data.slice(0, data.lastIndexOf('","')) + '"}'; |
$.fn.select2.amd.define('select2/data/extended-ajax',['./ajax','../utils','jquery'], function(AjaxAdapter, Utils, $){ | |
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); |
#!/bin/sh | |
import(){ | |
img_name=$1 | |
vm_id=$2 | |
storage=${3:-local-lvm} | |
vmdisk_name=img2kvm_temp.qcow2 | |
if [ "${img_name##*.}"x = "gz"x ];then |
Dockerfile
that is based on your production image and
simply install xdebug
into it. Exemple:FROM php:5
RUN yes | pecl install xdebug \
&& echo "zend_extension=$(find /usr/local/lib/php/extensions/ -name xdebug.so)" > /usr/local/etc/php/conf.d/xdebug.ini \