This file contains 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
############################################################### | |
# Graph WLAN | |
############################################################### | |
dynamic.17.name=wifi_received | |
dynamic.17.source=/sys/class/net/wlan0/statistics/rx_bytes | |
dynamic.17.regexp=(.*) | |
dynamic.17.postprocess=$1*-1 | |
dynamic.17.rrd=DERIVE | |
dynamic.18.name=wifi_send |
This file contains 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
# SOURCE: https://www.youtube.com/watch?v=t5laKVNJd8U | |
# INSTALL: sudo apt-get install python3-picamera | |
# the tutorial used a Pi NoIR camera | |
# DOCS: https://www.raspberrypi.org/documentation/usage/camera/python/README.md | |
import picamera | |
# setup the camera such that it closes | |
# when we are done with it | |
print("About to take a picture. CHEESE!") |
This file contains 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 | |
DATE=$(date +"%Y-%m-%d_%H%M") | |
# TODO: if dir doen't exits mkdir | |
fswebcam -r 1280x720 --no-banner /home/pi/webcam/$DATE.jpg | |
# run: ./fswebcam.sh |
This file contains 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
wifi.setmode(wifi.STATION) | |
wifi.sta.config("SSID","password") | |
print(wifi.sta.getip()) |
This file contains 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
// Libs | |
import {createStore} from 'redux' | |
// STORE | |
// .createStore(reducer, [preloadedState], [enhancer]) | |
// .createStore(function(state, action) {}) | |
// let's you create a store that holds the complete state tree of your app. there should only be a signle store in your app | |
const store = createStore(function(state, action) { | |
// make a change to the state based on the action |
This file contains 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
const App = (props) => { | |
return ( | |
// code goes here | |
<div> | |
<p>My name is {props.name}. I am {props.age} years old.</p> | |
</div> | |
) | |
} |
This file contains 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
// define a reducer | |
const reducer = function(state, action) { | |
if (action.type === 'INC') { | |
return state + action.payload | |
} else if (action.type === 'DEC') { | |
return state - action.payload | |
} | |
return state | |
} |
This file contains 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
# .htaccess template | |
# http://www.htaccesseditor.com/en.shtml#a_extension | |
# Default page | |
# (in order of first specified) | |
############### | |
DirectoryIndex index.html index.php | |
# Enable Rewrites |
This file contains 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 following three settings limit the maximum size of data that can be submitted and handled by PHP | |
; One user also said that post_max_size and memory_limit need to be larger than upload_max_filesize. | |
post_max_size = 128M | |
memory_limit = 128M | |
upload_max_filesize = 64M ; e.g. when importing databases, general file uploads |
This file contains 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
// $Font Variables | |
$font-body: 'Open Sans', Tahoma, sans-serif; | |
$font-headings: 'Brandon Grotesque', Georgia, serif; | |
$font-code: Consolas, Monaco, Lucida Console, monospace; | |
// $Color Variables | |
$color-brand-pink: #F17B91; | |
$color-brand1: #F599C0; | |
$color-brand2: #59CBF5; |