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
| =FLOOR(A1/12,1) & """ " & ROUND( 12*((A1/12)-FLOOR(A1/12,1)), 1) & "'" |
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
| #!/usr/bin/env bash | |
| VP_DB="set_to_your_dbname" | |
| [[ ! -d "done" ]] && mkdir done | |
| [[ ! -d "error" ]] && mkdir error | |
| echo "To prevent any writes to the database during the import, you should disable the site. Add this to your wp-config.php:" | |
| echo "if( DB_NAME == '$VP_DB' ) die( 'This site is is disabled during import.' );" | |
| read -p "Press Enter to continue. " | |
| time for VP_SQL_FILE in *.sql ; do |
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
| #!/usr/bin/env bash | |
| HOST="$1" | |
| [[ -z "$HOST" ]] && (>&2 echo "Usage: $0 [user@]hostname") && exit 1 | |
| OUT="$(ssh -o ConnectionAttempts=1 -o ConnectTimeout=2 -o StrictHostKeyChecking=no -o "PreferredAuthentications=publickey" -T "$HOST" -v true 2>&1 | grep -B3 "Authentication succeeded (publickey)" )" | |
| RET="$?" | |
| if [[ "$RET" -ne "0" ]] ; then | |
| (>&2 echo "ERROR (errno: $RET): Unable to connect or authenticate to $HOST") |
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
| #!/usr/bin/env bash | |
| # Copyright (c) 2011 Float Mobile Learning | |
| # http://www.floatlearning.com/ | |
| # Extension Copyright (c) 2013 Weptun Gmbh | |
| # http://www.weptun.de | |
| # | |
| # Extended by Ronan O Ciosoig January 2012 | |
| # | |
| # Extended by Patrick Blitz, April 2013 |
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
| // Browse to https://my.slack.com/team#active and open the developer console | |
| x=[]; | |
| jQuery('#active_members_list .team_list_item.member_item.active').each( function(ix, el) { | |
| el = jQuery(el); | |
| if( el.find('.member_image.bot').length ) { | |
| return; // skip bots | |
| } | |
| var details = { | |
| name: el.find('.member_name').text(), | |
| tel: el.find('.member_data_table a[href^=tel]').text(), |
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
| jQuery('#bottom-bar').remove(); | |
| jQuery('#contact-list').remove(); | |
| jQuery('html').css('overflow', 'auto'); | |
| jQuery('#chat-room').css({ 'height': 'auto', 'width': '100%', 'overflow-y': 'auto' }); |
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
| // June 11, 2012 | |
| // https://twitter.com/b3ll/status/212169466665111552 | |
| -(BOOL)isBlocked | |
| { | |
| return false; | |
| } | |
| -(int)epicWWDCLineHacks | |
| { |
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
| brew install openssl | |
| git clone --recursive git@github.com:tihmstar/futurerestore.git | |
| cd futurerestore/ | |
| export PKG_CONFIG_PATH=/usr/local/share/pkgconfig:/usr/local/lib/pkgconfig:$(brew --prefix openssl)/lib/pkgconfig | |
| ./autogen.sh | |
| make | |
| ./futurerestore/futurerestore | |
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
| Open chrome://extensions, debug Authy main.html | |
| Set a breakpoint in Authy app.js in this function: | |
| d.prototype.getOtp = function() { | |
| return this.isEncrypted() ? "------" : this.otpGenerator.getOtp(this.decryptedSeed, this.digits) | |
| } | |
| Can use a conditional breakpoint, where this.getName() == 'your.account.display.name' | |
| console.log( "otpauth://totp/%s:%s?secret=%s&issuer=%s", encodeURIComponent( this.getAccountName() ), encodeURIComponent( this.getName() ), encodeURIComponent(this.decryptedSeed), this.getAccountName() ); |