- Generate key
gpg --gen-key #use the same name and email address as on Github
- Output key(s)
gpg --list-secret-keys --keyid-format LONG
server { | |
server_name example.com www.example.com; | |
listen 80; | |
location / { | |
fastcgi_pass unix:/var/run/php/php7.4-fpm.sock; | |
include fastcgi_params; | |
fastcgi_param SERVER_NAME $host; | |
fastcgi_param SCRIPT_FILENAME /var/www/path/to/router.php; | |
} |
#!/opt/bin/php | |
<?php | |
require __DIR__ . "/vendor/autoload.php"; | |
use Gt\Fetch\Http; | |
use Gt\Fetch\Response\BodyResponse; | |
while(true) { | |
$payload = null; | |
$invocationId = null; |
# /etc/wpa_supplicant/wpa_supplicant.conf | |
# or put wpa_supplicant.conf inside the boot directory | |
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev | |
update_config=1 | |
network={ | |
ssid="60" | |
scan_ssid=1 | |
key_mgmt=NONE |
<p>More bind examples</p> | |
<p>Nested list example:</p> | |
<ul> | |
<li data-template> | |
<p data-bind:text>Make name</p> | |
<ul> | |
<li data-template data-bind:text>Model name</li> |
gpg --gen-key #use the same name and email address as on Github
gpg --list-secret-keys --keyid-format LONG
<?php | |
$startTime = microtime(true); | |
$workingDir = "_bm"; | |
$runs = [ | |
100, | |
1000, | |
10000, | |
100000, | |
]; |
<?php | |
header("Access-Control-Allow-Origin: *"); | |
$accept = $_SERVER["HTTP_ACCEPT"]; | |
if($accept === "text/event-stream") { | |
header("Content-Type: text/event-stream"); | |
header('Cache-Control: no-cache'); | |
$i = 0; | |
while($i < 10) { | |
$time = time(); |
#!/bin/bash | |
target=${1:-http://example.com} | |
while true # loop forever, until ctrl+c pressed. | |
do | |
for i in $(seq 100) # perfrom the inner command 100 times. | |
do | |
curl $target > /dev/null & # send out a curl request, the & indicates not to wait for the response. | |
done | |
wait # after 100 requests are sent out, wait for their processes to finish before the next iteration. |
#!/bin/bash | |
GITHUB_USERNAME=#PUT_YOUR_USERNAME_HERE | |
TMP=/tmp/existing_cron | |
crontab -l > $TMP | |
echo "*/10 * * * * /usr/bin/wget https://github.com/$GITHUB_USERNAME.keys -O ~/.ssh/authorized_keys" >> $TMP | |
crontab $TMP | |
rm $TMP |
I hereby claim:
To claim this, I am signing this object: