Inspired by https://gist.github.com/joshbirk/8363143
Please use Python3
- Create connected-app and obtain
consumer_keyandconsumer_secret - Install
simple-salesforcepackage
| #!/usr/bin/env ruby | |
| # | |
| # Syncs Ruby binstubs for ruby-communal-gems. | |
| # Run this everytime you install a new Ruby, or when you install a new gem | |
| # with a bin/ command. (ie, when you typically do rbenv rehash) | |
| # | |
| # See: https://github.com/tpope/rbenv-communal-gems/issues/5 | |
| # | |
| require 'fileutils' |
| <?php | |
| /** | |
| * Load site scripts. | |
| * | |
| * @since 1.0.0 | |
| * | |
| * @return void | |
| */ | |
| function wpgulp_enqueue_scripts() { |
| # app/assets/javascripts/ember-app/templates/partials/_header.js.coffee | |
| %nav.navbar.navbar-default.navbar-fixed-top | |
| .container | |
| .navbar-header | |
| %btn.navbar-toggle{ data: { target: '.navbar-collapse', toggle: 'collapse' }, type: 'button' } | |
| %span.sr-only Toggle Navigation | |
| %span.icon-bar | |
| %span.icon-bar | |
| %span.icon-bar | |
| = hb 'link-to "index" class="navbar-brand"' do |
| // a list of useful queries for profiler analysis. Starting with the most basic. | |
| // 2.4 compatible | |
| // | |
| // output explained: | |
| // | |
| { | |
| "ts" : ISODate("2012-09-14T16:34:00.010Z"), // date it occurred | |
| "op" : "query", // the operation type | |
| "ns" : "game.players", // the db and collection |
| #!/usr/bin/env bash | |
| # Reset routing table on OSX | |
| # display current routing table | |
| echo "********** BEFORE ****************************************" | |
| netstat -r | |
| echo "**********************************************************" | |
| for i in {0..4}; do | |
| sudo route -n flush # several times |
| #!/usr/bin/env perl | |
| # This work is licensed under the GNU Public License (GPLv3). | |
| # To view a copy of this license, visit http://www.gnu.org/copyleft/gpl.html | |
| # To read more about this script go to: http://mpcabd.xyz/using-curl-with-proxy-pac-configuration-files/ | |
| use strict; | |
| use warnings; |
| $ tmux attach | |
| protocol version mismatch (client 7, server 6) | |
| $ pgrep tmux | |
| 3429 | |
| $ /proc/3429/exe attach |
| #!/usr/bin/env python3 | |
| import sys, os, socket | |
| from socketserver import ThreadingMixIn | |
| from http.server import SimpleHTTPRequestHandler, HTTPServer | |
| HOST = socket.gethostname() | |
| class ThreadingSimpleServer(ThreadingMixIn, HTTPServer): | |
| pass |
| // Convert from normal to web-safe, strip trailing "="s | |
| function webSafe64(base64) { | |
| return base64.replace(/\+/g, '-').replace(/\//g, '_').replace(/=+$/, ''); | |
| } | |
| // Convert from web-safe to normal, add trailing "="s | |
| function normal64(base64) { | |
| return base64.replace(/\-/g, '+').replace(/_/g, '/') + '=='.substring(0, (3*base64.length)%4); | |
| } |
Inspired by https://gist.github.com/joshbirk/8363143
Please use Python3
consumer_key and consumer_secretsimple-salesforce package