Note this script is not executable. Please read through and manually apply each command.
pkgin up
pkgin -y in \
bash \
coreutils \
curl \
gcc47 \
# | |
# Executes commands at the start of an interactive session. | |
# | |
# Authors: | |
# Sorin Ionescu <[email protected]> | |
# | |
# Source Prezto. | |
if [[ -s "${ZDOTDIR:-$HOME}/.zprezto/init.zsh" ]]; then | |
source "${ZDOTDIR:-$HOME}/.zprezto/init.zsh" |
--------------------------------------------------------------------- | |
| The CASC (Content Addressable Storage Container) Filesystem | | |
| Warlords of Draenor Alpha, Build 6.0.1.18125 | | |
| Written April 14th, 2014 by Caali | | |
| Version 1.2 | | |
--------------------------------------------------------------------- | |
Distribution and reproduction of this specification are allowed without | |
limitation, as long as it is not altered. Quotation in other works is | |
freely allowed, as long as the source and author of the quote are stated. |
import React from 'react' | |
import Reset from './styles/Reset' | |
let styles = React.renderToStaticMarkup(<Reset />); | |
document.head.insertAdjacentHTML('beforeEnd', styles); | |
// start the app | |
import Router from './components/Router' |
// | |
// BridgeManager.h | |
// | |
// Created by Nick Hudkins on 12/13/15. | |
// | |
#import <Foundation/Foundation.h> | |
#import "RCTBridgeModule.h" | |
@interface BridgeManager : NSObject <RCTBridgeModule> |
import {Environment} from 'react-relay'; | |
import invariant from 'invariant'; | |
class RelayStore { | |
constructor() { | |
this._env = new Environment(); | |
this._networkLayer = null; | |
this._taskScheduler = null; | |
} |
From 2012Q1 to 2012Q2, assuming 32-bit dataset (i386) | |
# Update repositories.conf for pkgin, and set $PKG_PATH for pkg_add | |
REPO=http://pkgsrc.joyent.com/sdc6/2012Q2/i386/All | |
echo ${REPO} >/opt/local/etc/pkgin/repositories.conf | |
export PKG_PATH=${REPO} | |
# Update core packages manually | |
pkg_add -u bootstrap-mk-files bmake |
let getRandomBytes = ( | |
(typeof self !== 'undefined' && (self.crypto || self.msCrypto)) | |
? function() { // Browsers | |
var crypto = (self.crypto || self.msCrypto), QUOTA = 65536; | |
return function(n) { | |
var a = new Uint8Array(n); | |
for (var i = 0; i < n; i += QUOTA) { | |
crypto.getRandomValues(a.subarray(i, i + Math.min(n - i, QUOTA))); | |
} | |
return a; |
I had a client who I built a site for (ecommerce) that had a lot of high resolution images. (running about 500gb/mo). Cloudinary charges $500/mo for this usage and Amazon charges about $40. I wrote some middleware that I used to wrap my cloudinary urls with in order to enable caching. This is entirely transparent and still enables you to use all the cool cloudinary effect and resizing functions. Hopefully this is useful to someone!
I think using deasync()
here is janky but I couldn't think of another way to do it that allowed for quite as easy a fix.