rg --color=always --line-number "TODO|FIXME|XXX|HACK|BUG|NOTE" | \
fzf --ansi \
--delimiter : \
--preview 'bat --style=numbers --color=always --highlight-line {2} {1}' \
--preview-window '+{2}-/2'
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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# All Vagrant configuration is done below. The "2" in Vagrant.configure | |
# configures the configuration version (we support older styles for | |
# backwards compatibility). Please don't change it unless you know what | |
# you're doing. | |
Vagrant.configure("2") do |config| | |
# The most common configuration options are documented and commented below. | |
# For a complete reference, please see the online documentation at |
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
[package] | |
name = "tw-powerball-rs" | |
version = "0.1.0" | |
edition = "2021" | |
[dependencies] | |
rand = "0.9" |
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
package main | |
import ( | |
"crypto" | |
"crypto/ecdsa" | |
"crypto/rand" | |
"crypto/rsa" | |
"crypto/x509" | |
"crypto/x509/pkix" | |
"encoding/base64" |
rg --color=always --line-number "TODO|FIXME|XXX|HACK|BUG|NOTE" | \
fzf --ansi \
--delimiter : \
--preview 'bat --style=numbers --color=always --highlight-line {2} {1}' \
--preview-window '+{2}-/2'
rg
(ripgrep
): searches for common comment patterns:
- Uses
--color=always
to preserve colors forfzf
Start chrome browser with Profile 1 in a new tab.
$ open -a "Google Chrome" --args --profile-directory="Profile 1"
Start Brave browser with Default in a new tab.
$ /Applications/Brave\ Browser/Contents/MacOS/Brave\ Browser --profile-directory="Default"
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
package main | |
import ( | |
"math/rand" | |
"path/filepath" | |
"time" | |
"github.com/go-ole/go-ole" | |
"github.com/go-ole/go-ole/oleutil" | |
"github.com/scjalliance/comshim" |
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
#include <assert.h> | |
#include <ole2.h> | |
#include <iostream> | |
#include <memory> | |
#include <sstream> | |
#include <vector> | |
template <class T> | |
void SafeRelease(T **ppT) { |
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
package main | |
import ( | |
"fmt" | |
"regexp" | |
"strconv" | |
"time" | |
) | |
func main() { |
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
#include <windows.h> | |
#include <iostream> | |
#include <vector> | |
struct ScreenArray { | |
std::vector<RECT> Monitors; | |
static BOOL CALLBACK MonitorEnumProc(HMONITOR monitor, HDC hdc, LPRECT rect, LPARAM data) { | |
MONITORINFOEX mi = {0}; |
NewerOlder