# install p4v tools
brew install --cask p4v
# configure git
git config --global diff.tool p4merge
git config --global difftool.p4merge.path /Applications/p4merge.app/Contents/Resources/launchp4merge
git config --global difftool.prompt false
git config --global merge.tool p4merge
git config --global mergetool.p4merge.path /Applications/p4merge.app/Contents/Resources/launchp4merge
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
# Simple script to check drivers in C:\windows\system32\drivers against the loldrivers list | |
# Author: Oddvar Moe - @oddvar.moe | |
$drivers = get-childitem -Path c:\windows\system32\drivers | |
$web_client = new-object system.net.webclient | |
$loldrivers = $web_client.DownloadString(" https://www.loldrivers.io/api/drivers.json") | ConvertFrom-Json | |
Write-output("Checking {0} drivers in C:\windows\system32\drivers against loldrivers.io json file" -f $drivers.Count) | |
foreach ($lol in $loldrivers.KnownVulnerableSamples) | |
{ |
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
javascript:(function () { function fullDecode (input) { let decoded = decodeURIComponent(input); return (decoded == input ? decoded : fullDecode(decoded)) }; let userInfo = document.cookie.replace(/(?:(?:^|.*;\s*)aws-userInfo\s*\=\s*([^;]*).*$)|^.*$/, "$1"); alert(JSON.stringify(JSON.parse(fullDecode(userInfo)), null, 4)) })(); |
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
_ssh() | |
{ | |
local cur prev opts | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
opts=$(grep '^Host' ~/.ssh/config ~/.ssh/config.d/* 2>/dev/null | grep -v '[?*]' | cut -d ' ' -f 2-) | |
COMPREPLY=( $(compgen -W "$opts" -- ${cur}) ) | |
return 0 |
Install required tools first
$ # ubuntu
$ sudo apt-get install -y git gnupg pass pinentry-curses
$ # macos
$ brew install git gnupg2 docker-credential-helper pass pinentry-mac
There is no PPA for docker-credential-helper
on Ubuntu, so install that directly
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
# %localappdata%\Microsoft\Windows\Fonts | |
$FontFolder = "C:\Users\Gato\Downloads\Meslo-Win" | |
$FontItem = Get-Item -Path $FontFolder | |
$FontList = Get-ChildItem -Path "$FontItem\*" -Include ('*.fon','*.otf','*.ttc','*.ttf') | |
$FontRegistry = "HKCU:\Software\Microsoft\Windows NT\CurrentVersion\Fonts" | |
$Destination = Join-Path -Path (New-Object -ComObject Shell.Application).Namespace(0x1c).Self.Path -ChildPath "Microsoft\Windows\Fonts" | |
If (-Not (Test-Path $FontRegistry)) { | |
New-Item -Path $FontRegistry -Force | Out-Null |
If you're getting such errors in dmesg output while facing wireless abnormal disconnects
[20718.137775] ieee80211 phy0: brcmf_proto_bcdc_query_dcmd: brcmf_proto_bcdc_msg failed w/status -110
[20720.697821] ieee80211 phy0: brcmf_proto_bcdc_query_dcmd: brcmf_proto_bcdc_msg failed w/status -110
[20720.697843] ieee80211 phy0: brcmf_cfg80211_get_station: GET STA INFO failed, -110
Update udev rules
Build libqalculate first
sudo apt-get install -y build-essential intltool libcurl4-openssl-dev libgtk-3-dev libxml2-dev
git clone https://github.com/Qalculate/libqalculate
cd libqalculate/
git checkout tags/v4.4.0
./autogen.sh
./configure --prefix=/opt/libqalculate
make