CCCPaste

GCC String array loop

#include<stdio.h>
#include <string.h>

void main(){
int i;

Wake up screen on remote computer through SSH

#Wake up screen on remote computer through SSH
DISPLAY=:0.0
export DISPLAY
xset -display ${DISPLAY} dpms force on

Nintendo Emulator config for CHIP Composite Output

;VERSION 0.9.36.4
;Edit this file at your own risk!
;File format: <key><single space><value><LF or CR+LF>
;this configuration file was created by
;Kris Occhipinti http://filmsbykris.com

Bluetooth Audio on CHIP $9 Computer

#get Bluetooth audio Speakers working on CHIP $9 Computer
sudo apt install pulseaudio-module-bluetooth

#add the following 2 lines to /etc/bluetooth/audio.conf
[General]

NES ROM Hacking with Hexeditor Nintendo

#Hexediting Mario Bros NES ROM
#http://download.freeroms.com/nes_roms/08/mario_bros.zip

#pos #val
179 = FF #Star on menu moves to left and mario falls of screen

Convert files to Audio and Back again PSK31 and Modem

padsp gpsk31

#also look into minimodem for shell use
#transmit (110 is the baud rate - higher faster but less accurate)
echo "hello World"|minimodem --tx --ascii 110

IR Remote setip for Arduino

#!/bin/bash
#IR Remote setip for arduino
#Clear Arduino
rm ~/Arduino ~/.arduino15 ~/Downloads/arduino-1.6.9 -fr
cd ~/Downloads && tar xf arduinoIDE.tar.xz && cd arduino-1.6.9

Very basic IR Remote Receiver to Serial

//Install library
//http://pastebin.com/kNMMxkkk
//For computer side of things http://pastebin.com/PXCbLKNj
//------------------------------------------------------------------------------
// Include the IRremote library header

Basic Serial Port Reader

#!/bin/bash
stty raw -echo < /dev/ttyUSB0;
cat -vte /dev/ttyUSB0|while read line;
do
if [[ "$line" == *"9516AE"* ]];

script for Arduino TV output image to binary

#!/bin/bash
#GPLv3
#get input image
img=$1