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
sudo apt-get install apache2 -y | |
git clone https://github.com/google/blockly | |
sudo cp blockly /var/www/html | |
chromium-browser localhost/blockly/demos/code |
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/bash | |
# show charging status of pod-point EV charging stations | |
# pod-point.com | |
# usage: pod-status st-helens-retail-park-kdxd | |
html=$(curl -s https://charge.pod-point.com/address/$1) | |
name=$(grep h1 <<< $html | sed -e 's/<[^>]*>//g') | |
status=$(grep fa-flash <<< $html | sed -e 's/<[^>]*>//g' | tr -d " ") | |
readarray -t port <<< "$status" |
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/bash | |
# show charging status of cyc EV charging stations | |
# chargeyourcar.org.uk | |
# usage: cyc-status 70808 | |
html=$(curl -s https://m.chargeyourcar.org.uk/chargePoint?bayNo=$1) | |
name=$(grep -m1 "<br />" <<< $html | tr -d "\t" | cut -d "<" -f1) | |
status=$(grep "connectorStatusArray\\[connectorIndex\\] =" <<< $html | cut -d\' -f2) | |
echo $name |
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
sudo apt-get install kodi libreoffice pinta vlc x11vnc minetest sonic-pi cups samba claws-mail guvcview geany firefox-esr gimp audacity openshot gparted k3b okular smplayer kwrite digikam kdenlive arduino blender browser-plugin-freshplayer-pepperflash system-config-printer | |
netflix setup | |
flash setup | |
apt-get install gnome-backgrounds | |
samba shares |
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
#include <windows.h> | |
int WINAPI winmain(HINSTANCE hinstance, | |
HINSTANCE hPrevInstance, | |
LPSTR lpszargument, | |
int nWindowStyle) | |
{ | |
MessageBox(HWND DESKTOP, | |
"Hello World", | |
"This is a simple Windows Program", | |
MB-OK); |
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
tar cf - * | ssh -C root@serverIP "cd /home/dir; tar xvf -" |
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
from Tkinter import * | |
from subprocess import * | |
app=Tk() | |
slider=Scale(app,orient=HORIZONTAL) | |
slider.set(50) | |
slider.pack() | |
def pressed(): |
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
MOUSE_BTN0 pause | |
MOUSE_BTN0_DBL quit | |
MOUSE_BTN1 ignore |
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/bash | |
username="USERNAME" | |
password="PASSWORD" | |
echo | |
curl -u $username:$password --silent "https://mail.google.com/mail/feed/atom" | grep -oPm1 "(?<=<summary>)[^<]+" | |
# title = email subject | |
# summary = body of message | |
# name = sender name |
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/bash | |
export DISPLAY=:0 | |
youtube-dl -q -f 17 -o- $1 | mplayer -zoom -x 320 -y 210 - | |
#usage: ./youtube.sh https://youtu.be/watch=cgchcjk |
NewerOlder