Skip to content

Instantly share code, notes, and snippets.

View jhult's full-sized avatar

Jonathan Hult jhult

View GitHub Profile
@jhult
jhult / hide_linkedin_ads.txt
Last active November 7, 2021 21:05
Hide LinkedIn Ads - Adblock Filters
! Title: Hide LinkedIn Ads
! Last modified: 19 Sep 2019
! Expires: 20 days (update frequency)
! Homepage: https://gist.github.com/jhult/802e89c64c4b6f27a3a9
! Source: https://gist.githubusercontent.com/jhult/802e89c64c4b6f27a3a9/raw/hide_linkedin_ads.txt
! Licence: https://opensource.org/licenses/MIT
! Ad Banner
linkedin.com##.ad-banner-container
@jhult
jhult / keybase.md
Last active August 22, 2019 16:29
keybase.md

Keybase proof

I hereby claim:

  • I am jhult on github.
  • I am jhult (https://keybase.io/jhult) on keybase.
  • I have a public key ASBNG4MZHNQhAFoa-pLj0XKAw-EW8za7uMwboMMpao1UEgo

To claim this, I am signing this object:

mlr --icsv --ocsv cut -o -f "Order ID","Title","Item Total" then put '$Title=gsub($Title, "\"", "")' items.csv > tmp-items.csv && mlr --icsv --ocsv cut -o -f "Order Date","Order ID","Total Charged","Payment Instrument Type" then nest --implode --values --across-records -f "Total Charged" orders.csv > tmp-orders.csv && mlr --icsv --ocsv join -u -j "Order ID" --lp order_ --rp item_ -f tmp-orders.csv tmp-items.csv > merged.csv && rm tmp-orders.csv tmp-items.csv
@jhult
jhult / keyspub.txt
Last active June 19, 2021 02:01
keyspub.txt
BEGIN MESSAGE.
huuqPHDciPBM7e9 CcR7hcQajjolnVV XU6EuqCoBrk8jjR VbVMIkcWrjilqI7
C9Z0e3QT1ZJ69Z5 O40Gpsmxpw6TCKq 6Xr2MZHgg4XOmph izilkw65dk2PkjY
qwfur3Ba9R90kLM axp47HMVhVKql90 yiM5vQ3WRMsdvGK hv2uwV3OEYUXul9
Fns6e8WiEeH9IBv AEcBCky4aJZBui5 EYO3p.
END MESSAGE.
@jhult
jhult / rg_replace.sh
Last active June 30, 2023 03:51 — forked from jefflombard/ag_replace.sh
rgr command - Find and Replace with rg on macOS
#!/bin/zsh
rgr() {
# find and replace
regex="s?${1}?${2}?g;"
rg $1 -l | xargs sed -i.rgr_backup $regex
# delete backups
find . -name "*.rgr_backup" -print0 | xargs rm
}
@jhult
jhult / glibc-2.17_centos6.sh
Last active September 2, 2024 08:38 — forked from harv/glibc-2.17_centos6.sh
update glibc to 2.17 for CentOS 6
#!/bin/bash
# update glibc to 2.17 for CentOS 6
GLIBC=glibc
OS=el6
SERVER=https://copr-be.cloud.fedoraproject.org/results/mosquito/myrepo-el6
VERSION=2.17-55
FULL_VERSION=$GLIBC-$VERSION.fc20
X64=x86_64
@jhult
jhult / ldif2json
Last active October 12, 2023 12:56 — forked from Xophmeister/ldif2json
Quick-and-Dirty LDIF to JSON convertor
#!/usr/bin/env -S gawk -f
# Convert LDIF into JSON
# MIT License
# Copyright (c) 2017 Christopher Harrison
function json_string(str) {
# Convert backslashes to double-backslashes
str = gensub("\\\\", "\\\\\\\\", "g", str)
@jhult
jhult / pub.key
Created March 6, 2024 20:41
Public GPG key
-----BEGIN PGP PUBLIC KEY BLOCK-----
mQINBF1ewskBEAC4diByL2Q/GnzZ5UR9G2A8znTL37pye24/Hx67GpOLrsD8zZDt
nl1I+yMToo8t+nLNFYqlv6kCeaRxpBBt3T9/ZcAhBfsIuhjyr9RBH4fNi7ZJ+keL
1abxqEncWz4VtulVUSfNOO6bvLNLJdrUlVO6MuWncoQlpCp/cwZLi5t76wnVBGT5
k4wj9pcwrL5F6EBsr2R9HY/VC22V7KBQQvH7mJEcswd+/4yiNZQyqRyPe0kJ4VJH
pykFrVNBMyUyTzujOTI7jOrTPhPUI6uYyuVI/Futb4RWiT6X8dkXGWAzhP2Or8ZY
ol0LYoGW08qMC6awQ5aURk5jRmrDsWuZoVT6cRab/wIh1lCT4C7cKNPMGS+pGwEb
pt3V/JGPipxo4nhcTFpfLfrmfOaNQN6y99BwX0//681Ikj/QedDFYp0tJx7K5UtX
eYDnthWFeDENY8ul8o9FneVMf3mFdn2eRLWyAoOLBBGgXoq1sBa0ltLIOXwjjYEi