This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
#-*- coding: ISO-8859-1 -*- | |
# collectd-notify: send notifications to collectd from the command line | |
# | |
# Requires collectd to be configured with the unixsock plugin, like so: | |
# | |
# LoadPlugin unixsock | |
# <Plugin unixsock> | |
# SocketFile "/var/run/collectd-unixsock" | |
# SocketPerms "0775" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Homebrew build logs for ant on macOS 10.15.3 | |
Build date: 2020-02-10 06:01:06 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
curl --location https://github.com/raspberrypi/firmware/raw/master/boot/bcm2710-rpi-3-b.dtb > /boot/bcm2710-rpi-3-b.dtb | |
curl --location https://github.com/RPi-Distro/firmware-nonfree/raw/54bab3d6a6d43239c71d26464e6e10e5067ffea7/brcm80211/brcm/brcmfmac43430-sdio.bin > /usr/lib/firmware/brcm/brcmfmac43430-sdio.bin | |
curl --location https://github.com/RPi-Distro/firmware-nonfree/raw/54bab3d6a6d43239c71d26464e6e10e5067ffea7/brcm80211/brcm/brcmfmac43430-sdio.txt > /usr/lib/firmware/brcm/brcmfmac43430-sdio.txt | |
echo "Reboot to ensure the dtb is initialized and kernel knows about the hardware in place." | |
echo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
sudo find / -name StartJMRI -type f -exec sed -i "" -e 's/\/dev\/tty\\\.\*//' -e 's/\/dev\/cu\\\.\*//' {} \; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
INSTRUCTIONS="-- This line, and those below, will be ignored. -- | |
Add a business case. The business case should be described briefly in a single | |
line on the first line, followed by a more detailed description on the | |
following lines." | |
CONTENT="" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(document).ready(function() { | |
$('.gist').each(function(i) { | |
var gistUrl = $(this).text(); | |
var fileStart = gistUrl.indexOf('?'); | |
if (fileStart != -1) { | |
var file = gistUrl.substring(fileStart + 1); | |
var fileEnd = file.indexOf('#'); | |
if (fileEnd != -1) { | |
file = file.substring(0, fileEnd); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
INSTRUCTIONS="-- This line, and those below, will be ignored. -- | |
Add a business case. The business case should be described briefly in a single | |
line on the first line, followed by a more detailed description on the | |
following lines." | |
CONTENT="" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Starting from a Fresh CentOS 6.2 Linode | |
### Enable the native kernel to boot from pvgrub | |
### It will autoconfigure itself with each yum update. | |
### This is adapted from a previous script for CentOS 5.5 found here: | |
### http://library.linode.com/assets/542-centos5-native-kernel-selinux-enforcing.sh | |
### Provided via the linode wiki | |
### http://library.linode.com/linode-platform/custom-instances/pv-grub-howto#sph_centos-5 | |
### Provided without warranty, although since it should only be run | |
### on first box build if your box gets broken simply rebuild it |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# create jenkins group | |
NEXT_GID=$((`dscl /Local/Default list /Groups gid | awk '{ print $2 }' | sort -n | grep -v ^[5-9] | tail -n1` + 1)) | |
sudo dscl /Local/Default create /Groups/jenkins | |
sudo dscl /Local/Default create /Groups/jenkins PrimaryGroupID $NEXT_GID | |
sudo dscl /Local/Default create /Groups/jenkins Password \* | |
sudo dscl /Local/Default create /Groups/jenkins RealName 'Jenkins Node Service' | |
# create jenkins user | |
NEXT_UID=$((`dscl /Local/Default list /Users uid | awk '{ print $2 }' | sort -n | grep -v ^[5-9] | tail -n1` + 1)) | |
sudo dscl /Local/Default create /Users/jenkins |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (BOOL)serialPortManager:(ORSSerialPortManager *)manager shouldAddSerialPort:(ORSSerialPort *)serialPort { | |
CFMutableDictionaryRef usbProperties = 0; | |
io_object_t device = 0; | |
io_iterator_t iterator = 0; | |
BOOL add = NO; | |
if (KERN_SUCCESS == IORegistryEntryCreateIterator(serialPort.device, kIOServicePlane, kIORegistryIterateRecursively + kIORegistryIterateParents, &iterator)) { | |
while ((device = IOIteratorNext(iterator))) { | |
if (KERN_SUCCESS == IORegistryEntryCreateCFProperties(device, &usbProperties, kCFAllocatorDefault, kNilOptions)) { | |
NSUInteger vendorId = 0, productId = 0; | |
CFTypeRef reference; |
NewerOlder