# yum
There was a problem importing one of the Python modules
required to run yum. The error leading to this problem was:
pycurl: libcurl link-time ssl backend (nss) is different from compile-time ssl backend (openssl)
Please install a package which provides this module, or
verify that the module is installed correctly.
This file contains 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 | |
$a = array('<foo>',"'bar'",'"baz"','&blong&', "\xc3\xa9", "中文"); | |
echo "Normal: ", json_encode($a), "\n"; | |
echo "Tags: ", json_encode($a, JSON_HEX_TAG), "\n"; | |
echo "Apos: ", json_encode($a, JSON_HEX_APOS), "\n"; | |
echo "Quot: ", json_encode($a, JSON_HEX_QUOT), "\n"; | |
echo "Amp: ", json_encode($a, JSON_HEX_AMP), "\n"; | |
echo "Unicode: ", json_encode($a, JSON_UNESCAPED_UNICODE), "\n"; | |
echo "All: ", json_encode($a, JSON_HEX_TAG | JSON_HEX_APOS | JSON_HEX_QUOT | JSON_HEX_AMP | JSON_UNESCAPED_UNICODE), "\n\n"; |
This file contains 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
# This are the proxy settings we use for activator | |
-Dhttp.proxyHost=127.0.0.1 | |
-Dhttp.proxyPort=1087 | |
-Dhttp.nonProxyHosts="localhost|127.0.0.1" | |
-Dhttps.proxyHost=127.0.0.1 | |
-Dhttps.proxyPort=1087 | |
-Dhttps.nonProxyHosts="localhost|127.0.0.1" | |
# These are commented out, but if you need to use authentication for your proxy, please fill these out. | |
#-Dhttp.proxyUser=PUT YOUR PROXY USER HERE | |
#-Dhttp.proxyPassword=PUT YOUR PROXY PASSWORD HERE |
This file contains 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
# wget -qO- bench.sh | bash | |
---------------------------------------------------------------------- | |
CPU model : Common KVM processor | |
Number of cores : 2 | |
CPU frequency : 2199.998 MHz | |
Total size of Disk : 48.0 GB (2.0 GB Used) | |
Total amount of Mem : 3789 MB (173 MB Used) | |
Total amount of Swap : 2047 MB (0 MB Used) | |
System uptime : 0 days, 0 hour 53 min | |
Load average : 1.48, 1.68, 1.36 |
This file contains 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
t timeline $(t whoami | perl -ne 'print $1 if /^Screen name\s+@(.+)/') --csv --number | |
99999 | perl -lne 'print $1 if /^(\d+),/' | xargs -L99 t delete status -f | |
t timeline @yourid --csv --number 99999 | egrep -o '^[0-9]+' | xargs -L99 t delete status -f |
This file contains 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 | |
awk '!/^($|#)/' no-proxy.txt | tee no-proxy-generated.txt |
This file contains 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
#!/usr/bin/env perl | |
use strict; | |
use warnings; | |
use Getopt::Long 2.24, qw( :config bundling no_ignore_case no_auto_abbrev ); | |
my ( $N, $EXT, @EXT, @USE, $DECODE, $ENCODE ); | |
sub compile { eval shift } # defined early to control the lexical environment | |
my $msglevel = 0; |
This file contains 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
"苦" 34:33510:34 | |
"è¦" 34:232:139:166:34 | |
Wide character in say at -e line 1. | |
"苦" 34:33510:34 | |
"苦" 34:232:139:166:34 | |
"苦" 34:232:139:166:34 | |
"è¦" 34:195:168:194:139:194:166:34 | |
"è¦" 34:232:139:166:34 | |
"è¦" 34:195:168:194:139:194:166:34 |
This file contains 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
from __future__ import print_function | |
import threading | |
import xxhash | |
import os | |
import time | |
from itertools import repeat | |
def work(which, input, cycle): | |
x = getattr(xxhash, which)(input) | |
for i in repeat(None, cycle): |
This file contains 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/sh | |
# Usage: | |
# wget -O- https://gist.githubusercontent.com/ifduyue/dea03b4e139c5758ca114770027cf65c/raw/install-proxychains-ng.sh | sudo bash -s | |
set -eu | |
version=4.14 | |
wget https://github.com/rofl0r/proxychains-ng/archive/v$version.tar.gz | |
tar xf v$version.tar.gz |