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 | |
cd ~/PATH/TO/DSDPLUS/ | |
id=$(pactl list sink-inputs | grep -e 'application.name = "GQRX"' -e 'Sink Input #' | grep 'application.name = "GQRX"' -B1 | head -n1 | sed -e 's/Sink Input #//g') | |
unmute(){ | |
pactl set-sink-input-mute $id 0 | |
pactl unload-module $TMP | |
} |
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 | |
band=0 | |
case "$1" in | |
160) band=1836600; ds=2;; | |
80) band=3592600; ds=2;; | |
60) band=5287200; ds=2;; | |
40) band=7038600; ds=2;; | |
30) band=10138700; ds=2;; | |
20) band=14095600; ds=2;; |
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
/* | |
* install this plugin for rhythmbox: | |
* https://github.com/pcarranza/rhythmweb2 | |
*/ | |
#include <ArduinoJson.h> | |
#include <ESP8266WiFi.h> | |
#include <SPI.h> | |
#include <Wire.h> | |
#include <Adafruit_GFX.h> |
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
// thx @trollkopp for helping me optimizing the code | |
#include <SPI.h> | |
#include <Wire.h> | |
#include <Adafruit_GFX.h> | |
#include <Adafruit_SSD1306.h> | |
// ARDUINO | |
#define OLED_MOSI 11 | |
#define OLED_CLK 12 |
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 | |
id=$(pactl list sink-inputs | grep -e 'application.name = "GQRX"' -e 'Sink Input #' | grep 'application.name = "GQRX"' -B1 | head -n1 | sed -e 's/Sink Input #//g') | |
unmute(){ | |
pactl set-sink-input-mute $id 0 | |
} | |
trap "unmute" INT |
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 | |
modprobe -r ec_sys | |
modprobe ec_sys write_support=1 | |
on="\x8a" | |
off="\x0a" | |
led(){ | |
echo -n -e $1 | dd of="/sys/kernel/debug/ec/ec0/io" bs=1 seek=12 count=1 conv=notrunc 2> /dev/null |
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 | |
# restore with the following command: | |
# gunzip --stdout <filename>.img.gz | dd bs=10M of=/dev/sdX | |
# pv(1) is optional and provides a progress bar | |
# just remove it from the pipe, when you don't want it | |
DATE=$(date +"%Y-%m-%d_%H-%M") | |
GREEN='\033[1;32m' |
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/sh | |
IPeth0=$(ifconfig eth0 | grep 'inet addr:' | cut -d: -f2 | awk '{ print $1}') | |
IPwlan0=$(ifconfig wlan0 | grep 'inet addr:' | cut -d: -f2 | awk '{ print $1}') | |
IP6eth0=$(ifconfig eth0 | awk '/inet6/{print $3}' | grep -v ^::1 | grep -v ^fe80) | |
IP6wlan0=$(ifconfig wlan0 | awk '/inet6/{print $3}' | grep -v ^::1 | grep -v ^fe80) | |
if [ -z "$IPeth0" ] | |
then |
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 | |
cat $1 | grep '^IRA:' > $1_positions.csv | |
sed -i -e 's/^.\+sat:/sat:/' -e 's/\( RAI\:.\+\)\|\(sat:\)\|\(beam:\)\|\(pos=(\)\|\()\)\|\(alt=\)\|\(+\)//g' -e 's%/%;%' -e 's/ /;/g' -e '/^00;00/d' -e 's/$/000/g' -e '/[0-9]\+;[0-9]\+;\([0-9]\+\|-[0-9]\+\).[0-9]\+;\([0-9]\+\|-[0-9]\+\).[0-9]\+;[0-9]\+/!d' $1_positions.csv | |
awk -F ';' '($5<=100000){print}' $1_positions.csv > $1_positions_spotbeams.csv | |
awk -F ';' '($5>100000){print}' $1_positions.csv > $1_positions_satellites.csv | |
sed -i '1 i\satellite;beam;latitude;longitude;altitude' $1_positions*.csv |
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
#include <stdio.h> | |
int main(int argc, char **argv) | |
{ | |
int i=0,j=0,temp=0,mod=0,flag=0; | |
printf("[0] +\n[1] *\nselect operator: "); | |
scanf("%d", &flag); | |
NewerOlder