Skip to content

Instantly share code, notes, and snippets.

ss://YWVzLTI1Ni1nY206NWExODhkODctZWRjOC0zOTI1LWE0ZTQtYWQyNjhmZTU2Yzky@g01.hk01-ae5.entry.hsrtd.club:19272/?group=aUt1dXUgVlBO#%E9%A6%99%E6%B8%AFW01
ss://YWVzLTI1Ni1nY206NWExODhkODctZWRjOC0zOTI1LWE0ZTQtYWQyNjhmZTU2Yzky@g01.jp01-ae5.entry.hsrtd.club:473/?group=aUt1dXUgVlBO#%E6%97%A5%E6%9C%ACW01%20%7C%20x0.8
ss://YWVzLTI1Ni1nY206NWExODhkODctZWRjOC0zOTI1LWE0ZTQtYWQyNjhmZTU2Yzky@g01.hk02-ae5.entry.hsrtd.club:14560/?group=aUt1dXUgVlBO#%E9%A6%99%E6%B8%AFW02%20%7C%20IEPL
ss://YWVzLTI1Ni1nY206NWExODhkODctZWRjOC0zOTI1LWE0ZTQtYWQyNjhmZTU2Yzky@g01.jp02-ae5.entry.hsrtd.club:483/?group=aUt1dXUgVlBO#%E6%97%A5%E6%9C%ACW02%20%7C%20x0.8
ss://YWVzLTI1Ni1nY206NWExODhkODctZWRjOC0zOTI1LWE0ZTQtYWQyNjhmZTU2Yzky@g01.hk03-ae5.entry.hsrtd.club:760/?group=aUt1dXUgVlBO#%E9%A6%99%E6%B8%AFW03%20%7C%20IEPL
ss://YWVzLTI1Ni1nY206NWExODhkODctZWRjOC0zOTI1LWE0ZTQtYWQyNjhmZTU2Yzky@g01.jp03-ae5.entry.hsrtd.club:488/?group=aUt1dXUgVlBO#%E6%97%A5%E6%9C%ACW03%20%7C%20x0.8
ss://YWVzLTI1Ni1nY206NWExODhkODctZWRjOC0zOTI1LWE0ZTQtYWQyNjhmZTU2Yzky@g01.hk04-
@haproxytechblog
haproxytechblog / haproxy-config-2-0.cfg
Created June 13, 2019 20:41
HAProxy 2.0 configuration
#
# This is the ultimate HAProxy 2.0 "Getting Started" config
# It demonstrates many of the features available which are now available
# While you may not need all of these things, this can serve
# as a reference for your own configurations.
#
# Have questions? Check out our community Slack:
# https://slack.haproxy.org/
#
@moh-sushi
moh-sushi / jodd-issue-437-code-snippt.java
Last active December 14, 2020 00:36
jodd issue #437 - code snippet for downloading a zip file with jodd-http
import jodd.http.HttpRequest;
import jodd.http.HttpResponse;
import jodd.http.ProxyInfo;
import jodd.http.net.SocketHttpConnectionProvider;
import jodd.io.FileUtil;
import org.junit.Assert;
import org.junit.Test;
import java.io.File;
import java.io.FileOutputStream;
@gekowa
gekowa / tcpproxy.js
Last active May 17, 2024 08:21 — forked from kfox/tcpproxy.js
A basic TCP proxy written in node.js
var net = require("net");
process.on("uncaughtException", function(error) {
console.error(error);
});
if (process.argv.length != 5) {
console.log("Usage: %s <localport> <remotehost> <remoteport>", process.argv[1]);
process.exit();
}
@deviantony
deviantony / README.md
Last active September 4, 2024 02:41
Portainer HTTP API by example

DEPRECATION NOTICE

This gist is now deprecated in favor of our official documentation: https://documentation.portainer.io/api/api-examples/ which contains up to date examples!

THE FOLLOWING DOCUMENTATION IS DEPRECATED

Please refer to the link above to get access to our updated API documentation and examples.

@meineerde
meineerde / haproxy.config
Last active October 20, 2021 09:43
Set all cookies set in the HTTP response to HttpOnly
acl httponly_cookie res.hdr(Set-Cookie),lower -m sub httponly
rspirep ^(set-cookie:.*) \1;\ HttpOnly if !httponly_cookie
@tmaslen
tmaslen / gist:9409894
Last active July 29, 2021 10:18
IE compatibility and document modes

In BBC News Visual Journalism we have to test 13 different setups of IE.

Test page:

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="content-language" content="<%= translations[vocab_dir].lang %>" />
@sarices
sarices / authcode
Created October 12, 2013 01:36
Discuz 加密函数
// $string: 明文 或 密文
// $operation:DECODE表示解密,其它表示加密
// $key: 密匙
// $expiry:密文有效期
function authcode($string, $operation = 'DECODE', $key = '', $expiry = 0) {
// 动态密匙长度,相同的明文会生成不同密文就是依靠动态密匙
$ckey_length = 4;
// 密匙
$key = md5($key ? $key : $GLOBALS['discuz_auth_key']);
@ck-on
ck-on / ocp.php
Last active September 5, 2024 01:35
OCP - Opcache Control Panel (aka Zend Optimizer+ Control Panel for PHP)#ocp #php #opcache #opcode #cache #zend #optimizerplus #optimizer+
<?php
/*
OCP - Opcache Control Panel (aka Zend Optimizer+ Control Panel for PHP)
Author: _ck_ (with contributions by GK, stasilok)
Version: 0.1.7
Free for any kind of use or modification, I am not responsible for anything, please share your improvements
* revision history
0.1.7 2015-09-01 regex fix for PHP7 phpinfo
0.1.6 2013-04-12 moved meta to footer so graphs can be higher and reduce clutter
@feng92f
feng92f / gist:2849163
Created June 1, 2012 05:37 — forked from zythum/gist:2848881
google收录的敏感词