Skip to content

Instantly share code, notes, and snippets.

View orgcontrib's full-sized avatar
:octocat:
contributing

Org Contrib orgcontrib

:octocat:
contributing
View GitHub Profile
@orgcontrib
orgcontrib / sdlna.json
Last active December 1, 2023 04:33
sdlna-scoop-manifest
{
"version": "v1.0",
"license": "BSD 2-Clause",
"url": "https://github.com/nmaier/simpleDLNA/releases/download/v1.0/simpledlna-1.0.msi",
"homepage": "http://nmaier.github.io/simpleDLNA/",
"hash": "b079dbad0719f678c1b01a302f26e2d7c6267a5c36d91795e2926d994619ccef",
"bin": "sdlna.exe"
}
@orgcontrib
orgcontrib / which_interpreter_ext
Last active November 3, 2022 19:08
which $SHELL extended (src=https://bit.ly/3DDhQSt)
'echo' +"'\
@ goto dos \
[exit[if {[lsearch -exact [package names] Expect]>=0} {puts expect\ [\
package require Expect]\ (Tcl\ [info patchlevel])} elseif {[lsearch -exact [\
package names] Tk]>=0} {puts wish\ (Tcl\ [info patchlevel],\ Tk\ [package \
require Tk])} else {puts tcl\ [info patchlevel]}]]' >/dev/null ' {\">/dev/null \
">"/dev/null" +"\'";q='''=.q,';q=%[\"
echo ">/dev/null;status=0;@ {status=1};*=(" '$' ");~ $status 1&&{e='"\
"';eval catch $2 ^'&version {eval ''echo <='^ $2 ^'&version''}';exit};e='"\
"';if (eval '{let ''a^~a''} >[2] /dev/null'){e='"\
@orgcontrib
orgcontrib / index.html
Created August 31, 2022 15:44
Visualising a CSV file with Chart.js (basic)
<div id="wrapper">
<canvas id="chart"></canvas>
</div>
@orgcontrib
orgcontrib / chjdk
Last active November 3, 2022 18:17 — forked from trmaphi/changeJDK.bash
[Change system wide java version on Mac OS] Inspire by a stackoverflow answer https://stackoverflow.com/a/44169445/6730571 #bash #mac
#!/usr/bin/env bash
JDKS_DIR="/Library/Java/JavaVirtualMachines"
JDKS=( $(ls ${JDKS_DIR}) )
JDKS_STATES=()
# Map state of JDK
for (( i = 0; i < ${#JDKS[@]}; i++ )); do
if [[ -f "${JDKS_DIR}/${JDKS[$i]}/Contents/Info.plist" ]]; then
JDKS_STATES[${i}]=enable
@orgcontrib
orgcontrib / nsschk.c
Created January 27, 2022 23:33
nsschk.c
/* Compile: gcc -o nsschk nsschk.c -ldl */
/* Blog/info: http://tiny.cc/mozbigsig */
#include <stdio.h>
#include <stdlib.h>
#include <dlfcn.h>
void bail(char *msg) {
fprintf(stderr,"%s\n",msg);
exit(1);
@orgcontrib
orgcontrib / rpicam_legacy_web_streaming.py
Created November 22, 2021 21:35
RPi Camera (Legacy) Web Streaming
# Original blog post https://randomnerdtutorials.com/video-streaming-with-raspberry-pi-camera/
# Why Legacy? https://www.raspberrypi.com/news/bullseye-camera-system/
# Alternative https://www.tomshardware.com/how-to/stream-live-video-raspberry-pi
# See also https://github.com/jacksonliam/mjpg-streamer
##############################################################################################
# Web streaming example
# Source code from the official PiCamera package
# http://picamera.readthedocs.io/en/latest/recipes2.html#web-streaming
import io
#!/usr/bin/env bash
#
# Author: Markus (MawKKe) ekkwam@gmail.com
# Date: 2018-03-19
#
#
# What?
#
# Linux dm-crypt + dm-integrity + dm-raid (RAID1)
#
"Access public repositories" genügt als Permission
  • Access Token verschlüsseln, auf dem Client
# on macosx
@orgcontrib
orgcontrib / smartctl.ST8000AS0002.txt
Created February 28, 2021 11:37
sudo smartctl -a -d sat /dev/sda > smartctl.ST8000AS0002.txt
smartctl 7.2 2021-01-17 r5171 [x86_64-linux-5.10.18-200.fc33.x86_64] (local build)
Copyright (C) 2002-20, Bruce Allen, Christian Franke, www.smartmontools.org
=== START OF INFORMATION SECTION ===
Model Family: Seagate Archive HDD (SMR)
Device Model: ST8000AS0002-1NA17Z
Serial Number: Z8403AYG
LU WWN Device Id: 5 000c50 07b1008d0
Firmware Version: AR13
User Capacity: 8,001,563,222,016 bytes [8.00 TB]
@orgcontrib
orgcontrib / smartctl-a.LaCie1TB.txt
Created February 15, 2021 05:56
sudo smartctl -a -d sat /dev/sda
smartctl 7.2 2021-01-17 r5171 [x86_64-linux-5.10.15-200.fc33.x86_64] (local build)
Copyright (C) 2002-20, Bruce Allen, Christian Franke, www.smartmontools.org
=== START OF INFORMATION SECTION ===
Model Family: Seagate Samsung SpinPoint M8 (AF)
Device Model: ST1000LM024 HN-M101MBB
Serial Number: S2ZUJ9BD705411
LU WWN Device Id: 5 0004cf 20aaf0f70
Firmware Version: 2AR20002
User Capacity: 1,000,204,886,016 bytes [1.00 TB]