This file contains hidden or 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
| #!/usr/bin/osascript | |
| (* | |
| Usage: | |
| ./connect-bluetooth.applescript listall | |
| ./connect-bluetooth.applescript "Greg’s AirPods" | |
| *) |
This file contains hidden or 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 [ $# != 2 ] | |
| then | |
| echo "remotewireshark.sh [email protected] remoteinterface" | |
| exit | |
| fi | |
| wireshark -S -l -k -i <(ssh $1 tcpdump -i $2 -s0 -w - '\(!port 22\)' ) |
This file contains hidden or 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 [ $# != 3 ] | |
| then | |
| echo "remotemyadmin.sh [email protected] mysqluser mysqlpassword" | |
| exit | |
| fi | |
| docker pull phpmyadmin/phpmyadmin | |
| docker run --name remotemyadmin -d -e PMA_HOST=docker.for.mac.localhost -e PMA_PORT=13306 -e PMA_USER=$2 -e PMA_PASSWORD=$3 -p 18080:80 phpmyadmin/phpmyadmin |
This file contains hidden or 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
| vendor/ | |
| node_modules/ | |
| npm-debug.log | |
| bootstrap/compiled.php | |
| app/storage/ | |
| public/storage | |
| public/hot | |
| storage/*.key | |
| .env.*.php | |
| .env.php |
This file contains hidden or 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 | |
| systemctl stop mysqld | |
| /usr/sbin/mysqld --skip-grant-tables --user=mysql & | |
| sleep 10 | |
| echo "update mysql.user set authentication_string=password('') where user='root';" | mysql | |
| echo "FLUSH PRIVILEGES;" | mysql |
This file contains hidden or 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
| ### Keybase proof | |
| I hereby claim: | |
| * I am greglamb on github. | |
| * I am greglamb (https://keybase.io/greglamb) on keybase. | |
| * I have a public key whose fingerprint is 47D5 247F E3F7 BE8D 5C78 3E6F 1761 0EBD C592 9642 | |
| To claim this, I am signing this object: |
This file contains hidden or 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 | |
| use Illuminate\Console\Command; | |
| use Symfony\Component\Console\Input\InputOption; | |
| use Symfony\Component\Console\Input\InputArgument; | |
| use Symfony\Component\Process\Process; | |
| class DbImportCommand extends Command { |
This file contains hidden or 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 | |
| use Illuminate\Console\Command; | |
| use Symfony\Component\Console\Input\InputOption; | |
| use Symfony\Component\Console\Input\InputArgument; | |
| use Symfony\Component\Process\Process; | |
| class DbTabledumpCommand extends Command { |
This file contains hidden or 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 | |
| use Illuminate\Console\Command; | |
| use Symfony\Component\Console\Input\InputOption; | |
| use Symfony\Component\Console\Input\InputArgument; | |
| use Symfony\Component\Process\Process; | |
| class DbSchemadumpCommand extends Command { |