Skip to content

Instantly share code, notes, and snippets.

View VadimBrodsky's full-sized avatar

Vadim Brodsky VadimBrodsky

View GitHub Profile
@VadimBrodsky
VadimBrodsky / Notes.md
Last active March 14, 2017 02:19
Lubuntu Media Server

Disable GUI at Boot

# /etc/default/grub
# Change `GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"` to
GRUB_CMDLINE_LINUX_DEFAULT="text"
@VadimBrodsky
VadimBrodsky / ES3 Reserver.js
Created February 2, 2017 15:34
Reserved keyword in ES3
var reserved = [
"break", "case", "catch", "continue", "default", "delete", "do", "else",
"finally", "for", "function", "if", "in", "instanceof", "new", "return",
"switch", "this", "throw", "try", "typeof", "var", "void", "while", "with",
"abstract", "boolean", "byte", "char", "class", "const", "debugger",
"double", "enum", "export", "extends", "final", "float", "goto",
"implements", "import", "int", "interface", "long", "native", "package",
"private", "protected", "public", "short", "static", "super",
"synchronized", "throws", "transient", "volatile",
];
@VadimBrodsky
VadimBrodsky / bookmarklets.html
Created November 23, 2016 16:05
Bookmarklets
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width" />
<style type="text/css" media="all">
body { font-family: monospace; }
</style>
<title>Bookmarlets</title>
</head>
@VadimBrodsky
VadimBrodsky / RPi: Syncthing + start on boot
Created October 8, 2016 19:23
How to install Syncthing on Raspberry Pi + start on boot
Create a folder in /opt and cd to it
$ sudo mkdir -p /opt/syncthing
$ cd /opt/syncthing
Get the latest arm version of syncthing from github (https://github.com/syncthing/syncthing/releases/) x marks the version number.
$ sudo wget https://github.com/syncthing/syncthing/releases/download/vx.xx.x/syncthing-linux-arm-vx.xx.x.tar.gz
sudo tar -xzvf syncthing-linux-arm-vx.xx.x.tar.gz
sudo rm syncthing-linux-arm-vx.xx.x.tar.gz
Move content one folder up
@VadimBrodsky
VadimBrodsky / install-unrar-nonfree-raspbian.sh
Created October 8, 2016 18:30
Get Unrar Nonfree on Raspbian for the Raspberry PI
# As per this guide -- http://raspberrypi.stackexchange.com/questions/3617/how-to-install-unrar-nonfree#3618
# Uninstall unrar-free.
sudo apt-get remove unrar-free
# Make sure you have a source repository by editing /etc/apt/sources.list.
cat /etc/apt/sources.list
# Sync the apt database.
sudo apt-get update
@VadimBrodsky
VadimBrodsky / fix pi-hole.md
Created October 6, 2016 18:30
Fix Pi-Hole blank white screen on admin
  1. Open a terminal session on the PI
  2. To enable the server to handle php scripts the fastcgi-php module should be enabled by issuing in the command
sudo lighttpd-enable-mod fastcgi-php

# Then reload the server using
sudo service lighttpd force-reload
# Installing Pyload on Raspbian running on Raspberry Pi 2
git clone https://github.com/pyload/pyload.git
sudo apt-get install python-pycurl python-crypto python-imaging tesseract-ocr rhino
# Install pip for Python 2.7.9
wget https://bootstrap.pypa.io/get-pip.py
python get-pip.py
# Start PyLoad config
@VadimBrodsky
VadimBrodsky / rpi-unix-notes.md
Last active November 27, 2017 16:33
Raspberry PI

Raspberry PI Unix Notes

Mount USB Hard Drive

To Mount

sudo mkdir /mnt/usbdrive
sudo mount /dev/sda1/ /mnt/usbdrive
ls /mnt/usbdrive