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
As of say mid 2015, the introduction of "Wheezy", changed the WiFi settings and obsolessioned all the "HOW TO STATIC IP" articles. | |
This is how to get a static IP on your RPI. | |
*** Note: dhcpcd (DHCP client daemon) is not the same as dhcpd (DHCP (server) daemon). *** | |
https://wiki.archlinux.org/index.php/dhcpcd | |
Considerations: |
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 | |
ipVar=$(/sbin/ifconfig eth0 | grep 'inet addr:' | cut -d: -f2 | awk '{ print $1}') | |
curl https://api.pushbullet.com/v2/pushes \ | |
-u <paste_your_API_key_here>: \ | |
-d device_iden="<device_ID_of_your_phone>" \ | |
-d type="note" \ | |
-d title="Pi IP address" \ | |
-d body=$ipVar \ | |
-X POST |
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
#!/usr/bin/env bash | |
# Displays Pi-hole stats on the Adafruit PiTFT 2.8" touch screen | |
# Set the pi user to log in automatically and run this script from /etc/profile | |
# (c) 2015 by Jacob Salmela | |
# This file is part of Pi-hole. | |
# | |
# Pi-hole is free software: you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by | |
# the Free Software Foundation, either version 2 of the License, or | |
# (at your option) any later version. |
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
1) Copy ssh keys to user@host to enable password-less ssh logins. | |
ssh-copy-id user@host | |
To generate the keys use the command ssh-keygen | |
2) Start a tunnel from some machine’s port 80 to your local post 2001 | |
ssh -N -L2001:localhost:80 somemachine |
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
The priority in this file determines to which network you will connect if more then 2 configured networks are available. This will always be the network with the highest priority. | |
WPA start script | |
Create the WPA startup script /etc/init.d/wpa.sh | |
sudo vi /etc/init.d/wpa.sh | |
#!/bin/bash |
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
#do apt-get install ffmpeg Then, use this | |
import time | |
import picamera | |
VIDEO_DAYS = 1 |
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
<!doctype html> | |
<html itemscope itemtype="http://schema.org/WebPage"> | |
<head> | |
<meta charset=utf-8> | |
<!-- Place this data between the <head> tags of your website --> | |
<title>feedly. Read more, know more.</title> | |
<meta name="description" content="feedly: organize, read and share what matters to you." /> | |
<link rel="mask-icon" href="//s3.feedly.com/img/feedly-icon.svg" color="#2bb24c"> |
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 update | |
sudo apt-get dist-upgrade | |
sudo apt-get install -y rpi-chromium-mods | |
sudo apt-get install -y python-sense-emu python3-sense-emu | |
sudo apt-get install -y python-sense-emu-doc realvnc-vnc-viewer |
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
#! /usr/bin/python | |
# Written by Dan Mandle http://dan.mandle.me September 2012 | |
# License: GPL 2.0 | |
import os | |
from gps import * | |
from time import * | |
import time | |
import threading | |
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 | |
# time stamp this shit yo | |
nowdate=$(date "+%d-%m-%y") | |
nowtime=$(date "+%H:%M:%S") | |
# stole this idea of using gpspipe, grep and awk from here: http://thomasloughlin.com/gpspipe-gps-client/ | |
gpsdata=$(gpspipe -w -n 10 | grep -m 1 lon) | |
lat=$(echo "$gpsdata" | jsawk ‘return this.lat’) | |
lon=$(echo "$gpsdata" | jsawk ‘return this.lon’) | |
gpsspeed=$(echo "$gpsdata" | jsawk ‘return this.speed’) | |
# runs my modified the speedtest-cli python script and uses tr instead of grep to remove some line feeds and change it to a comma to suit the csv |