Skip to content

Instantly share code, notes, and snippets.

@jmtatsch
jmtatsch / jupyter
Last active July 31, 2019 15:42 — forked from lambdalisue/jupyterhub
A service (init.d) script for jupyter
#! /bin/sh
### BEGIN INIT INFO
# Provides: jupyter
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start jupyter
# Description: This file should be used to construct scripts to be
# placed in /etc/init.d.
@jmtatsch
jmtatsch / maxPerf.sh
Created January 8, 2016 19:51
Nvidia's Max Performance Script for Tegra X1
#!/bin/sh
# turn on fan for safety
echo "Enabling fan for safety..."
if [ ! -w /sys/kernel/debug/tegra_fan/target_pwm ] ; then
echo "Cannot set fan -- exiting..."
fi
echo 255 > /sys/kernel/debug/tegra_fan/target_pwm
echo 0 > /sys/devices/system/cpu/cpuquiet/tegra_cpuquiet/enable