CCCPaste

list of installed packages on Debian

#list all installed packages with dpkg
dpkg --get-selections| grep -v deinstall
#get a count of installed packages
dpkg --get-selections| grep -v deinstall|sc -l

FFMPEG Extract 100 frames from a file

#!/bin/bash
#
# Copyright (c) 2017 Kris Occhipinti.
# http://filmsbykris.com
#

Joystick/Gamepad commands and notes

#test/calibrate gamepad
sudo apt-get install joystick
jscal -c /dev/input/js0

#disable/enable mouse point control

Fat Partition file sorting

#!/bin/bash
#vfat file order

#create 100 random numbered files of 4 digit length
for i in `seq 1 100`;do touch $(($RANDOM%9000+1001));done

Sort Images Based by Address Based on GPS

#!/bin/bash

#
# This file is part of the Maps-and-Locations (https://github.com/metalx1000/Maps-and-Locations http://FilmsByKris.com).
# Copyright (c) 2017 Kris Occhipinti.

HTML5 Upload Multiple Files

<?php
if(isset($_POST['submit'])){
if(count($_FILES['upload']['name']) > 0){
//Loop through each file
for($i=0; $i<count($_FILES['upload']['name']); $i++) {

merge multiple audio tracks with ffmpeg

ffmpeg -i 3_Kicker.wav -i 4_hihatclosedogg.wav -i 5_clapogg.wav -filter_complex amix=inputs=3:duration=first:dropout_transition=3 output.mp3

Including functions from other files and returning values

#!/bin/bash

source functions.sh #includes another shell script into this file

myFunc #function from functions.sh

Belkin F5D7234 router serial connection

#Belkin F5D7234-4 v5
#https://wikidevi.com/wiki/Belkin_F5D7234-4_v5
#CPU1: Broadcom BCM5355A1 (333 MHz)
#FLA1: 2 MiB (Winbond 25Q16BVSIG)
#RAM1: 8 MiB (Winbond W9864G6IH-6)

NPR Morning Edition mp3 download and combine

wget -q "http://www.npr.org/programs/morning-edition/" -O-|grep "audio-module-listen"|grep ".mp3"|cut -d\" -f4|grep -v "me_0"|while read mp3;do wget -P tmp "$mp3";done;cat tmp/* >npr.mp3