Copys (loops) an existing mp4 file x times into a new file. Useful for taking short source video files and looping many times for use in BrightSign player.
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
/** | |
* SOS for a single LED | |
* | |
* @author Nathan Hyde | |
* @version 2016-08-31 | |
*/ | |
// Define the Pins | |
int LED=13; // use the arduino's built-in led on pin 13 |
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 | |
# use with 'fswatch . ./compressandupload.sh' | |
# https://github.com/alandipert/fswatch | |
# moves compressed files to a sub dir called "handbraked", which you need to create first | |
echo "---------- starting" | |
OUTPUTDIR="/your/path/here" | |
FILES=* | |
for f in $FILES |
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 | |
# cd DEEPLINK-* | |
# find . -d -name DATA -exec recodetowin {} \; | |
function recodeifneeded(){ | |
# Find the current encoding of the file | |
encoding=$(file -I "$1" | sed "s/.*charset=\(.*\)$/\1/") | |
if [ "binary" == "${encoding}" ]; then |
This short script installs syncthing and NSSM using chocolatey, a Windows Package Manager.
NSSM is included to enable easy creation of an autostart service for syncthing.
Using this installation method, syncthing.exe
is installed into C:\ProgramData\chocolatey\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
#!/bin/bash | |
# | |
# USAGE: print_disk_usage.sh [/path] | |
# # print from / | |
# print_disk_usage.sh | |
# | |
# # start in /usr/local | |
# print_disk_usage.sh /usr/local | |
# |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<array> | |
<dict> | |
<key>AudioAllowAACPass</key> | |
<integer>1</integer> | |
<key>AudioAllowAC3Pass</key> | |
<integer>1</integer> | |
<key>AudioAllowDTSHDPass</key> |
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
# config/initializers/rails3_sqlite3_adapter_patch.rb | |
# source: http://stackoverflow.com/a/20339198/2141283 | |
require 'active_record/connection_adapters/sqlite_adapter' | |
module ActiveRecord | |
module ConnectionAdapters | |
class SQLite3Adapter < SQLiteAdapter | |
def quoted_true; '1' end | |
def quoted_false; '0' end | |
end |
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
using UnityEngine; | |
public class FillScreen:MonoBehaviour | |
{ | |
void Update() { | |
Camera cam = Camera.main; | |
float pos = (cam.nearClipPlane + 0.01f); | |
transform.position = cam.transform.position + cam.transform.forward * pos; |
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
using UnityEngine; | |
using System.Collections; | |
public class FadeTest : MonoBehaviour | |
{ | |
Color startColor; | |
Color currentColor; | |
Color endColor; | |
bool shouldFade = false; | |
float startTime; |
NewerOlder