Skip to content

Instantly share code, notes, and snippets.

Avatar
🤪

Greg Allen gtallen1187

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

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 Nov 7, 2021
script to ensure all hidden files are visible in finder
View macShowHiddenFiles.sh
defaults write com.apple.Finder AppleShowAllFiles true
killall Finder
@gtallen1187
gtallen1187 / pnau.md
Last active Sep 8, 2021
list of awesome music videos for the homie
@gtallen1187
gtallen1187 / mv.sh
Created Apr 14, 2020 — forked from premek/mv.sh
Rename files in linux / bash using mv command without typing the full name two times
View mv.sh
# 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 Mar 20, 2020 — forked from webframp/keybase.md
Signing git commits on github using keybase.io gpg key
View keybase.md

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

View canary.bash
shell
update_engine_client –channel=stable-channel -update
@gtallen1187
gtallen1187 / complex_leaflet.html
Created Nov 12, 2019
More complex leaflet example
View complex_leaflet.html
<!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 Nov 12, 2019
highcharts timeseries example
View highcharts.html
<!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 Nov 12, 2019
leaflet map for modis imagery
View modis_map.html
<!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>