This file contains 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 { exec as execNonPromise } from 'child_process' | |
import { copyFile, mkdir, readFile, rm, writeFile } from 'fs/promises' | |
import { join } from 'path' | |
import util from 'util' | |
import { | |
BUILD_DIR, | |
DEPLOYABLE_CONTRACT_NAMES, | |
} from './constants' | |
const exec = util.promisify(execNonPromise) |
I hereby claim:
- I am bshyong on github.
- I am bshyong (https://keybase.io/bshyong) on keybase.
- I have a public key ASBaKNlRicQO1-VBcEz5XZ8220YDdrNB0W8vnxRYPBldowo
To claim this, I am signing this object:
- Disable normal asset compilation
- Make sure npm is updated to 3.5.0
- Add commands to make sure #2 is done before app code is deployed
- Use container commands to do npm install and precompile assets
commands:
00_update_npm:
command: "sh /tmp/install_node_npm.sh"
Closed issues:
- Sidekiq + Docker - Handle Docker container termination? #2404
Fixed bugs:
- LevelDB "Corruption: bad entry in block" on 0.9.1-beta #4263
This file contains 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
{ | |
"wp platform": [ | |
"wp-platform" | |
], | |
"mobil": [ | |
"mobile", | |
"Mobile" | |
], | |
"go": [ | |
"go" |
This file contains 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 'open-uri' | |
require 'nokogiri' | |
require 'csv' | |
require 'cgi' | |
# BASE_URL = 'http://en.wikipedia.org/w/api.php?format=json&action=query&prop=revisions&rvprop=content&titles=' | |
BASE_URL = 'http://en.wikipedia.org/wiki/' | |
while($input_filename.nil?) | |
puts "Enter input filename (should be a CSV)" |
This file contains 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 BSTnode(object): | |
""" | |
Representation of a node in a binary search tree. | |
Has a left child, right child, and key value, and stores its subtree size. | |
""" | |
def __init__(self, parent, t): | |
"""Create a new leaf with key t.""" | |
self.key = t | |
self.parent = parent | |
self.left = None |
This file contains 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 | |
# call command with bash pull_production_to_local | |
function LastBackupName () { | |
heroku pgbackups --app APPNAME | tail -n 1 | cut -d " " -f 1 | |
} | |
heroku pgbackups:capture --expire --app APPNAME | |
new_backup=$(LastBackupName) |
NewerOlder