Adapted from the GTA IV Wiki
Control | PC | 360 |
---|---|---|
Take phone out | Up | D-Pad Up |
{ | |
"extension[CustomWebSearch].customSearchEngines": [ | |
{ | |
"encodeSearchTerm": true, | |
"id": "6b0bd2d7-819a-4e95-812c-b68ff7d0b0b0", | |
"name": "Wikipedia", | |
"prefix": "wikipedia", | |
"url": "https://en.wikipedia.org/w/index.php?search={{query}}" | |
}, | |
{ |
function Get-WindowsProductInformation { | |
# Derived from WinProdKeyFinder | |
# https://github.com/mrpeardotnet/WinProdKeyFinder | |
$digitalProductId = (Get-ItemProperty -Path 'HKLM:\Software\Microsoft\Windows NT\CurrentVersion').DigitalProductId | |
# First byte appears to be length | |
if ($digitalProductId[0] -ne $digitalProductId.Length) { | |
throw 'Invalid length.' | |
} | |
Adapted from the GTA IV Wiki
Control | PC | 360 |
---|---|---|
Take phone out | Up | D-Pad Up |
These are the most commonly used switches I use in rg.
Command | Description |
---|---|
rg pattern |
Search pattern in current dir recursively |
rg pattern utils.py |
Search in a single file utils.py |
rg pattern src/ |
Search in dir src/ recursively |
rg '^We' test.txt |
Regex searching support (lines starting with We) |
function arch_specific($prop, $manifest, $architecture) { | |
if ($manifest.architecture) { | |
$val = $manifest.architecture.$architecture.$prop | |
if ($val) { return $val } # else fallback to generic prop | |
} | |
if ($manifest.$prop) { return $manifest.$prop } | |
} | |
$scoopdir = Join-Path ([Environment]::GetFolderPath('UserProfile')) 'scoop' |
# Install WinMerge per-user from https://winmerge.org/downloads | |
# or: winget install --id 'WinMerge.WinMerge' | |
# Then do "git config --edit --global" and add the following: | |
[diff] | |
tool = winmerge | |
[difftool "winmerge"] | |
name = WinMerge | |
trustExitCode = true | |
# For Machine-wide install: |
$argumentCompleterScriptBlock = { | |
param($wordToComplete, $commandAst, $cursorPosition) | |
$commands = ` | |
@{Text = 'alias'; Tip = 'Manage scoop aliases' }, ` | |
@{Text = 'bucket'; Tip = 'Manage Scoop buckets' }, ` | |
@{Text = 'cache'; Tip = 'Show or clear the download cache' }, ` | |
@{Text = 'cat'; Tip = 'Show content of specified manifest.' }, ` | |
@{Text = 'checkup'; Tip = 'Check for potential problems' }, ` | |
@{Text = 'cleanup'; Tip = 'Cleanup apps by removing old versions' }, ` |
import sqlite3 | |
database = 'C:/Users/jeffm/scoop/scoop.db' | |
try: | |
with sqlite3.connect(database) as conn: | |
cur = conn.cursor() | |
cur.execute(""" | |
SELECT DISTINCT | |
bucket, |
Originally found on Reddit.
Jackkell100 15h ago