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
### Keybase proof | |
I hereby claim: | |
* I am brycefisher on github. | |
* I am bff (https://keybase.io/bff) on keybase. | |
* I have a public key whose fingerprint is C5B5 A620 A9FE 0471 0B82 C3DE 7164 981B 336A 2F68 | |
To claim this, I am signing this object: |
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
echo "BOOTSTRAP: Update apt-get" | |
sudo apt-get update -y | |
echo "BOOTSTRAP: Install some utilities" | |
sudo apt-get install -y curl git | |
echo "BOOTSTRAP: Install FFMPEG" | |
sudo apt-get install -y ffmpeg | |
echo "BOOTSTRAP: Install mysql server" |
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
alert() |
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/sh | |
curl http://static.rust-lang.org/dist/rust-nightly-x86_64-unknown-linux-gnu.tar.gz >> rust-nightly.tar.gz | |
tar xvf rust-nightly.tar.gz | |
cd rust-nightly-x86_64-unknown-linux-gnu | |
./install.sh | |
cd .. | |
rm -rf rust-nightly-x86_64-unknown-linux-gnu | |
rm rust-nightly.tar.gz |
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
<?php | |
// Open the munged file | |
$in_fp = fopen('CarenChengWordList.csv','r'); | |
while ($row = fgetcsv($in_fp)) { | |
// Separate out the data in the 3rd column into 3 fields | |
list($messy_fields, $sentence) = explode("\n", $row[2]); | |
$period_index = stripos($messy_fields, '.'); | |
$part_of_speech = substr($messy_fields, 0, $period_index); | |
$definition = substr($messy_fields, $period_index + 1); |
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
$ make cmake | |
rm -rf build | |
make -C src/testdir clean | |
rm -rf *.out *.failed *.rej *.orig test.log test.out X* viminfo tiny.vim small.vim mbyte.vim mzscheme.vim lua.vim test.ok valgrind.* | |
make -C test/includes clean | |
rm -rf post | |
sh -e scripts/setup-test-tools.sh | |
Checking Lua includes... | |
lua.h found in /Users/bfisher-fleig/Desktop/neovim/.deps/usr/include/luajit-2.0/lua.h | |
curl found at /usr/bin |
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
<?php | |
//... | |
// Store the database credentials serialized in an environmental variable. | |
$db_creds = unserialize(getenv('DRUPAL_DB_CRED')); | |
$databases = array ( | |
'default' => | |
array ( | |
'default' => $db_creds, |
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
<?php | |
/** | |
* @file | |
* This is a drush script designed to create fake translations of the genera pages for development purposes ONLY. | |
* | |
* NOTE: | |
* ----- | |
* This file must be located somewhere inside the drupal root. | |
* | |
* USAGE: |
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
<?php | |
$nids = array(1, 2, 3, 4, 5); | |
// This is the key piece to understand -- it creates as many placeholder as you want based on the length of $nids array. | |
$placeholders = implode(',', array_fill(0, count($nids), '%d')); | |
$results = db_query(" | |
select r.title | |
from {node_revisions} r | |
join {node} n |
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
/** | |
* Create a nodequeue. | |
*/ | |
function _brightcove_marketing_solutions_create_nodequeue() { | |
$nodequeue = new stdClass; | |
// $nodequeue->api_version = 2; | |
$nodequeue->name = 'marketing_solutions_related_partners'; | |
$nodequeue->title = 'Marketing solutions - related partners'; | |
$nodequeue->subqueue_title = ''; | |
$nodequeue->size = 0; |