Git is a free and open source distributed version control system designed to handle everything from small to very large projects with speed and efficiency.
– The Git website
Choose one of the following options.
| // unserialize.js v1.0.1 | |
| function unserialize(serialize) { | |
| let obj = {}; | |
| serialize = serialize.split('&'); | |
| for (let i = 0; i < serialize.length; i++) { | |
| thisItem = serialize[i].split('='); | |
| obj[decodeURIComponent(thisItem[0])] = decodeURIComponent(thisItem[1]); | |
| }; | |
| return obj; | |
| }; |
| #!/bin/bash | |
| SERVER="[email protected]" | |
| SERVER_PATH="/srv/i.myserver.com/" | |
| SERVER_URL="https://i.myserver.com/" | |
| TMP_LOCAL_DIR="/tmp" | |
| IMG_EXT=".png" | |
| UPLOAD_METHOD="upload_image_scp" | |
| IMG_NAME_METHOD="img_name_random" |
| # ⚠ NOTE: if you're using the latest version of ubuntu, now you can just do: | |
| # sudo apt install apktool | |
| # Get latest version from https://bitbucket.org/iBotPeaches/apktool/downloads | |
| export apktool_version=2.3.1 | |
| sudo -E sh -c 'wget https://bitbucket.org/iBotPeaches/apktool/downloads/apktool_$apktool_version.jar -O /usr/local/bin/apktool.jar' | |
| sudo chmod +r /usr/local/bin/apktool.jar | |
| sudo sh -c 'wget https://raw.githubusercontent.com/iBotPeaches/Apktool/master/scripts/linux/apktool -O /usr/local/bin/apktool' | |
| sudo chmod +x /usr/local/bin/apktool |
Git is a free and open source distributed version control system designed to handle everything from small to very large projects with speed and efficiency.
– The Git website
Choose one of the following options.
| #!/usr/bin/env python | |
| """This script converts WXR file to a number of plain text files. | |
| WXR stands for "WordPress eXtended RSS", which basically is just a | |
| regular XML file. This script extracts entries from the WXR file into | |
| plain text files. Output format: article name prefixed by date for | |
| posts, article name for pages. | |
| Usage: wxr2txt.py filename [-o output_dir] |
| .word-break { | |
| -ms-word-break: break-all; | |
| word-break: break-word; | |
| word-wrap: break-word; | |
| -webkit-hyphens: auto; | |
| -moz-hyphens: auto; | |
| hyphens: auto; | |
| } |
| <?php | |
| /** | |
| * Dot notation for access multidimensional arrays. | |
| * | |
| * $dn = new DotNotation(['bar'=>['baz'=>['foo'=>true]]]); | |
| * | |
| * $value = $dn->get('bar.baz.foo'); // $value == true | |
| * | |
| * $dn->set('bar.baz.foo', false); // ['foo'=>false] | |
| * |
| #!/usr/bin/python | |
| # -*- coding: utf-8 -*- | |
| # | |
| # SSHplus | |
| # A remote connect utlity, sshmenu compatible clone, and application starter. | |
| # | |
| # (C) 2011 Anil Gulecha | |
| # Based on sshlist, incorporating changes by Benjamin Heil's simplestarter | |
| # | |
| # This program is free software: you can redistribute it and/or modify |
| <?php | |
| namespace Treffynnon; | |
| /** | |
| * A PHP class to access a PHP array via dot notation | |
| * (Agavi http://www.agavi.org was the inspiration). | |
| * | |
| * This was hacked in to an existing codebase hence the | |
| * global config array variable. |