Skip to content

Instantly share code, notes, and snippets.

@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>
View webp.bash
# Convert TO webp
# cwebp docs - https://developers.google.com/speed/webp/docs/cwebp
cwebp -q 80 image.png -o image.webp
# Convert FROM webp
#dwebp docs - https://developers.google.com/speed/webp/docs/dwebp
dwebp image.webp -o image.png
@gtallen1187
gtallen1187 / nyc_subway_entrances.geojson
Created Aug 14, 2019
Collection of all subway entrances for the NYC subway system
View nyc_subway_entrances.geojson
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@gtallen1187
gtallen1187 / boston_neighborhoods.geojson
Created Aug 14, 2019
GeoJSON file outlining the boundaries of neighborhoods in Boston
View boston_neighborhoods.geojson
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.