Skip to content

Instantly share code, notes, and snippets.

View robertely's full-sized avatar
💭
🍕

Robert Ely robertely

💭
🍕
View GitHub Profile
@robertely
robertely / .p10k.zsh
Last active April 8, 2024 20:36
Powerlevel10k configuration - Bootstrap with: gh gist view -r 8c4b23c6e795d48e32e1ea379e8fd50f -f .p10k.zsh | cat > .p10k.zsh
# Generated by Powerlevel10k configuration wizard on 2022-05-31 at 14:28 MDT.
# Based on romkatv/powerlevel10k/config/p10k-classic.zsh, checksum 7197.
# Wizard options: nerdfont-complete + powerline, small icons, classic, unicode, darkest,
# angled separators, sharp heads, flat tails, 1 line, compact, many icons, concise,
# instant_prompt=verbose.
# Type `p10k configure` to generate another config.
#
# Config for Powerlevel10k with classic powerline prompt style. Type `p10k configure` to generate
# your own config based on it.
@robertely
robertely / playlist.sh
Created July 17, 2020 22:17 — forked from scarlson/playlist.sh
Bash script to create .m3u playlist files for all mp3s in subdirectories
#!/bin/bash
#
# bash script to create playlist files in music subdirectories
#
# Steve Carlson (stevengcarlson@gmail.com)
find . -type d |
while read subdir
do
rm -f "$subdir"/*.m3u
@robertely
robertely / iterm2.zsh
Last active January 7, 2019 23:31 — forked from wadey/iterm2.zsh
Change iTerm2 tab color when using SSH
# Usage:
# source iterm2.zsh
# iTerm2 window/tab color commands
# Requires iTerm2 >= Build 1.0.0.20110804
# http://code.google.com/p/iterm2/wiki/ProprietaryEscapeCodes
tab-color() {
echo -ne "\033]6;1;bg;red;brightness;$1\a"
echo -ne "\033]6;1;bg;green;brightness;$2\a"
echo -ne "\033]6;1;bg;blue;brightness;$3\a"
#include <ESP8266WiFi.h>
#include <Wire.h>
#include <SPI.h>
#include <Adafruit_Sensor.h>
#include <Adafruit_BME280.h>
extern "C" {
#include "user_interface.h"
package main
import (
"bufio"
"fmt"
"os"
"os/exec"
"github.com/kr/pty"
"golang.org/x/crypto/ssh/terminal"
#! /usr/bin/env ruby
# frozen_string_literal: true
#
# check-raid
#
# DESCRIPTION:
# Checks the status of all virtual drives of a particular controller
#
# MegaCli/MegaCli64 requires root access
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
mkdir -p centos/centos-vault
# The Vault
rsync -amL --progress rsync://archive.kernel.org/centos-vault/centos/6.7 centos/centos-vault
rsync -amL --progress rsync://archive.kernel.org/centos-vault/centos/6.8 centos/centos-vault
rsync -amL --progress rsync://archive.kernel.org/centos-vault/centos/6.9 centos/centos-vault
rsync -amL --progress rsync://archive.kernel.org/centos-vault/centos/7.2.1511 centos/centos-vault
rsync -amL --progress rsync://archive.kernel.org/centos-vault/centos/7.3.1611 centos/centos-vault

Config Files

config.txt

# For more options and information see
# http://www.raspberrypi.org/documentation/configuration/config-txt.md
# Some settings may impact device functionality. See link above for details

# uncomment if you get no picture on HDMI for a default "safe" mode
#hdmi_safe=1
@robertely
robertely / build-go1.8.linux-arm7.sh
Last active October 9, 2020 21:52
Bash script for building golang 1.8 for the NTC CHIP, or any other arm 7 device.
#!/bin/bash
#######################
# Downloads and builds golang.
# Does not install godoc, you may want to `go get` that after install.
# To install:
# sudo tar -C /usr/local -xzfv go1.8.linux-arm7.tar.gz
# export PATH=$PATH:/usr/local/go/bin