- http://stackoverflow.com/questions/804115 (
rebase
vsmerge
). - https://www.atlassian.com/git/tutorials/merging-vs-rebasing (
rebase
vsmerge
) - https://www.atlassian.com/git/tutorials/undoing-changes/ (
reset
vscheckout
vsrevert
) - http://stackoverflow.com/questions/2221658 (HEAD^ vs HEAD~) (See
git rev-parse
) - http://stackoverflow.com/questions/292357 (
pull
vsfetch
) - http://stackoverflow.com/questions/39651 (
stash
vsbranch
) - http://stackoverflow.com/questions/8358035 (
reset
vscheckout
vsrevert
)
Discover gists
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript:void(function(){ | |
var doc = document; | |
var body = doc.querySelector("body"); | |
var head = doc.querySelector("head"); | |
var icons = ""; | |
var resultElem = doc.querySelector("#icons-shower"); | |
if ( !resultElem ) { |
- Register for Oracle Cloud Free Tier
- Create compute instance
- change image to
Canonical Ubuntu
- confirm that a public IPv4 address is assigned
- upload your public ssh key
- leave everything blank in
Boot volume
- change image to
- Enable Internet Access
- Instances → Instance details → Subnet → Default Security List → Add Ingress Rules
- HTTP: Stateless: Checked
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" Have j and k navigate visual lines rather than logical ones | |
nmap j gj | |
nmap k gk | |
" Go to beginning/end of line | |
nmap gh ^ | |
nmap gl $ | |
" Cycle between tabs | |
exmap tabprev obcommand workspace:previous-tab |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Example: ls 'C:\Windows\System32\*' -Include '*.dll' | Get-AuthenticodeSignature | Select -ExpandProperty SignerCertificate | Get-TBSHash | |
filter Get-TBSHash { | |
[OutputType([String])] | |
param ( | |
[Parameter(Mandatory, ValueFromPipeline)] | |
[Security.Cryptography.X509Certificates.X509Certificate2] | |
$Certificate | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** @format */ | |
import { Map, TileLayer, Marker, Popup } from "react-leaflet"; | |
import React, { useEffect, useState, useRef } from "react"; | |
import { geosearch } from "esri-leaflet-geocoder"; | |
import "leaflet/dist/leaflet.css"; | |
import "esri-leaflet-geocoder/dist/esri-leaflet-geocoder.css"; | |
import L from "leaflet"; | |
function MapView(props) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# set -eux | |
# This a simple script that builds static versions of Python and LibPython using musl-libc | |
# Find the associated article at: http://general-purpose.io/2015/12/06/compiling-python-and-libpython-statically-using-musl-libc/ | |
WORKING_DIR="/code/static-python" | |
MUSL_PREFIX="/code/static-python/musl" | |
PY_PREFIX="/code/static-python/python" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Globalization; | |
public class NmeaInterpreter | |
{ | |
// Represents the EN-US culture, used for numers in NMEA sentences | |
public static CultureInfo NmeaCultureInfo = new CultureInfo("en-US"); | |
// Used to convert knots into miles per hour | |
public static double MPHPerKnot = double.Parse("1.150779", | |
NmeaCultureInfo); |
NewerOlder