Create a new bookmark (CMD+D / CTRL+D) and add the code in "bookmark-link.txt" as link (better copyable in RAW-view):
Pure Vanilla JS. No jQuery!
Tested with newest chrome.
*minified with created bookmarklet with *
| <?php | |
| /** | |
| * Fixes bulk uploaded locations/stores that have no coordinates | |
| * If this script get killed run it again till all stores have the geolocation | |
| * | |
| * IMPORTANT: needs PHP 5.4+ and cURL (php5-curl) | |
| * | |
| * @author CodeBrauer <[email protected]> | |
| * @link https://github.com/CodeBrauer/ | |
| * @version 1.0 |
| #!/bin/bash | |
| SCREEN_NAME="kf2-server" | |
| MAP="kf-bioticslab" | |
| DIFFICULTY=10 | |
| ADMINNAME=gabriel | |
| ADMINPASSWORD=XXXXXXXX | |
| PORT=7777 | |
| ##################################################### |
| # prepare before running: | |
| # 1. create folder "plugin_db/" | |
| # 2. chdir to this folder and run this command: `svn list http://plugins.svn.wordpress.org > plugins.txt` | |
| # 3. split plugin.txt in to multiple chunks: | |
| # plugin.txt: ~50000 lines => 50000/10=5000 => split with 5000 lines. Command: `split -l 5000 plugins.txt` | |
| # every chunk of the file is a worker | |
| import subprocess, glob, os | |
| os.chdir("plugin_db/") |
| #include <stdio.h> | |
| int main (int argc, char *argv[]) { | |
| int count; | |
| printf ("This program was called with \"%s\".\n",argv[0]); | |
| if (argc > 1){ | |
| for (count = 1; count < argc; count++) { | |
| printf("argv[%d] = %s\n", count, argv[count]); |
Create a new bookmark (CMD+D / CTRL+D) and add the code in "bookmark-link.txt" as link (better copyable in RAW-view):
Pure Vanilla JS. No jQuery!
Tested with newest chrome.
*minified with created bookmarklet with *
| #!/bin/bash | |
| # just edit the path and the file and run it. | |
| FATFILE="/path/to/big_fat_file.zip" | |
| SAVEPATH="path/to/save/split/files/part_" # notice the end is '/part_' | |
| # 3221225472 byte = 3GiB // perfect for FAT32... (main reason to split files..) | |
| SPLITSIZE="3221225472" |
| #!/bin/bash | |
| cd /_backups | |
| HOST="1.2.3.4" | |
| USER="my_backup_user" | |
| PASS="**************" | |
| DATE_TODAY=$(date +"%Y-%m-%d") |
| #!/bin/bash | |
| # installs bolt cms to the path and opens the browser. | |
| # works currently only on Mac OS X | |
| # v0.2 @CodeBrauer | |
| cd "$( dirname "${BASH_SOURCE[0]}" )" | |
| clear |
| <?php | |
| function GMGetCoordinates($address) { | |
| $address = urlencode($address); | |
| $url = "http://maps.google.com/maps/api/geocode/json?address=$address&sensor=false"; | |
| $ch = curl_init(); | |
| $options = array( | |
| CURLOPT_SSL_VERIFYPEER => false, |
| <?php | |
| /** | |
| * super simple gitlab api | |
| */ | |
| class Gitlab | |
| { | |
| const API_URL = 'http://gitlab.local/'; | |
| const PRIVATE_TOKEN = 'XXXXXXXXXXXXXXXXXXX'; | |
| public static function get($method, $param = '', $json_encode = true, $show_error = false) { |