Skip to content

Instantly share code, notes, and snippets.

total average_15_minutes average_per_second time
202497 0 0 12:30
215614 13117 14.57 12:45
224181 8567 9.51 13:00
229864 5683 6.31 13:15
238109 13928 15.47 13:30
245874 7765 8.62 13:45
251432 5558 6.17 14:00
264003 12571 13.96 14:15
267267 3371 3.74 14:30
@tux-tn
tux-tn / autossl-migration.sh
Last active July 24, 2018 13:55
Script to convert autossl certs to fullchain crt files
#!/bin/bash
CHAINPATH='/var/cpanel/ssl/installed/custom/chain.pem';
CERTSPATH='/var/cpanel/ssl/installed/certs';
KEYSPATH='/var/cpanel/ssl/installed/keys';
CUSTOMCERTSPATH='/var/cpanel/ssl/installed/custom/certs';
CUSTOMKEYPATH='/var/cpanel/ssl/installed/custom/keys';
for domain in `ls $CERTSPATH/*.crt`
do

Keybase proof

I hereby claim:

  • I am tux-tn on github.
  • I am sarhan (https://keybase.io/sarhan) on keybase.
  • I have a public key whose fingerprint is D21F FB71 5E66 5953 C662 AFD4 5F1E 802F F5F0 F384

To claim this, I am signing this object:

@tux-tn
tux-tn / vote.php
Created November 16, 2012 13:17
ExpressFM mass vote
<?php
$i = 0;
while(1==1){
$vote = array ('radio' => '120'); // replace 120 by the value of the vote
$query = http_build_query ($vote);
$data = array (
'method' => 'POST',
'header' => "Connection: close\r\n".
"Content-Length: ".strlen($query)."\r\n".
"Content-type: application/x-www-form-urlencoded\r\n",
@tux-tn
tux-tn / macgenerator.php
Created April 18, 2012 13:52
A MAC Adress generator written in PHP
<?php
function macgen(){
$adress = '01';
for ($i=0;$i<5;$i++) {
$oct = strtoupper(dechex(mt_rand(0,255)));
strlen($oct)<2 ? $adress .= ":0$oct" : $adress .= ":$oct";
}
return $adress;
}
echo macgen();