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
javascript: Promise.all([import('https://unpkg.com/[email protected]?module'), import('https://unpkg.com/@tehshrike/[email protected]'), ]).then(async ([{ | |
default: Turndown | |
}, { | |
default: Readability | |
}]) => { | |
/* Optional vault name */ | |
const vault = ""; | |
/* Optional folder name such as "Clippings/" */ |
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
package main | |
import ( | |
"log" | |
"math/rand" | |
"time" | |
"github.com/google/uuid" | |
) |
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
(maintenance/unicorn)vino$ bundle exec cap staging deploy | |
DEBUG [fcd7244e] Running /usr/bin/env [ -d ~/.rbenv/versions/2.2.0 ] as [email protected] | |
DEBUG [fcd7244e] Command: [ -d ~/.rbenv/versions/2.2.0 ] | |
DEBUG [fcd7244e] Finished in 0.915 seconds with exit status 0 (successful). | |
Please enter branch (maintenance/unicorn): | |
INFO Local branch is in sync with remote; proceeding with deploy. | |
INFO [53a65e42] Running /usr/bin/env mkdir -p /tmp/blog/ as [email protected] | |
DEBUG [53a65e42] Command: ( RAILS_ENV=production RBENV_ROOT=~/.rbenv RBENV_VERSION=2.2.0 /usr/bin/env mkdir -p /tmp/blog/ ) | |
INFO [53a65e42] Finished in 0.149 seconds with exit status 0 (successful). | |
DEBUG Uploading /tmp/blog/git-ssh.sh 0.0% |
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 | |
# Verify Git is installed: | |
if [ ! $(which git) ]; then | |
echo "Git is not installed, can't continue." | |
exit 1 | |
fi | |
if [ -z "${RBENV_ROOT}" ]; then | |
RBENV_ROOT="$HOME/.rbenv" |
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
Aug 04, 2014 1:01:24 PM org.apache.catalina.core.StandardContext loadOnStartup | |
SEVERE: Servlet /webapps/ldc-b4-BBLEARN threw load() exception | |
java.security.AccessControlException: access denied ("java.util.PropertyPermission" "jboss.i18n.generate-proxies" "write") | |
at java.security.AccessControlContext.checkPermission(AccessControlContext.java:372) | |
at java.security.AccessController.checkPermission(AccessController.java:559) | |
at java.lang.SecurityManager.checkPermission(SecurityManager.java:549) | |
at java.lang.System.setProperty(System.java:782) | |
at org.hibernate.cfg.PropertyContainer.<clinit>(PropertyContainer.java:61) | |
at org.hibernate.cfg.InheritanceState.getElementsToProcess(InheritanceState.java:231) | |
at org.hibernate.cfg.AnnotationBinder.bindClass(AnnotationBinder.java:664) |
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
// First get the body from the HttpServletRequest | |
String body = readBody(request); | |
// Verify request oauth_body_hash | |
verifyOAuthBodyHash(body, oauthParameters, hmacSigner) // oauthParameters and hmacSigner are created in this servlet but omitted from this gist | |
// request is handled from doPost() that encapsulates this gist | |
private String readBody(HttpServletRequest request) throws IOException { | |
BufferedReader reader = new BufferedReader(new InputStreamReader(request.getInputStream())); | |
StringBuilder body = new StringBuilder(); |
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
require 'openssl' | |
require 'base64' | |
def gather_args | |
args = Array.new | |
# Only accepts two arguments | |
raise if ARGV.length > 2 | |
ARGV.each do |a| |
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
class Emote | |
def self.❨╯°□°❩╯︵┻━┻ | |
puts "Calm down, bro" | |
end | |
end | |
Emote.❨╯°□°❩╯︵┻━┻ |
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
require 'time' | |
class Io | |
def self.get_duration(array) | |
# only evaluate if there are an even number of items in the array | |
if array.length.even? | |
# iterate through each argument | |
i_ary = [] | |
array.each do |arg| |
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/folders/tl/09xh_cbj5zz81f1c3tyn53zm0000gn/T/ruby-build.20140413204436.39252 ~ | |
HTTP/1.1 200 OK | |
Content-Type: binary/octet-stream | |
Content-Length: 15092388 | |
Connection: keep-alive | |
Date: Thu, 03 Apr 2014 17:56:51 GMT | |
Last-Modified: Mon, 24 Feb 2014 13:08:59 GMT | |
ETag: "e57fdbb8ed56e70c43f39c79da1654b2" | |
Accept-Ranges: bytes | |
Server: AmazonS3 |
NewerOlder