- git checkout master
- git pull
- git checkout branch
- git merge master
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
| #!/bin/bash | |
| # Clear the screen | |
| tput clear | |
| # Write a frame | |
| echo | |
| echo " +---------------------+" | |
| echo " | |" | |
| echo " +---------------------+" |
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 remote = require('remote') | |
| var $ = require('./lib/jquery') | |
| var win = remote.getCurrentWindow() | |
| var isDragging = false | |
| var winPos | |
| var dX, dY // screen - win | |
| $(document).on('mousedown', '.app-drag', function(e) { | |
| e = e.originalEvent || e |
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
| #!/bin/bash | |
| # Package bitcoinjs-lib as a nodejs module | |
| # Install bitcoinjs first (`npm install bitcoinjs-lib`), | |
| # than run this in your app's directory. | |
| TARGET=lib/bitcoinjs-lib.js | |
| # Wrap all of bitcoinjs-lib and its dependencies in an IIFE | |
| # and export the Bitcoin, Crypto and BigInteger objects. |
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
| const fs = require("fs") | |
| module.exports = AppManifestParser | |
| function isNumeric(n) { | |
| return !isNaN(parseFloat(n)) && isFinite(n); | |
| } | |
| function recInt(obj) { //replace numeric strings with integers | |
| for (var p in obj) | |
| if (typeof obj[p] == "object") obj[p] = recInt(obj[p]); |
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
| "use strict"; | |
| // Listen to fetch events | |
| self.addEventListener('fetch', function(event) { | |
| // Check if the image is a jpeg | |
| if (/\.jpg$|.png$/.test(event.request.url)) { | |
| // Inspect the accept header for WebP support | |
| var supportsWebp = false; |
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
| #!/bin/bash | |
| # A script useful for cleaning up an old certificate archive. Removes orphan keys, ca certs and expired certs. | |
| dir="$(readlink -f $1)" | |
| CLEANUP=false # Enable this AFTER YOU CHECKED IT WORKS! (make backups) | |
| [ -z "$dir" ] && exit 2 | |
| cd "$dir" |
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
| # Importing Scripts directly from Tweets! #280characters | |
| # | |
| # NOTE: This should not be used for any production environment. Or any environment for that matter. Use https://PowerShellGallery.com | |
| # | |
| # | |
| #################################### | |
| # Example # | |
| #################################### | |
| # | |
| # |
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
| import urllib2, re, json, os, time, sys, HTMLParser | |
| html_parser = HTMLParser.HTMLParser() | |
| auth_address = "1KbV1e1u6P6AsY8XNBydgtbtN8iSB5WMyG" | |
| auth_privatekey = "xxxx" | |
| site = "1TaLkFrMwvbNsooF4ioKAY9EuxTBTjipT" | |
| zeronet_dir = ".." | |
| os.chdir(zeronet_dir) |
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
| preLoginHandler: function(formData, req, res, next) { | |
| var authRequest = { | |
| username: formData.login, | |
| password: formData.password | |
| }; | |
| //Try to authenticate the user | |
| req.app.get('stormpathApplication').authenticateAccount(authRequest, function(err, result) { | |
| //if (err) return helpers.handleError(err,res); | |
| if (err && err.code == 7100) { |
OlderNewer