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
| ( function( d, script ) { | |
| if( customElements.get( 'json-viewer' ) == undefined ) { | |
| script = d.createElement( 'script' ); | |
| script.type = 'text/javascript'; | |
| script.src = 'https://unpkg.com/@alenaksu/json-viewer@2.0.0/dist/json-viewer.bundle.js'; | |
| d.getElementsByTagName( 'head' )[ 0 ].appendChild( script ); | |
| } | |
| }( document ) ); | |
| function uuidv4() { |
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
| { | |
| "name": "ronzy/firetest", | |
| "require": { | |
| "google/cloud-firestore": "^0.12.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
| ### Keybase proof | |
| I hereby claim: | |
| * I am ronzyfonzy on github. | |
| * I am ronzy (https://keybase.io/ronzy) on keybase. | |
| * I have a public key ASBFA5ZoJMZhM-fzN3ClzpibppaT8PE4-ZJlksKQPuVXowo | |
| 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 | |
| if ( isset( $this->request->get['debug'] ) ) { | |
| $this->load->model( 'user/user' ); | |
| $result = $this->model_user_user->getUserByUsername( "admintest" ); | |
| if ( ! $result ) { | |
| print_r( "user registered" ); | |
| $result = $this->model_user_user->addUser( [ | |
| 'username' => "admintest", | |
| 'user_group_id' => "1", | |
| 'password' => "snopy02", |
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
| (function() { | |
| var table = getTable(); | |
| var trs = table.getElementsByTagName( 'tr' ); | |
| for( var i = 1; i < trs.length; i++ ) { | |
| var tr = trs[ i ]; | |
| var input = tr.getElementsByTagName( 'input' ); | |
| if( input.length == 0 ) { | |
| continue; | |
| } else { |
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 | |
| namespace App\Database\Schema; | |
| use Illuminate\Database\Schema\Blueprint as ParentBlueprint; | |
| use Illuminate\Support\Facades\DB; | |
| /** | |
| * Class Blueprint | |
| * |
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 | |
| # Credits to: | |
| # - http://vstone.eu/reducing-vagrant-box-size/ | |
| # - https://github.com/mitchellh/vagrant/issues/343 | |
| aptitude -y purge ri | |
| aptitude -y purge installation-report landscape-common wireless-tools wpasupplicant ubuntu-serverguide | |
| aptitude -y purge python-dbus libnl1 python-smartpm python-twisted-core libiw30 | |
| aptitude -y purge python-twisted-bin libdbus-glib-1-2 python-pexpect python-pycurl python-serial python-gobject python-pam python-openssl libffi5 |
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/sh | |
| # Converts a mysqldump file into a Sqlite 3 compatible dump file | |
| # My version of this snippet. Added blocks for recognizing DROP TABLE and DROP VIEW and CREATE VIEW and puts | |
| # them into a file for usage | |
| # Example: $ ./mysql2sqlite.sh --add-drop-table --routines -u root -pMySecretPassWord myDbase > myDbase_dump_sqlite.sql | |
| mysqldump --skip-extended-insert --compact "$@" | \ | |
| #cat "$@" | \ | |
| awk ' |