Skip to content

Instantly share code, notes, and snippets.

View gtallen1187's full-sized avatar
🤪

Greg Allen gtallen1187

🤪
View GitHub Profile
@gtallen1187
gtallen1187 / keybase-gpg-github.md
Created November 8, 2021 05:15
Using Keybase PGP key with GitHub

Set up Keybase.io, GPG & Git to sign commits on GitHub

This is a step-by-step guide on how to create a GPG key on keybase.io, adding it to a local GPG setup and use it with Git and GitHub.

Although this guide was written for macOS, most commands should work in other operating systems as well.

There's a video published by Timothy Miller explaining some parts of this guide. Discussion on Hacker News.

Note: If you don't want to use Keybase.io, follow [this guide][1] instead. For manually transferring keys to different hosts, check out this [answer on Stack Overflow][2].

@gtallen1187
gtallen1187 / macShowHiddenFiles.sh
Created November 7, 2021 18:02
script to ensure all hidden files are visible in finder
defaults write com.apple.Finder AppleShowAllFiles true
killall Finder
@gtallen1187
gtallen1187 / pnau.md
Last active May 28, 2023 01:42
list of awesome music videos for the homie
@gtallen1187
gtallen1187 / mv.sh
Created April 14, 2020 22:25 — forked from premek/mv.sh
Rename files in linux / bash using mv command without typing the full name two times
# Put this function to your .bashrc file.
# Usage: mv oldfilename
# If you call mv without the second parameter it will prompt you to edit the filename on command line.
# Original mv is called when it's called with more than one argument.
# It's useful when you want to change just a few letters in a long name.
#
# Also see:
# - imv from renameutils
# - Ctrl-W Ctrl-Y Ctrl-Y (cut last word, paste, paste)
@gtallen1187
gtallen1187 / keybase.md
Created March 20, 2020 03:53 — forked from webframp/keybase.md
Signing git commits on github using keybase.io gpg key

Probably one of the easiest things you'll ever do with gpg

Install Keybase: https://keybase.io/download and Ensure the keybase cli is in your PATH

First get the public key

keybase pgp export | gpg --import

Next get the private key

shell
update_engine_client –channel=stable-channel -update
@gtallen1187
gtallen1187 / complex_leaflet.html
Created November 12, 2019 14:45
More complex leaflet example
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name='viewport' content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no' />
<title>011ef5d06b7e4d3fb08d1513664b9433.vrt</title>
<!-- Leaflet -->
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.7.5/leaflet.css" />
@gtallen1187
gtallen1187 / highcharts.html
Created November 12, 2019 14:44
highcharts timeseries example
<!DOCTYPE html>
<html>
<head>
<title>Crop Health Progression</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.7.0/Chart.min.js"></script>
<meta name = "viewport" content = "initial-scale = 1, user-scalable = no">
<script src="http://libs.cartocdn.com/cartodb.js/v3/cartodb.js"></script>
<style>
#container {
min-width: 310px;
@gtallen1187
gtallen1187 / modis_map.html
Created November 12, 2019 14:43
leaflet map for modis imagery
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name='viewport' content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no' />
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.7.5/leaflet.css" />
<script src="http://cdn.leafletjs.com/leaflet-0.7.5/leaflet.js"></script>
<style>