Skip to content

Instantly share code, notes, and snippets.

@dblencowe
dblencowe / deploy.sh
Created May 8, 2016 09:33
Deploy Bedrock sites to a standard Wordpress install using Git and Continuous Integration
#!/usr/bin/env bash
###
# Check that we have the correct working directory.
###
if [ ! -d "web" ]
then
echo "Please run this script from the main web directory."
exit
fi
#!/usr/bin/env bash
###
# Check that we have the correct working directory.
###
if [ ! -d "web" ]
then
echo "Please run this script from the main web directory."
exit
fi
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title></title>
<style type='text/css'>
ul { list-style: none; }
#recordingslist audio { display: block; margin-bottom: 10px; }
</style>
#!/bin/bash
adb reboot bootloader
echo "Press a key once your device says bootloader in the bottom right..."
read -n 1 -s
fastboot oem append-cmdline "androidboot.unlocked_kernel=true"
sleep(8)
fastboot continue
Changing serial settings was 0/0 now 3/0
Start bios (version 1.7.2-20150226_170051-google)
Unable to unlock ram - bridge not found
Ram Size=0xc0000000 (0x0000000120000000 high)
Relocating low data from 0x000e5810 to 0x000ef780 (size 2161)
Relocating init from 0x000e6081 to 0xbffd3540 (size 51612)
CPU Mhz=2301
=== PCI bus & bridge init ===
PCI: pci_bios_init_bus_rec bus = 0x0
=== PCI device probing ===
<?xml version="1.0"?>
<!--
/**
* Magento
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE_AFL.txt.
* It is also available through the world-wide-web at this URL:
// The following is pseudo code
response = ['lounge', 'main', 'on'];
device = "";
response.each(function (word){
device += word; // pop it here so the word is actually removed
response.splice(response.indexOf(word));
rst = database.select("SELECT FROM devices WHERE name = " + command);
if (rst.length == 1) {
@dblencowe
dblencowe / config.rb
Created December 28, 2015 20:44
Compass Config
require 'compass/import-once/activate'
# Require any additional compass plugins here.
# Set this to the root of your project when deployed:
http_path = "/"
css_dir = "web/app/themes/qtvsports/assets/css"
sass_dir = "web/app/themes/qtvsports/assets/sass"
images_dir = "web/app/themes/qtvsports/assets/images"
javascripts_dir = "web/app/themes/qtvsports/assets/js"
@dblencowe
dblencowe / console.log
Created February 11, 2015 12:00
Spotify Beta Errors
11/02/2015 11:58:30.000 kernel[0]: process SpotifyBeta[30466] thread 3069953 caught burning CPU! It used more than 50% CPU (Actual recent usage: 50%) over 180 seconds. thread lifetime cpu usage 90.098415 seconds, (14.168682 user, 75.929733 system) ledger info: balance: 90004844056 credit: 90004844056 debit: 0 limit: 90000000000 (50%) period: 180000000000 time since last refill (ns): 177704928889
11/02/2015 11:58:30.911 spindump[851]: Saved cpu_resource.diag report for SpotifyBeta version 1.0.0.974.ga39487e3 (1.0.0.974.ga39487e3-1439) to /Library/Logs/DiagnosticReports/SpotifyBeta_2015-02-11-115830_Davids-MacBook-Pro.cpu_resource.diag
@dblencowe
dblencowe / Spotify Error Log
Created February 8, 2015 18:38
Spotify Error Log
18:24:19.768 I [breakpad.cpp:110 ] Registered Breakpad for product: spotify
18:24:19.769 I [translate.cpp:152 ] Reloading language file
18:24:19.819 I [translate.cpp:152 ] Reloading language file
18:24:19.820 I [breakpad.cpp:269 ] Searching for crashdumps: /Users/dblencowe/Library/Caches/com.spotify.client/*.dmp
2015-02-08 18:24:19.878 Spotify[20991:1734374] Internals of CFAllocator not known; out-of-memory failures via CFAllocator will not result in termination. http://crbug.com/45650
2015-02-08 18:24:19.946 Spotify[20991:1734374] Mac OS version: 11.0
18:24:25.353 E [watchdog.cpp:176 ] Deadlock detected (Thread: gui)
18:24:33.265 D [spirc_manager.cpp:230 ] GAIA: SpircManager::SpircManager, ident_=f11e70717bff90ce3a8735bfb5de5f69a6652bb1