/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
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/env bash | |
| # MySQL / MariaDB Dump Helper | |
| # =========================== | |
| # FEATURES: Progress bar with ETA, support multiple databases (dump into separated files) and password as argument | |
| # REQUIREMENTS: | |
| # ============= | |
| # GNU Core Utilities, mysql, mysqldump, pv (https://github.com/icetee/pv) |
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
| https://jason.pureconcepts.net/2015/10/install-apache-php-mysql-mac-os-x-el-capitan/ | |
| https://jason.pureconcepts.net/2012/10/install-apache-php-mysql-mac-os-x/ | |
| https://coolestguidesontheplanet.com/get-apache-mysql-php-and-phpmyadmin-working-on-osx-10-11-el-capitan/ | |
| http://www.alphansotech.com/blogs/setup-apache-mysql-php-phpmyadmin-mac-osx/ | |
| https://mallinson.ca/osx-web-development/ | |
| https://coolestguidesontheplanet.com/get-apache-mysql-php-and-phpmyadmin-working-on-osx-10-11-el-capitan/ | |
| ##Apache httpd file location | |
| /etc/apache2 |
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
| // Reference: http://stackoverflow.com/questions/4822471/count-number-of-lines-in-a-git-repository | |
| $ git ls-files | xargs wc -l |
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
| #1 Locate gitconfig file using this command: git config --list --show-origin --show-scope | |
| #2 Add the code snippet below | |
| [alias] | |
| lg = lg1 | |
| lg1 = lg1-specific --all | |
| lg2 = lg2-specific --all | |
| lg3 = lg3-specific --all | |
| lg1-specific = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(auto)%d%C(reset)' |
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
| <style> | |
| input[type="file"]{ | |
| position: absolute; | |
| top: -500px; | |
| } | |
| div.file-listing{ | |
| width: 200px; | |
| } |
This sheet goes along with this SSH YouTube tutorial
$ ssh [email protected]
$ mkdir test
$ cd test
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
| tier_basic | |
| id (serial) : level | |
| ******************** | |
| 1_b (10) : 1 | |
| 3_b (11) : 2 | |
| 6_b (12) : 3 | |
| 12_b(13) : 4 | |
| tier_standard | |
| 1_s (14) : 1 |
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
| #This was done by some tool, don't know which one, and our custom built app captured theese URL's, after filtering | |
| #for unique URL's, here is list of URL's in original form, I will later try to create some protection | |
| /3B1728A10D221805D2CABE58B095D353.php | |
| /manager/html | |
| /wp-content/plugins/portable-phpmyadmin/wp-pma-mod/index.php | |
| /mysql/mysqlmanager/index.php | |
| /mysql/sqlmanager/index.php | |
| /mysql/dbadmin/index.php | |
| /mysql/admin/index.php | |
| /phpmy/index.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 | |
| #1) on https://console.developers.google.com/ register project and associate API from library | |
| # OUTPUT: client_id,client_secret | |
| client_id="..." | |
| client_secret="...." | |
| #2) get authorization code at the following link using web browser | |
| # OUTPUT: code | |
| scope="https://www.googleapis.com/auth/drive" |
NewerOlder