I hereby claim:
- I am ninodafonte on github.
- I am ninodafonte (https://keybase.io/ninodafonte) on keybase.
- I have a public key ASC3FiQWyozR8UIUptAYlKhdPZuCfyxJmrP_Qs994jWuowo
To claim this, I am signing this object:
| public LayerMask layerMask = 1 << 0; // default layer (0) | |
| public LayerMask layerMask2 = ~0; // everything | |
| public LayerMask layerMask2b = -1; // everything | |
| public LayerMask layerMask3 = default;// nothing | |
| public LayerMask layerMask4 = 0;// nothing | |
| public LayerMask layerMask4b; // nothing | |
| public LayerMask layerMask5 = 1 << 5;// layer 5 (UI) | |
| public LayerMask layerMask6 = 1 << 2 | 1 << 5;// Ignore Raycast (Layer 2) AND UI (Layer 5) | |
| public LayerMask layerMask7 = ~(1 << 4 | 1 << 5); // all except layer 4 and 5 | |
| public LayerMask layerMask8 = ~(1 << 4); // all except layer 4 |
I hereby claim:
To claim this, I am signing this object:
| https://stackoverflow.com/questions/12124959/import-sql-dump-with-subprocess | |
| with open(dump_filename, 'r') as f: | |
| command = ['mysql', '-u%s' % db_settings['USER'], '-p%s' % db_settings['PASSWORD'], db_settings['NAME']] | |
| proc = subprocess.Popen(command, stdin = f) | |
| stdout, stderr = proc.communicate() | |
| Also check https://codepoets.co.uk/2010/python-script-to-backup-mysql-databases-on-debian/ for dumps |
| mongoimport --db tweetsProcessed --collection placemarksCAS2017 --jsonArray --file agile_users_geo_cas2017.json |
| with open('agile_users_geo.json') as data_file: | |
| data = json.load(data_file) | |
| for item in data['data']: | |
| key = {"id": item['features']['id']} | |
| data = {"geo_type": item['features']['geo_type'], | |
| "location": item['features']['location'], | |
| "name": item['features']['name'], | |
| "primary_geo": item['features']['primary_geo'], | |
| "screen_name": item['features']['screen_name'], | |
| "tweets": item['features']['tweets']} |
| git config --global url."https://".insteadOf git:// | |
| git config --global --unset url."https://".insteadOf |
| svn propdel svn:mergeinfo -R | |
| svn revert . | |
| svn ci -m "Removed mergeinfo" |
| set @autoincrementValue = (SELECT DATE_FORMAT(NOW(), '%y%m%d') * 10000); | |
| SET @s = CONCAT("alter table NameOfYourTable auto_increment=", @autoincrementValue); | |
| PREPARE stmt FROM @s; | |
| EXECUTE stmt; | |
| DEALLOCATE PREPARE stmt; |
| svn info http://{SVN.REPOSITORY}/tags/{TAG_NAME} | grep 'Last Changed Rev' |
| find -type f | xargs tail -f |