# install dependecies
apt-get install qemu qemu-user-static binfmt-support
# download raspbian image
wget https://downloads.raspberrypi.org/raspbian_latest
# extract raspbian image
unzip raspbian_latest
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
/** | |
* @@@BUILDINFO@@@ fontList.jsx !Version! Wed Jul 27 2016 14:10:20 GMT-0500 | |
*/ | |
// script.name = fontList.jsx; | |
// script.description = creates a document and makes a list of all fonts seen by Illustrator; | |
// script.requirements = none; // runs on CS4 and newer; | |
// script.parent = CarlosCanto // 02/17/2013; | |
// script.elegant = false; | |
#target illustrator |
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
; | |
; START Elliot Custom | |
; | |
M155 S5 ; turn on auto temp reporting | |
G21 ;metric values | |
M117 Setting Temps to [extruder0_temperature]/[bed1_temperature]... | |
M104 S[extruder0_temperature] T0; Setting Extruder Temp | |
M145 B[bed1_temperature] H[extruder0_temperature] ; send temps to LCD | |
M117 Waiting for Tip and Bed Temps... | |
M190 S[bed1_temperature]; Wait for bed |
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
/** | |
* Marlin 3D Printer Firmware | |
* Copyright (C) 2017 MarlinFirmware [https://github.com/MarlinFirmware/Marlin] | |
* | |
* Based on Sprinter and grbl. | |
* Copyright (C) 2011 Camiel Gubbels / Erik van der Zalm | |
* | |
* This program is free software: you can redistribute it and/or modify | |
* it under the terms of the GNU General Public License as published by | |
* the Free Software Foundation, either version 3 of the License, or |
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
// Restore Bootstrap 4 alpha "hidden" utility classes. | |
@each $bp in map-keys($grid-breakpoints) { | |
.hidden-#{$bp}-up { | |
@include media-breakpoint-up($bp) { | |
display: none !important; | |
} | |
} | |
.hidden-#{$bp}-down { | |
@include media-breakpoint-down($bp) { | |
display: none !important; |
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
// script.name = fontList.jsx; | |
// script.description = creates a document and makes a list of all fonts seen by Illustrator; | |
// script.requirements = none; // runs on CS4 and newer; | |
// script.parent = eboney // 11/28/2017; | |
// script.elegant = false; | |
#target illustrator | |
#targetengine main | |
var edgeSpacing = 10; | |
var columnSpacing = 195; |
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/sh | |
# | |
# a simple way to parse shell script arguments | |
# | |
# please edit and use to your hearts content | |
# | |
ENVIRONMENT="dev" |
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 | |
$file = sys_get_temp_dir().'/phpcache.' . basename($_SERVER['SCRIPT_NAME']); //location of cache file | |
$current_time = time(); | |
$cache_last_modified = filemtime($file); //time when the cache file was last modified | |
if(file_exists($file) && ($current_time < strtotime('+1 day', $cache_last_modified))){ //check if cache file exists and hasn't expired yet | |
include($file); //include cache file | |
}else{ | |
ob_start(); //start output buffering | |
?> |
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
# Change to the project directory | |
cd $FORGE_SITE_PATH | |
# Turn on maintenance mode | |
php artisan down || true | |
# Pull the latest changes from the git repository | |
# git reset --hard | |
# git clean -df | |
git pull origin $FORGE_SITE_BRANCH |
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
#!/usr/bin/env bash | |
trap 'exit 130' INT | |
TOTAL_FILES=`find $1 -type f -size +3M -iname "*.jpg" -printf '.' | wc -c` | |
INDEX=1 | |
echo -e "${BWhite}Total files: ${BCyan}${TOTAL_FILES}${NC}" | |
for file in $(find $1 -type f -size +3M -iname "*.jpg"); do | |
echo -ne "${Gray}[${INDEX}/${TOTAL_FILES}]${White} $file --> ${BWhite}$(ls -lah $file | awk -F " " {'print $5'})${NC}" | |
# mogrify -resize '2560>' -quality 82 -define png:compression-level=9 -strip $file |