Skip to content

Instantly share code, notes, and snippets.

View robertely's full-sized avatar
💭
🍕

Robert Ely robertely

💭
🍕
View GitHub Profile
{"data/dPonl8SQKP_7":{"showDetails":true,"units":"us","latitude":39.8028,"longitude":-105.0875,"name":"Arvada"},"widget/default-time":{"id":"default-time","key":"widget/time","order":1,"display":{"position":"bottomLeft"}},"data/default-time":{"mode":"digital","hour12":true,"showDate":true,"showMinutes":true,"showSeconds":false,"showDayPeriod":false,"timeZone":null},"widget/default-greeting":null,"focus":false,"widget/mCnF_qmd5IaD":{"id":"mCnF_qmd5IaD","key":"widget/ipInfo","order":0,"display":{"position":"topRight","fontSize":14}},"widget/dPonl8SQKP_7":{"id":"dPonl8SQKP_7","key":"widget/weather","order":3,"display":{"position":"bottomRight","fontWeight":700}},"widget/Eimx9yxc7ecK":null,"widget/1BbnYSCK6H5I":null,"data/mCnF_qmd5IaD":{"ip":"Fetching IP data...","city":"","country":"","displayCity":false,"displayCountry":false,"refreshInterval":5},"background":{"id":"a3M86tNY2rzj","key":"background/unsplash","display":{"blur":0,"luminosity":-0.2}},"data/a3M86tNY2rzj":{"by":"search","collections":"","featured":tr
@robertely
robertely / old.p10k.zsh
Last active July 12, 2024 17:37
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 ([email protected])
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