Skip to content

Instantly share code, notes, and snippets.

View slavaaaaaaaaaa's full-sized avatar
💭
🦙

Slava I. Maslennikov slavaaaaaaaaaa

💭
🦙
View GitHub Profile
@slavaaaaaaaaaa
slavaaaaaaaaaa / sleepy vikings - twin peaks
Last active November 18, 2017 06:06
Lyrics of Twin Peaks by Sleepy Vikings on They Will Find You Here
in a dream it was summer
and i buried my head into
the back of your neck
the sun was high and we were
shadowless
drinking cold cokes on the front steps
i kept a telescope, i watched the skies for rain
loaded my pistol, promised "nothing ever has
to change"
1. No leftovers
2. Leftovers' havers lose
3. Others win
4. Submit your freedom to a YouTube recording
Prize: a pack of noodles
"""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.
________________________________________
/ 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 |
@slavaaaaaaaaaa
slavaaaaaaaaaa / 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
# /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)
#!/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..."
#!/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
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