Skip to content

Instantly share code, notes, and snippets.

Norbert L. Ruehl norbekaiser

Block or report user

Report or block norbekaiser

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@norbekaiser
norbekaiser / deviceQuery
Last active Aug 30, 2018
LXC Nvidia Passthroguh
View deviceQuery
./deviceQuery Starting...
CUDA Device Query (Runtime API) version (CUDART static linking)
Detected 1 CUDA Capable device(s)
Device 0: "GeForce GTX 1080"
CUDA Driver Version / Runtime Version 9.0 / 9.0
CUDA Capability Major/Minor version number: 6.1
Total amount of global memory: 8114 MBytes (8507752448 bytes)
@norbekaiser
norbekaiser / android-sdk-full-download.sh
Created Oct 20, 2017
Download All things from sdk manager
View android-sdk-full-download.sh
#!/bin/bash
ANDROID_SDK_TARGET_LOCATION=/opt/android-sdk
{ANDROID_SDK_TARGET_LOCATION}/tools/bin/sdkmanager --list | grep -v "Load" | grep -v "Path" | grep -v "\-\-\-" | grep -v "Packages" | cut -d"|" -f1 | xargs ${ANDROID_SDK_TARGET_LOCATION}/tools/bin/sdkmanager
@norbekaiser
norbekaiser / linux-download-android.sh
Last active Oct 20, 2017
[WIP] Download and install Android SDK / NDK Linux
View linux-download-android.sh
#!/bin/bash
ANDROID_SDK_DOWNLOAD_LINK="https://dl.google.com/android/repository/sdk-tools-linux-3859397.zip"
ANDROID_SDK_HASH="444e22ce8ca0f67353bda4b85175ed3731cae3ffa695ca18119cbacef1c1bea0"
ANDROID_SDK_TARGET_LOCATION="/opt/android-sdk"
GRADLE_DOWNLOAD_LINK="https://services.gradle.org/distributions/gradle-4.2.1-bin.zip"
GRADLE_TARGET_LOCATION="/opt/gradle"
ANDROID_SDK_MIN_VERSION=19
ANDROID_SDK_MAX_VERSION=26
#GRADLE_AREA
wget ${GRADLE_DOWNLOAD_LINK}
@norbekaiser
norbekaiser / console.out
Created Sep 19, 2016
delete this , "meh"
View console.out
Huhu gone
h1 ex
h2 ex
View tsusers.sh
#!/bin/bash
####PROGS
FIND=$(which find)
SORT=$(which sort)
TAIL=$(which tail)
GREP=$(which grep)
####ARGS
N_ONE="-n1"
N_FIVE="-n5"
TS_LOCATION="/var/lib/lxc/phunderbird1/rootfs/opt/teamspeak3-server_linux-amd64/logs/"
@norbekaiser
norbekaiser / lsblk
Created May 18, 2016
marvins lsblk
View lsblk
norbert@marvin:~$ lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 5,5T 0 disk
└─sda1 8:1 0 5,5T 0 part
└─md0 9:0 0 21,9T 0 raid6 /media/raid
sdb 8:16 0 5,5T 0 disk
└─sdb1 8:17 0 5,5T 0 part
└─md0 9:0 0 21,9T 0 raid6 /media/raid
sdc 8:32 0 5,5T 0 disk
└─sdc1 8:33 0 5,5T 0 part
View gist:b9eb1c8cbd75a7c6ede14c887e45f1af
Das Geschwister- und Liebespaar Jaime (Nikolaj Coster-Waldau) und Cersei (Lena Headey) Lannister versuchen derweil ihre Situation zu verbessern. - Das gefeierte, preisgekrönte Fantasyserien-Event über blutige Machtkämpfe der Königshäuser auf dem Kontinent Westeros.
@norbekaiser
norbekaiser / result.sh
Created Mar 7, 2016
Temperature Results of Sense hat, with correction via cpu temperature ( not very accurate)
View result.sh
norbert@raspberrypi:~ $ ./temp.py
Temperature(h): 22.962310791 C
Temperature(p): 0 C
Temperature(c): 30.4 C
Temperature: -7.43768920898
norbert@raspberrypi:~ $ ./temp.py
Temperature(h): 22.9989624023 C
Temperature(p): 22.9895839691 C
Temperature(c): 29.9 C
Temperature: 16.0885463715
@norbekaiser
norbekaiser / equations.c
Last active Nov 10, 2015
math body equations
View equations.c
#include <stdio.h>
#include <stdlib.h>
void gleichung_c(int z_k);
void gleichung_d(int z_k);
int till;
int main(int argc,const char** argv[]){
if(argc<2){
printf("%s [number of steps], [body of numer]{, [body of numer]...}\n",argv[0]);
View generate_sh
sudo mkdir -p /srv/sambafreigabe
sudo mkdir -p /srv/musik
sudo mkdir -p /srv/bilder
sudo mkdir -p /srv/videos
You can’t perform that action at this time.