I hereby claim:
- I am thijzer on github.
- I am thijzer (https://keybase.io/thijzer) on keybase.
- I have a public key ASAifp1j4uAgOdxm_kL40DDA812ZwidgRXZLKMSevdD9PQo
To claim this, I am signing this object:
| /* | |
| * This file is part of Fork CMS. | |
| * | |
| * For the full copyright and license information, please view the license | |
| * file that was distributed with this source code. | |
| */ | |
| <?php | |
| /* | |
| * This file is part of Fork CMS. | |
| * | |
| * For the full copyright and license information, please view the license | |
| * file that was distributed with this source code. | |
| */ | |
| namespace Common; | |
| use Common\Uri; |
| #!/bin/bash | |
| if [ $# -ne 1 ]; then | |
| echo "Usage: sphp [phpversion]" | |
| exit 1 | |
| fi | |
| currentversion="`php -r \"echo str_replace('.', '', substr(phpversion(), 0, 3));\"`" | |
| newversion="$1" |
| function generateCallTrace() | |
| { | |
| $e = new \Exception(); | |
| $trace = explode("\n", $e->getTraceAsString()); | |
| // reverse array to make steps line up chronologically | |
| $trace = array_reverse($trace); | |
| array_shift($trace); // remove {main} | |
| array_pop($trace); // remove call to this method | |
| $length = count($trace); | |
| $result = array(); |
I hereby claim:
To claim this, I am signing this object:
| #! /bin/bash | |
| if [ $# -eq 0 ] || [ $# -eq 1 ] || [ $# -eq 2 ] | |
| then | |
| echo "usage : mysql_backup.sh user passw backup destination" | |
| exit 1 | |
| fi | |
| umask 007 |
| <?php | |
| # /usr/local/bin/speedtest-cli | |
| exec('/usr/bin/speedtest-cli --simple', $output); | |
| $replacers = ["Ping:", "ms", "Download:", "Upload:", "Mbit/s"]; | |
| // convert to useful array | |
| $json['value1'] = trim(str_replace($replacers, '', $output[0])); | |
| $json['value2'] = trim(str_replace($replacers, '', $output[1])); | |
| $json['value3'] = trim(str_replace($replacers, '', $output[2])); | |
| $key = ''; | |
| $event = ''; |
| <?php | |
| function echoProgressBar(int $totalAmount, int $progress, int $parts = 100) | |
| { | |
| if ($totalAmount === $progress) { | |
| echo sprintf("[%s] %s %s %%", str_repeat('#', $parts), $progress, 100); | |
| return; | |
| } | |
| $quota = 100 / $parts; |
| loadkeys be-latin1 | |
| fdisk /dev/sda | |
| # setup sda1 as a single partition | |
| mkfs.ext4 /dev/sda1 | |
| mount /dev/sda1 /mnt | |
| pacstrap /mnt base | |
| # grub instead of bootctl becauce bootctl doesn't support BIOS | |
| pacman -S grub intel-ucode openssh | |
| grub-install --target=i386-pc /dev/sdX | |
| grub-mkconfig -o /boot/grub/grub.cfg |