You may need to configure a proxy server if you're having trouble cloning
or fetching from a remote repository or getting an error
like unable to access '...' Couldn't resolve host '...'.
Consider something like:
| i | |
| me | |
| my | |
| myself | |
| we | |
| our | |
| ours | |
| ourselves | |
| you | |
| your |
| package play.modules.migrate; | |
| import org.hibernate.dialect.MySQL5Dialect; | |
| import org.hibernate.ejb.Ejb3Configuration; | |
| import org.hibernate.tool.hbm2ddl.DatabaseMetadata; | |
| import play.Play; | |
| import play.db.DB; | |
| import play.db.DBPlugin; | |
| import play.utils.Utils; |
| /*--- checkForBadJavascripts() | |
| This is a utility function, meant to be used inside a Greasemonkey script that | |
| has the "@run-at document-start" directive set. | |
| It Checks for and deletes or replaces specific <script> tags. | |
| */ | |
| function checkForBadJavascripts (controlArray) { | |
| /*--- Note that this is a self-initializing function. The controlArray | |
| parameter is only active for the FIRST call. After that, it is an | |
| event listener. |
| #!/bin/bash | |
| # directories to be included, space separated | |
| SOURCE="/home/chewie /etc" | |
| # directories to be excluded, space separated | |
| IGNORE="/home/chewie/Downloads /home/chewie/Steam" | |
| DRIVE_FOLDER="duplicity-backup" | |
| LOGFILE=/home/chewie/duplicity.log | |
| # set email to receive a backup report | |
| EMAIL="" |
| #!/usr/bin/env python | |
| ''' | |
| DEPENDENCIES: | |
| $ brew install ffmpeg | |
| $ brew install imagemagick | |
| $ python ./mov2gif.py input.mov output.gif 15 | |
| ''' |
| // XPath CheatSheet | |
| // To test XPath in your Chrome Debugger: $x('/html/body') | |
| // http://www.jittuu.com/2012/2/14/Testing-XPath-In-Chrome/ | |
| // 0. XPath Examples. | |
| // More: http://xpath.alephzarro.com/content/cheatsheet.html | |
| '//hr[@class="edge" and position()=1]' // every first hr of 'edge' class |
| #!/bin/sh | |
| # | |
| # !!! IMPORTANT !!! | |
| # As of 2017-12-14, pacaur is unmaintained (https://bbs.archlinux.org/viewtopic.php?pid=1755144#p1755144) | |
| # For alternatives see the arch wiki: https://wiki.archlinux.org/index.php/AUR_helpers#Active | |
| # pacaur seems to get occasional updates to fix breaking changes due to pacman updates though. | |
| # | |
| # If you are new to arch, I encourage you to at least read and understand what | |
| # this script does befor blindley running it. | |
| # That's why I didn't make a one-liner out of it so you have an easier time |
| #!/bin/bash | |
| set -e | |
| show_help() { | |
| cat << EOF | |
| Usage: ${0##*/} [-u USER] [-p PASS] [-P PORT] [-H HOST] [DATABASE] | |
| ${0##*/} -h | |
| Open a standard connection in Sequel PRO. |
| node { | |
| echo 'Results included as an inline comment exactly how they are returned as of Jenkins 2.121, with $BUILD_NUMBER = 1' | |
| echo 'No quotes, pipeline command in single quotes' | |
| sh 'echo $BUILD_NUMBER' // 1 | |
| echo 'Double quotes are silently dropped' | |
| sh 'echo "$BUILD_NUMBER"' // 1 | |
| echo 'Even escaped with a single backslash they are dropped' | |
| sh 'echo \"$BUILD_NUMBER\"' // 1 | |
| echo 'Using two backslashes, the quotes are preserved' | |
| sh 'echo \\"$BUILD_NUMBER\\"' // "1" |