Skip to content

Instantly share code, notes, and snippets.

View noderat's full-sized avatar

Chris Coggburn noderat

View GitHub Profile
@noderat
noderat / pi-cpu-stress.sh
Created May 14, 2020 19:45 — forked from geerlingguy/pi-cpu-stress.sh
Raspberry Pi CPU temperature and throttling test script
#!/bin/bash
# Raspberry Pi stress CPU temperature measurement script.
# Variables.
test_run=1
test_results_file="/home/pi/cpu_temp_$test_run.log"
stress_length="10m"
# Verify stress-ng is installed.
if ! [ -x "$(command -v stress-ng)" ]; then
@noderat
noderat / init.zsh
Last active September 12, 2023 19:47
zplug Plugins
# General ZSH Plugins
zplug "zsh-users/zsh-completions"
zplug "zsh-users/zsh-syntax-highlighting", from:github
zplug "zsh-users/zsh-history-substring-search", from:github, defer:2
zplug "djui/alias-tips", from:github
# SSH
zplug "hkupty/ssh-agent", from:github
@noderat
noderat / line.length
Created October 11, 2016 00:47
Line Length
vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv|vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv|

Keybase proof

I hereby claim:

  • I am noderat on github.
  • I am noderat (https://keybase.io/noderat) on keybase.
  • I have a public key whose fingerprint is EA8F 9F42 D7AE D62E 7541 26C7 1115 BF03 CE6E 64F3

To claim this, I am signing this object:

@noderat
noderat / README.md
Last active November 3, 2015 13:49 — forked from jonathantneal/README.md
SASS @font-face mixin

Font Face

A mixin for writing @font-face rules in SASS.

Usage

Create a font face rule. Embedded OpenType, WOFF2, WOFF, TrueType, and SVG files are automatically sourced.

@include font-face(Samplino, fonts/Samplino);
@noderat
noderat / disable_hfs_plus_journal_linux.c
Created September 23, 2015 19:24
Disable Journaling on HFS+ Volumes from Linux
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/mman.h>
#include <fcntl.h>
#include <byteswap.h>