$ brew install ffmpeg --with-fdk-aac --with-tools --with-freetype --with-libass --with-libvorbis --with-libvpx --with-x265
a. You probably will only need the--with-fdk-aac
flag, but I'm not sure.$ cd
into the directory with the files you want to fix.- Place the
fix_m4a
file into that directory (remove the.sh
file extension) $ chmod 700 fix_m4a
to allow you to run it$ ./fix_m4a
This will fix all the.m4a
files, creating fixed versions prefixed withs-
.
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
#!/bin/bash | |
ssh devski "pg_dump -U postgres -h 127.0.0.1 -w [DB_NAME] | gzip" >> "/Users/[USER_FOLDER]/Downloads/db.sql.gz"; | |
"/Applications/Postgres.app/Contents/Versions/10/bin/dropdb" [DB_NAME]; | |
"/Applications/Postgres.app/Contents/Versions/10/bin/createdb" [DB_NAME]; | |
gunzip -c "/Users/[USER_FOLDER]/Downloads/db.sql.gz" | "/Applications/Postgres.app/Contents/Versions/10/bin/psql" [DB_NAME] -U postgres; | |
rm "/Users/[USER_FOLDER]/Downloads/db.sql.gz"; |
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
<?php | |
// Stripped down for brevity | |
class BPlugin { | |
public function init () { | |
// Trigger Google Shopping updates | |
// ===================================================================== | |
if (!craft()->config->get('devMode')) { |
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
<?php | |
// When using: | |
// `ngrok http -host-header=example.dev 80` | |
$isNgrok = array_key_exists("HTTP_X_ORIGINAL_HOST", $_SERVER) && strpos($_SERVER["HTTP_X_ORIGINAL_HOST"], "ngrok"); | |
$host = 'http://' . $_SERVER[$isNgrok ? 'HTTP_X_ORIGINAL_HOST' : 'SERVER_NAME'] . '/'; | |
return array( |
With the device connected and in development mode (Google it), port-forward :8081 on your Android device.
Then run react-native run-andoid
. Done.
Open AppDelegate.m
in Xcode.
Replace:
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
function get(url, success, error) { | |
var request = new XMLHttpRequest(); | |
request.open('GET', window.baseUrl + url, true); | |
request.setRequestHeader("X-Requested-With", "XMLHttpRequest"); | |
request.onload = function() { | |
var data = request.responseText; | |
if (request.status >= 200 && request.status < 400) { | |
success(data); | |
} else { |
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
new Swipe(document.getElementById("gallery"), function(event, direction) { | |
event.preventDefault(); | |
switch (direction) { | |
case "up": | |
// Handle Swipe Up | |
break; | |
case "down": | |
// Handle Swipe Down | |
break; |
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
'atom-text-editor': | |
'ctrl-g': 'find-and-replace:select-next' | |
'atom-workspace atom-text-editor:not([mini])': | |
'cmd-d': 'editor:duplicate-lines' | |
'alt-shift-up': 'editor:move-line-up' | |
'alt-shift-down': 'editor:move-line-down' |
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
From the first few pages of the manual to | |
Lost Treasures of Infocom I (also Frotz): | |
============================================ | |
|| Communicating with Interactive Fiction || | |
============================================ | |
With Interactive Fiction, you type your commands in plain English each | |
time you see the prompt which looks like this: |