apt-get install arduino arduino-core
# add necessary usergroups relogin or restart
arduino
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
function is_installed() { | |
local installed=$(dpkg -s "$1" 2>&1 | grep 'install ok installed') | |
if [ "" == "$installed" ] ; then | |
return 1 | |
fi | |
return 0 | |
} | |
function require() { | |
UNAME="$(uname)" |
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 | |
# | |
# @author: Peter Kiss <[email protected]> | |
# | |
# this script reads and saves the humidity and temperature sensor data to an | |
# sqlite database database | |
# | |
readonly SENSORS=( /dev/ttyACM0 ) | |
readonly TEMPERATURE_DB_FILE="temperature.sqlite.db" |
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
// ==UserScript== | |
// @name Gmail fapad | |
// @namespace http://*.google.com | |
// @version 0.1 | |
// @description enter something useful | |
// @author [email protected] | |
// @match http*://mail.google.com/* | |
// ==/UserScript== | |
// @ REM grant unsafeWindow | |
// @ REM require http://code.jquery.com/jquery-latest.js |
$ git config --global core.preloadindex true $ git config --global core.fscache true $ git config --global gc.auto 256
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
var printFunctions = function(myObject){ | |
var funcs = [] | |
for(var name in myObject) { | |
if(typeof myObject[name] === 'function') { | |
funcs.push(name) | |
} | |
} | |
console.info(push.sort()); | |
} |
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
var replaceDiacritics = function (string) { | |
var diacritics = [ | |
/[\300-\306]/g, /[\340-\346]/g, // A, a | |
/[\310-\313]/g, /[\350-\353]/g, // E, e | |
/[\314-\317]/g, /[\354-\357]/g, // I, i | |
/[\322-\330]/g, /[\362-\370]/g, // O, o | |
/[\331-\334]/g, /[\371-\374]/g, // U, u | |
/[\321]/g, /[\361]/g, // N, n | |
/[\307]/g, /[\347]/g, // C, c | |
]; |
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
{ | |
"Kukorica szirup": 115, | |
"Sör": 110 , | |
"Szőlőcukor": 100 , | |
"Cukor szirup": 100 , | |
"Sült krumpli": 95 , | |
"Maltodextrin": 95 , | |
"Burgonya keményitő": 95 , | |
"Burgonya, kemencében sütött": 95 , | |
"Rizs liszt": 95 , |
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
# use with argument $1 - proxy auto discovery address | |
function getproxies() { | |
PROXIES=( $(curl $1 2>/dev/null | perl -ne 'if(/PROXY ([^";]*)/g){ print "$1\n";}')) | |
for proxy in ${PROXIES[*]} ; do | |
if "curl" -s -x $proxy --connect-timeout 5 https://github.com &> /dev/null ; then | |
echo "$proxy : OK" | |
else | |
echo "$proxy : not working $?" | |
fi | |
done |