I hereby claim:
- I am rwp0 on github.
- I am rwp0 (https://keybase.io/rwp0) on keybase.
- I have a public key ASDTknqXv0a984jhEsPJupx-yco9EN4lSAUELg--dlvdjgo
To claim this, I am signing this object:
# to disable private dns | |
adb shell settings put global private_dns_mode off | |
# to enable private dns with hostname (example with dns.adguard.com) | |
adb shell settings put global private_dns_mode hostname | |
adb shell settings put global private_dns_specifier dns.adguard.com |
#!/usr/bin/perl | |
BEGIN { | |
$ENV{'PERL_LWP_SSL_VERIFY_HOSTNAME'} = 0; | |
eval { | |
# required for new IO::Socket::SSL versions | |
require IO::Socket::SSL; | |
IO::Socket::SSL->import(); | |
IO::Socket::SSL::set_ctx_defaults( SSL_verify_mode => 0 ); | |
}; |
task 'mytask', sub { | |
my $parameters = shift; | |
my $parameter1_value = $parameters->{parameter1}; | |
my $parameter2_value = $parameters->{parameter2}; | |
}; | |
rex -H hostname mytask --parameter1=value1 --parameter2=value2 | |
# https://www.rexify.org/docs/faq/index.html#howcanipassparameterstoatask |
# How to compile a PHP extension into a shared module for any PHP version | |
# download and decompress required PHP version source (e.g. 5.6.30). See http://php.net/releases/ | |
wget http://php.net/get/php-5.6.30.tar.bz2/from/this/mirror -O php-5.6.30.tar.bz2 | |
tar xvf php-5.6.30.tar.bz2 | |
# compile and install PHP to temporary location (e.g. ~/php-install) | |
cd php-5.6.30/ | |
time ./configure --prefix=${HOME}/php-install | |
make -j 8 |
I hereby claim:
To claim this, I am signing this object:
httpd -S -f /usr/local/apache2/conf/httpd.conf
Define: DUMP_VHOSTS Define: DUMP_RUN_CFG
https://www.freshports.org/archivers/zip/
zip -r zipfile.zip <directory>
unzip -l zipfile.zip
unzip zipfile.zip
# find large files | |
find . -size +1GB |
.htaccess
<VirtualHost *:80> ServerName mysite.example.com Redirect permanent / https://mysite.example.com/ </VirtualHost>
RewriteEngine On
curl ipinfo.io | |
# json |