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
# fshow - git commit browser (enter for show, ctrl-d for diff, ` toggles sort) | |
fshow() { | |
local out shas sha q k | |
while out=$( | |
git log --graph --color=always \ | |
--format="%C(auto)%h%d %s %C(black)%C(bold)%cr" "$@" | | |
fzf --ansi --multi --no-sort --reverse --query="$q" \ | |
--print-query --expect=ctrl-d --toggle-sort=\`); do | |
q=$(head -1 <<< "$out") | |
k=$(head -2 <<< "$out" | tail -1) |
Before we look at some common commands, I just want to note a few keyboard commands that are very helpful:
Up Arrow
: Will show your last commandDown Arrow
: Will show your next commandTab
: Will auto-complete your commandCtrl + L
: Will clear the screen
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
# https://github.com/wei/pull#readme | |
--- | |
version: "1" | |
rules: | |
- base: main | |
upstream: pythoninthegrass:main | |
mergeMethod: hardreset # Optional, one of [none, merge, squash, rebase, hardreset], Default: none. | |
mergeUnstable: false # Optional, merge pull request even when the mergeable_state is not clean. Default: false |
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
var net = require('net'); | |
var socket = new net.Socket(); | |
socket.connect(5000, "127.0.0.1"); | |
var fs = require('fs'); | |
var path = require('path'); | |
var packets = 0; | |
var buffer = new Buffer(0); | |
socket.on('data', function(chunk){ | |
packets++; |
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
import axios, { AxiosRequestConfig } from "axios"; | |
import { Effect as IO, Option, pipe } from "effect"; | |
import { credentials } from "@store/global"; | |
import { BackendPath, UnauthenticatedError, RequestFailedError } from "@common/index"; | |
const Headers = { | |
Authorization: "Authorization", | |
RefreshToken: "x-refresh-token", | |
} as const; |
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
adb help // List all comands | |
== Adb Server | |
adb kill-server | |
adb start-server | |
== Adb Reboot | |
adb reboot | |
adb reboot recovery | |
adb reboot-bootloader |
Build a Aircraft scanner from a Pi 3 and an RTL-SDR radio dongle and external audio PC speaker.
Full details are available at https://github.com/szpajder/RTLSDR-Airband/wiki
- Raspberry Pi 3 with at least 2 USB slots
- RTL-SDR Dongle V3 (typical one, not ADS-B!)
- USB powered speaker with stereo audio plug
- Antenna with connecting cable for RTL-SDR dongle
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
NewerOlder