Skip to content

Instantly share code, notes, and snippets.

View smaslennikov's full-sized avatar
💭
i hereby identify as your excellency

Slava Maslennikov smaslennikov

💭
i hereby identify as your excellency
View GitHub Profile
#!/bin/bash
echo "----------------------"
date
temp=$(/opt/vc/bin/vcgencmd measure_temp | awk -F"=" '{print $2}' | awk -F"'" '{print $1}')
echo "temp.value $temp"
for volt in core sdram_c sdram_i sdram_p
do
voltage=$(/opt/vc/bin/vcgencmd measure_volts $volt | awk -F"=" '{print $2}' | tr -d "V")
echo "volt$volt.value $voltage"
done
#!/bin/bash
function dagd {
if [ $1 -eq '-6' ]; then
curl -m 2 -s "http://da.gd/$2"
else
curl -m 2 -s -4 "http://da.gd/$2?strip"
fi
}
function remote_network {
# set some magical temporary stuff
#!/bin/bash
LOCATION=/home/pi/vids
PART=/
while :; do
TEMP=$(/opt/vc/bin/vcgencmd measure_temp)
DATE=$(date +"%m-%d-%y-%T")
echo "! $DATE-$TEMP.h264 starting..."
sudo raspivid -t 1200000 -o $LOCATION/$DATE-$TEMP.h264
#!/bin/bash
LOCATION=/home/pi/vids
PART=/home
USB=0
while :; do
TEMP=$(/opt/vc/bin/vcgencmd measure_temp)
DATE=$(date +"%m-%d-%y-%T")
echo "! $DATE-$TEMP.h264 starting..."
#!/bin/bash
LOCATION=/home/pi/vids
PART=/home
USB=0
while :; do
TEMP=$(/opt/vc/bin/vcgencmd measure_temp)
DATE=$(date +"%m-%d-%y-%T")
echo "! $DATE-$TEMP.h264 starting..."
# /etc/skel/.bashrc
if [[ $- != *i* ]] ; then
# Shell is non-interactive. Be done now!
return
fi
function _foreground_calc {
# reject these colors for being too dark
local reject=([0]=a [16]=a [17]=a [18]=a [19]=a [232]=a [233]=a [234]=a [235]=a [236]=a [237]=a [238]=a)
@smaslennikov
smaslennikov / E34 OBC codes
Last active November 30, 2018 20:59
E34 OBC codes
Getting into the Test Codes:
============================
Push OBC buttons 1000 and 10 together. You will see the word Test. By pressing a combination of the 10 and 1's you can enter Test Codes from 1 to 21. After entering the number press R/S and you will get a continuous display of the test function. To cancel, just press any of the OBC function keys.
List of Available Tests:
========================
Test Number Description
1 Display Test (all LCDs and LEDs activate)
2 Current Consumption in litres / 100 km
3 Current Consumption in litres / hour
________________________________________
/ Q: How many hardware engineers does it \
| take to change a light bulb? A: None. |
| We'll fix it in software. |
| |
| Q: How many system programmers does it |
| take to change a light bulb? A: None. |
| The application can work around it. |
| |
| Q: How many software engineers does it |
"""Profession: "Security" Engineer
[08:00] Wake up
[09:05] Arrive at work a little after 9 to fight the power
[09:15] Coffee. The daily pilgrimage to the Mr. Coffee is the highlight of my day.
[09:25] Go to meeting scheduled by demon. I don't need to be in the meeting and nod my head whenever they look at me.
[10:05] Check email to find a customer figured out my email and started emailing me on how to figure out their wifi password. This is their 5th time emailing me despite having forwarded them to customer support.
1. No leftovers
2. Leftovers' havers lose
3. Others win
4. Submit your freedom to a YouTube recording
Prize: a pack of noodles