Skip to content

Instantly share code, notes, and snippets.

View dramaturg's full-sized avatar

Sebastian Krohn dramaturg

View GitHub Profile
#!/usr/bin/env ruby
# Aside from removing Ruby on Rails specific code this is taken verbatim from
# mislav's git-deploy (http://github.com/mislav/git-deploy) and it's awesome
# - Ryan Florence (http://ryanflorence.com)
#
# Install this hook to a remote repository with a working tree, when you push
# to it, this hook will reset the head so the files are updated
if ENV['GIT_DIR'] == '.'
@tony4d
tony4d / p4merge4git.md
Created August 24, 2012 19:00
Setup p4merge as a visual diff and merge tool for git
@mruediger
mruediger / USB Bootstick.md
Last active December 8, 2020 16:09
USB Bootstick for multiple isos using UEFI and BIOS

This small Howto is about setting up a USB stick to boot different iso files using grub's loopback capability. I only tested this on Fedora, but it should also work on other Linux distributions.

First, lets find the USB Stick

lsblk

This should give you a list of all your block devices. My stick is found as /dev/sdc

Then we need to partition the USB stick using GPT.

  • we will use gdisk sudo gdisk /dev/USBDEV
  • create a new empty partition table by pressing o
@brpaz
brpaz / redis.sh
Last active August 29, 2015 14:10 — forked from pbrisbin/redis.sh
Redis cheat shet #redis
# Connect to a server
redis-cli server
# Make an insert
set key value
# Make multiple insert
@motleytech
motleytech / casper.md
Created June 21, 2016 01:00
Deal with casper

Unofficial Guide to JAMF Casper

This page documents the external/internal behavior of Casper.

Files

Casper installed itself into the following directories:

  • /Library/Application Support/JAMF
    • ManagementFrameworkScripts - a set of scripts that runs on certain events
      • StartupScript.sh - Activated when jamf is started
      • loginhook.sh - Activated when user login
  • logouthook.sh - Activated when user logout
@nmz787
nmz787 / main.py
Last active September 6, 2019 21:47
Half-decent LED-PWM and capacitive-sense GPIO coroutines (in micropython, on GHI Electronics G30TH -- essentiall Nucleo F401 but with different pins and pin names)
import pyb
from pyb import Timer
# timer 2 will be created with a frequency of 10 kHz
tim=pyb.Timer(4,freq=10000);
# attach the timer to the LED GPIO, turning the brightness OFF to begin
tchannel = tim.channel(3, Timer.PWM, pin=pyb.Pin.board.JP32, pulse_width_percent=0)
# setup comm channel, for debug prints
# uart = pyb.UART(2, 9600) # init with given baudrate
@rain-1
rain-1 / minikanren.scm
Created January 6, 2019 17:49
minikanren.scm - based off orchid-hybrid mirukanren. works in Chez
;; utils
(define (assp p l)
(if (null? l)
#f
(if (p (caar l))
(car l)
(assp p (cdr l)))))
@weshofmann
weshofmann / README.md
Last active June 6, 2024 19:01
QNAP NAS: Nvidia Hardware Transcoding in Plex and Emby Docker Containers

QNAP NAS: Nvidia Hardware Transcoding in Plex and Emby Docker Containers

Background

Last week I added an Nvidia Quadro P620 to my QNAP TVS-872XT NAS. For the last few days, I've been trying to get both Plex and Emby docker containers to actually use the Nvidia card for encoding and decoding media streams.

The instructions included in the linuxserver/plex DockerHub container indicate that to use Nvidia hardware decoding, you must first install the docker-nvidia2 runtime from Nvidia. Since QNap

@Sebazzz
Sebazzz / ACrealityCR6Issue.md
Last active March 10, 2024 08:46
Creality CR-6 issue list (including listing of motherboard issues)

Creality CR-6 issue list

This is an initiative to create an overview of the issues found with the Creality CR-6 SE.

As of this writing (2020-09-19) the large number of the motherboard issues have not been publicly acknowledged. Hopefully this overview forces Creality to acknowledge the issues with the Creality CR-6 SE leveling free 3d printer.

Update 2021-07-17 from Creality

According to Creality all issues should be resolved in the newer models:

Here are the improvements we did as below: