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
| var fs = require('fs'), | |
| path = require('path'), | |
| homeDir = process.env.HOME || process.env.HOMEPATH || process.env.USERPROFILE, | |
| gitConfig = path.join(homeDir, '.gitconfig'), | |
| cwd = process.cwd(), | |
| name = cwd.split('/').pop(); | |
| /* | |
| decode function and required functions copied from | |
| https://github.com/npm/ini | |
| in order to parse github config without added reqs |
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 | |
| /* Add Image Upload to Series Taxonomy */ | |
| // Add Upload fields to "Add New Taxonomy" form | |
| function add_series_image_field() { | |
| // this will add the custom meta field to the add new term page | |
| ?> | |
| <div class="form-field"> | |
| <label for="series_image"><?php _e( 'Series Image:', 'journey' ); ?></label> |
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. Create a new generic password entry in Keychain Access called "WHATEVER_AnyConnect_VPN" (the name in Keychain access must match that in line 39 below) with your password for the Cisco AnyConnect VPN server. | |
| -- 2. Open this script in Script Editor (both this and the above are in the Applications->Utilities folder) and "Save as.." an Application (.app) with desired name. | |
| -- 3. Open Security & Privacy System Preferences, go to Privacy, Accessibility. | |
| -- 4. Enable the above .app so it can access Accessibility | |
| -- 5. Copy and paste a nice icon on the generic Applescript icon (I used a copy of the default AnyConnect one) | |
| -- 6. Add the new .app to /Users/[yourshortname]/Applications with a shortcut to your Dock | |
| -- 7. Enjoy the fast connection with no need to enter password and increased security of not having a sensitive password stored as plain text | |
| -- 8. Run script again to close connection | |
| -- AnyConnect now refered to as targetApp |
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
| // Node.js CheatSheet. | |
| // Download the Node.js source code or a pre-built installer for your platform, and start developing today. | |
| // Download: http://nodejs.org/download/ | |
| // More: http://nodejs.org/api/all.html | |
| // 0. Synopsis. | |
| // http://nodejs.org/api/synopsis.html |
OlderNewer