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 | |
if [ -z $2 ] ; then | |
echo "`basename $0` {cert} {key} {chain}" | |
else | |
SSL_CONF=/etc/httpd/conf.d/ssl.conf | |
if [ -f $SSL_CONF ] ; then | |
if [ -f $1 ] ; then # cert | |
sed -i "s/^SSLCertificateFile.*/SSLCertificateFile \/etc\/httpd\/conf.d\/$1/" $SSL_CONF | |
fi | |
if [ -f $2 ] ; then # cert |
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
104.com.tw | |
10film.top | |
1177.se | |
11st.co.kr | |
123-hd.com | |
163.com | |
1688.com | |
1x001.com | |
1xbet.cm | |
1xbet.com.gh |
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 | |
while read -r LINE | |
do | |
echo `date`,$LINE >> /dev/shm/`date +%Y%m%d%H%M`.log | |
done |
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 | |
# ref. https://susam.in/maze/timing-with-curl.html | |
if [ -z $1 ] ; then | |
echo "`basename $0` {url}" | |
else | |
curl -L -w "time_namelookup: %{time_namelookup} | |
time_connect: %{time_connect} | |
time_appconnect: %{time_appconnect} | |
time_pretransfer: %{time_pretransfer} | |
time_redirect: %{time_redirect} |
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 | |
require __DIR__ . '/vendor/autoload.php'; | |
function getClient() | |
{ | |
$client = new Google_Client(); | |
$client->setApplicationName('Adsense PHP Client'); | |
$client->addScope('https://www.googleapis.com/auth/adsense.readonly'); | |
$client->setAccessType('offline'); | |
$client->setApprovalPrompt('force'); |
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
// implementation 'com.android.volley:volley:1.2.1' | |
import com.android.volley.Response | |
import com.android.volley.toolbox.StringRequest | |
import com.android.volley.toolbox.Volley | |
var apiUrl="https://your-api-url.com/" | |
val request: StringRequest = object : StringRequest( | |
Method.POST, apiUrl, | |
Response.Listener { response -> | |
if (response != null) { |
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
set QT_SCALE_FACTOR=1.25 | |
start %LOCALAPPDATA%\LINE\bin\LineLauncher.exe |
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 | |
# netmask from http://trap.mtview.ca.us/~talby/netmask_2.4.tar.gz | |
netmask `curl -s http://ftp.apnic.net/stats/apnic/delegated-apnic-latest | awk -F'|' '/TW\|ipv4/ {print $4":+"($5-1)}'` |
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 | |
if [ -z $1 ] ; then | |
echo "`basename $0` {ip}" | |
else | |
TEMP=/tmp/psauxw.tmp | |
ps auxw > $TEMP | |
for T in `w | grep -w $1 | awk '{print $2}'` | |
do | |
echo Logout $T | |
grep -w $T $TEMP | awk '{print $2}' | xargs kill -9 |
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 | |
sed -i 's/ExecStart.*/ExecStart=-\/sbin\/agetty -a root %I \$TERM/' /usr/lib/systemd/system/getty@.service |
NewerOlder