Replaced | Rust replacement | GH |
---|---|---|
ls | exa | https://github.com/ogham/exa |
grep | ripgrep | https://github.com/BurntSushi/ripgrep |
cat | bat | https://github.com/sharkdp/bat |
du | dust | https://github.com/bootandy/dust |
ps | procs | https://github.com/dalance/procs |
find | fd | https://github.com/sharkdp/fd |
sed | sd | https://crates.io/crates/sd |
Search sql like | fselect | https://crates.io/crates/fselect |
This file contains hidden or 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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>IncompatiblePaths</key> | |
<array> | |
<dict> | |
<key>Application Name</key> | |
<string>Sxs Memory Card Driver</string> | |
<key>Blurb</key> |
This file contains hidden or 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
#!/usr/bin/python3 | |
from subprocess import Popen | |
import frida | |
import time | |
import sys | |
dumped = False | |
def get_script(package_name): | |
jscode = """ |
This file contains hidden or 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
# how to run this thingy | |
# create a file on your mac called setup.sh | |
# run it from terminal with: sh setup.sh | |
# heavily inspired by https://twitter.com/damcclean | |
# https://github.com/damcclean/dotfiles/blob/master/install.sh | |
# faster dock hiding/showing (run in terminal) | |
# defaults write com.apple.dock autohide-delay -float 0; defaults write com.apple.dock autohide-time-modifier -int 0;killall Dock |
This file contains hidden or 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
import json | |
import random | |
# Takes a dataset variable and returns a solution variable | |
def solve(dataset): | |
for contributor in dataset['contributors'].values(): | |
contributor['availableAt'] = 0 | |
# Since we levelup only in skillsByName, avoid discrepancies | |
del contributor['skills'] |
This file contains hidden or 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
From self[at]sungpae.com Mon Nov 8 16:59:48 2021 | |
Date: Mon, 8 Nov 2021 16:59:48 -0600 | |
From: Sung Pae <self[at]sungpae.com> | |
To: [email protected] | |
Subject: Permissive forwarding rule leads to unintentional exposure of | |
containers to external hosts | |
Message-ID: <YYmr4l1isfH9VQCn@SHANGRILA> | |
MIME-Version: 1.0 | |
Content-Type: multipart/signed; micalg=pgp-sha256; | |
protocol="application/pgp-signature"; boundary="QR1yLfEBO/zgxYVA" |
This file contains hidden or 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
# Advent of Code template by @MathisHammel | |
import requests | |
from aoc_secrets import AOC_COOKIE # Put your session cookie in this variable | |
YEAR = '2022' | |
def get_input(day): | |
req = requests.get(f'https://adventofcode.com/{YEAR}/day/{day}/input', headers={'cookie':'session='+AOC_COOKIE}) | |
return req.text |
Ads on post-Elon Twitter are becoming more and more obnoxious. You can hide them if you use a content blocking extension, such as the awesome uBlock Origin.
By targeting the little icon that appears near the "Sponsored" label, the filter works on Twitter in every language.
Simply add the following rule to your ad-blocker:
! 2023-01-02 https://twitter.com
This file contains hidden or 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
# Advent of Code template by @MathisHammel | |
# TODO | |
# - Make a snapshot of the file when a submission is correct | |
# - Display the rank when submission is accepted | |
# - Utility function to rotate/flip a 2D array | |
# - Cycle length detector/extrapolator to make loops faster | |
# - Put examples in cache | |
# - Warning if DAY is not the current day |
This file contains hidden or 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
Total go modules: 1288407 | |
github.com: 1218651 | |
gitlab.com: 12372 | |
gitee.com: 8497 | |
gopkg.in: 5746 | |
go-micro.dev: 3494 | |
github.com: 3209 | |
github.com: 2487 | |
bitbucket.org: 2347 |