Skip to content

Instantly share code, notes, and snippets.

@Edocsyl
Edocsyl / build-pocketvj.md
Last active February 21, 2019 14:14 — forked from baydam/build-pocketvj.md
How to build PocketVJ on Raspberry Pi 3

Documentation for building PocketVJ on raspberry Pi 2

Install Raspbian Lite

Find the instruction in the link below https://www.raspberrypi.org/documentation/installation/installing-images/README.md

Install dependencies

$ sudo apt-get update

$ sudo apt-get -y install lxde-core lxterminal lxappearance xinit lightdm ntfs-3g python-pexpect vim figlet git-core firmware-ralink hostapd isc-dhcp-server lighttpd samba samba-common-bin php5-common php5-cgi php5 php5-mysql screen fbi ttf-mscorefonts-installer mediainfo gparted php5-cli iptables xtightvncviewer imagemagick dosfstools exfat-utils exfat-fuse hfsplus hfsprogs hfsutils xdotool expect expect-dev avahi-daemon libavahi-compat-libdnssd-dev feh libjpeg8 libjpeg8-dev libao-dev avahi-utils libavahi-compat-libdnssd-dev libva-dev youtube-dl python-smbus mpg321 mpg123 libreoffice-impress rc-gui python-pip iceweasel python-dev python-dbus xpdf x11-xserver-utils libncurses5-dev shellinabox tk okular usbmount libgstreamer0.10-0 libgstreamer0.10-dev g
<?php
//string und array definieren
$string = "abcde";
$array = array();
//string verdrehen
$string = strrev($string);
@Edocsyl
Edocsyl / execute_jar.bat
Created September 16, 2013 15:48
Little script to easy execute jar files.
@echo off
set /p url=Enter the jar file name:
java -jar %url%
@Edocsyl
Edocsyl / relay.py
Last active December 21, 2015 16:28
Raspberry PI Rev 1 & 8 Channel Relay module; This script goes through every defined gpio port and powers every relay for 0.5 sec.
#!/usr/bin/env python
import RPi.GPIO as GPIO, time as t
#Define GPIO Ports http://bit.ly/14RmXp2
r = [8, 10, 12, 16, 18, 22, 24, 26]
#Setup GPIO
GPIO.setwarnings(False)
@Edocsyl
Edocsyl / twitchtv-followers.php
Created May 22, 2013 15:30
Get the Twitch.tv followers with php
<?php
/**
* Twitch.tv get all channel follower with PHP
* @author Edocsyl <[email protected]>
* @date 18.05.13
* @version 1.0
*/
class twitchfollow {