Table of Contents
#!/bin/bash | |
# Sign a file with a private key using OpenSSL | |
# Encode the signature in Base64 format | |
# | |
# Usage: sign <file> <private_key> | |
# | |
# NOTE: to generate a public/private key use the following commands: | |
# | |
# openssl genrsa -aes128 -passout pass:<passphrase> -out private.pem 2048 | |
# openssl rsa -in private.pem -passin pass:<passphrase> -pubout -out public.pem |
These instructions will not work on Chromebooks with an ARM processor. If you have an ARM processor then you cannot install Chromebrew to get git. You'll need to instead install crouton. Here are instructions that you can follow: https://github.com/macton/arch-linux-install-notes/tree/master/arm-chromebook-chroot
#Configuring Chromebook for Development
After a full Sunday of trial and error, and stepping through many semi-complete or dated blog posts explaining how to do this, I was able to get the Chromebook into developer mode, install git, Node.js, and NPM.
Here's what I did...
- Enable Developer Mode
- Press
Esc-Refresh-Power
keys which will reboot the Chromebook
var Promise = require('bluebird'); | |
var funcs = Promise.resolve([500, 100, 400, 200].map((n) => makeWait(n))); | |
funcs | |
.each(iterator) // logs: 500, 100, 400, 200 | |
.then(console.log) // logs: [ [Function], [Function], [Function], [Function] ] | |
funcs | |
.mapSeries(iterator) // logs: 500, 100, 400, 200 |
[ | |
{ | |
"offset": "GMT-12:00", | |
"name": "Etc/GMT-12" | |
}, | |
{ | |
"offset": "GMT-11:00", | |
"name": "Etc/GMT-11" | |
}, | |
{ |
// Instructions: Open slack, switch to the channel you want to invite people to, | |
// Copy and paste the entire code snippet below to the "Console" tab of your web inspector, hit "Enter". | |
(function () { | |
var people = prompt('Paste the usernames you want to invite here and hit OK:').split(/,\s*|\s+/); | |
var textArea = $('#message-input'); | |
var dismiss = function () { | |
$(".dialog_go").click(); | |
} |
All of the below properties or methods, when requested/called in JavaScript, will trigger the browser to synchronously calculate the style and layout*. This is also called reflow or layout thrashing, and is common performance bottleneck.
Generally, all APIs that synchronously provide layout metrics will trigger forced reflow / layout. Read on for additional cases and details.
elem.offsetLeft
,elem.offsetTop
,elem.offsetWidth
,elem.offsetHeight
,elem.offsetParent
1. Install rst2pdf | |
- use your package manager (or) | |
- pip install rst2pdf (or) | |
- easy_install rst2pdf | |
2. Add rst2pdf to the list of extensions in conf.py | |
extensions = ['rst2pdf.pdfbuilder'] |