This file contains hidden or 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
<?xml version="1.0" encoding="utf-8"?> | |
<direct> | |
<!-- probability: P(i) = 1 / (N - (i - 1)) --> | |
<rule ipv="ipv6" table="nat" chain="POSTROUTING" priority="0">-m statistic --mode random --probability 0.0625 -j SNAT --to-source 2::::::0</rule> | |
<rule ipv="ipv6" table="nat" chain="POSTROUTING" priority="0">-m statistic --mode random --probability 0.0667 -j SNAT --to-source 2::::::1</rule> | |
<rule ipv="ipv6" table="nat" chain="POSTROUTING" priority="0">-m statistic --mode random --probability 0.0714 -j SNAT --to-source 2::::::2</rule> | |
<rule ipv="ipv6" table="nat" chain="POSTROUTING" priority="0">-m statistic --mode random --probability 0.0769 -j SNAT --to-source 2::::::3</rule> | |
<rule ipv="ipv6" table="nat" chain="POSTROUTING" priority="0">-m statistic --mode random --probability 0.0833 -j SNAT --to-source 2::::::4</rule> | |
<rule ipv="ipv6" table="nat" chain="POSTROUTING" priority="0">-m statistic --mode random --probability 0.0909 -j SNAT --to-source 2::::::5</rule> | |
<rule ipv="ipv6" table="nat" chain="P |
This file contains hidden or 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 ( | |
"bytes" | |
"encoding/xml" | |
"fmt" | |
"io" | |
"net" | |
"net/http" | |
"strings" |
This file contains hidden or 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
# RENAME functions script with hidden dot `.SSH.functions.sh` |
This file contains hidden or 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
<?php | |
namespace DESMG\MariaDB\V11_0_2; | |
enum MariaDBError: int | |
{ | |
/** hashchk */ | |
case ER_HASHCHK = 1000; | |
/** isamchk */ | |
case ER_NISAMCHK = 1001; |
This file contains hidden or 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
#!/bin/bash | |
for i in {0..7}; do | |
# min cpu freq to 3.4GHz | |
echo 3400000 > "/sys/devices/system/cpu/cpu$i/cpufreq/scaling_min_freq" | |
# set max cpu freq to 4.5GHz | |
echo 4500000 > "/sys/devices/system/cpu/cpu$i/cpufreq/scaling_max_freq" | |
# set cpu preference to performance | |
echo performance > "/sys/devices/system/cpu/cpu$i/cpufreq/energy_performance_preference" | |
# set cpu governor to performance | |
echo performance > "/sys/devices/system/cpu/cpu$i/cpufreq/scaling_governor" |
This file contains hidden or 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
<?php | |
function GET($url, $user_agent = 'CURL', $proxy_type = CURLPROXY_SOCKS5_HOSTNAME, $proxy = null, $header = null, $timeout = 10) | |
{ | |
$ch = curl_init(); | |
curl_setopt($ch, CURLOPT_URL, $url); | |
curl_setopt($ch, CURLOPT_USERAGENT, $user_agent); | |
$header != null && curl_setopt($ch, CURLOPT_HTTPHEADER, $header); | |
$proxy != null && curl_setopt($ch, CURLOPT_PROXYTYPE, $proxy_type); | |
$proxy != null && curl_setopt($ch, CURLOPT_PROXY, $proxy); | |
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); |
This file contains hidden or 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
#-*- coding: utf-8 -*- | |
from selenium import webdriver | |
from selenium.webdriver.common.action_chains import ActionChains | |
from selenium.webdriver.common.keys import Keys | |
import re | |
import time | |
import os, sys | |
from urllib import parse |