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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# All Vagrant configuration is done below. The "2" in Vagrant.configure | |
# configures the configuration version (we support older styles for | |
# backwards compatibility). Please don't change it unless you know what | |
# you're doing. | |
Vagrant.configure("2") do |config| | |
# The most common configuration options are documented and commented below. | |
# For a complete reference, please see the online documentation at |
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 | |
/** | |
* Temporary function to delete fields attached to entities that have already | |
* been deleted. This assumes there are no deleted fields that need to be | |
* purged as this won't actually remove their tables in the database. Use with | |
* caution and only when fully understanding what this does compared to | |
* field_purge_batch and field_purge_field_storage. | |
*/ | |
function _fix_missing_entities_during_field_purge() { |
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 | |
namespace App\Parsers\AddressParser; | |
/** | |
* @author Jonathon Byrd | |
* @package Address Parsing | |
* | |
* | |
*/ | |
class AddressHelper extends ObjectBase |
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
$('[name="personFieldset[firstName]"]').val('First').change() | |
$('[name="personFieldset[lastName]"]').val('Last').change() | |
$('#btnStart').click() |
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
$series_default = [ | |
'EXVs.Exv1Position' => ['color' => '#00ff80', 'dashStyle' => 'Dot', 'yAxis' => 1], | |
'EXVs.Exv2Position' => ['color' => '#0dc4f2', 'dashStyle' => 'Dot', 'yAxis' => 1], | |
'EXVs.Exv3Position' => ['dashStyle' => 'Dot', 'yAxis' => 1], | |
'EXVs.Exv4Position' => ['dashStyle' => 'Dot', 'yAxis' => 1], | |
'Temperatures.Suction1Temp' => ['color' => '#39e600', 'dashStyle' => 'Solid'], | |
'Temperatures.Suction2Temp' => ['color' => '#00ccff', 'dashStyle' => 'Solid'], | |
'Temperatures.Suction3Temp' => ['dashStyle' => 'Solid'], | |
'Temperatures.CompressorInletTemp' => ['color' => '#739900', 'dashStyled' => 'Solid'], | |
'Temperatures.Compressor1InletTemp' => ['dashStyled' => 'Solid'], |
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
## Instructions to clone odroid external ssd over to a new external ssd | |
# You shouldn’t see any errors when running this process, if you do. Stop immediately and ask me. | |
# run lsblk to see all the hard drives. You should see a line starting with mmcblk0 and then 2 more underneath it with | |
# mmcblk0p1 and mmcblk0p2. That’s the sd card disk and the sd card partitions. You’ll also see a line starting with | |
# sda (and/or sdb if there are two usb drives). We want to use the sd* one. | |
lsblk | |
#pull out some of the values from lsblk so we can automate the rest of the script | |
read new_partition new_drive mountpoint <<< `lsblk -e 179 -l -o NAME,PKNAME,FSTYPE,MOUNTPOINT |grep 'vfat\s*/media/odroid' | awk {'print $1" "$2" "$4'}` |
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
## Instructions to switch odroid over to external ssd | |
# You shouldn’t see any errors when running this process, if you do. Stop immediately and ask me. | |
# run lsblk to see all the hard drives. You should see a line starting with mmcblk0 and then 2 more underneath it with | |
# mmcblk0p1 and mmcblk0p2. That’s the sd card disk and the sd card partitions. You’ll also see a line starting with | |
# sda (and/or sdb if there are two usb drives). We want to use the sd* one. | |
lsblk | |
#pull out some of the values from lsblk so we can automate the rest of the script | |
read new_partition new_drive mountpoint <<< `lsblk -e 179 -l -o NAME,PKNAME,FSTYPE,MOUNTPOINT |grep 'vfat\s*/media/odroid' | awk {'print $1" "$2" "$4'}` |
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 | |
wget http://ftp.us.debian.org/debian/pool/main/libg/libgcrypt11/libgcrypt11_1.5.0-5+deb7u4_armhf.deb | |
wget http://launchpadlibrarian.net/218525709/chromium-browser_45.0.2454.85-0ubuntu0.14.04.1.1097_armhf.deb | |
wget http://launchpadlibrarian.net/218525711/chromium-codecs-ffmpeg-extra_45.0.2454.85-0ubuntu0.14.04.1.1097_armhf.deb | |
sudo dpkg -i libgcrypt11_1.5.0-5+deb7u4_armhf.deb | |
sudo dpkg -i chromium-codecs-ffmpeg-extra_45.0.2454.85-0ubuntu0.14.04.1.1097_armhf.deb | |
sudo dpkg -i chromium-browser_45.0.2454.85-0ubuntu0.14.04.1.1097_armhf.deb |
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 | |
# | |
# chkconfig: 35 99 99 | |
# description: Script for starting phantomjs. | |
# | |
. /etc/rc.d/init.d/functions | |
USER="phantomjs" |
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 | |
# | |
# Depends on phantom.js being installed | |
# | |
PHANTOM_CMD="phantomjs" | |
command -v $PHANTOM_CMD > /dev/null || { echo "Phantomjs not found"; exit 1; } | |
get_phantom_pid (){ |
NewerOlder