- Install a fresh image of Raspbian and boot the Pi
- Follow the installation guide if needed
- Go through the prompts to finish initial setup
- Open a Termial window
- Type
sudo apt-get install unclutter
- Type
sudo raspi-config
- Select
Boot Options
with Enter- Select
Wait for Network at Boot
with Enter - Select
Yes
with Enter
- Select
- Select
- Type
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
function Convert-AsciiToBinary { | |
[CmdletBinding()] | |
[Alias('ascii2bin')] | |
param ([Parameter(Mandatory)][string]$String) | |
return [byte[]][char[]]$String | | |
ForEach-Object { [convert]::ToString($_, 2).PadLeft(8, '0') | |
} | |
} |
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
$base64 = [convert]::ToBase64String((Get-Content D:\Images\image1.jpg -Encoding byte)) |
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
#Profile addition to redefine cd as a proxy for push location (and cd- for Pop). | |
# cd ... is transformed into into cd ..\.. (extra dot is an extra level), | |
# cd ^ is transformed into cd <<script i.e. profile>> directory | |
# cd \*doc is transformed into cd \*\Doc*\ | |
# cd = is transformed into an item from the stack. = is the first each extra = goes one deeper in the stack | |
# cd - will not tab expand but will pop an item from the location stack. 3 or more - will do an extra pop. | |
# -- means "all the rest are a strings", so two levels needs -- -- | |
# cd ~ Now supports tab expansion | |
# cd ~~ Tab completes "Special" folders (e.g. MyDocuments, Desktop, ProgramFiles) | |
# cd ~~Name\ Transorms to or tab completes the special folder |
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
{ | |
"first-entry": {"info": "something"} | |
} |
*update: TBC, but this new might affect how easy it is to use this technique past August 2024: Authy is shutting down its desktop app | The 2FA app Authy will only be available on Android and iOS starting in August
This gist, based in part on a gist by Brian Hartvigsen, allows you to export from Authy your TOTP tokens you have stored there.
Those can be "standard" 6-digits / 30 secs tokens, or Authy's own version, the 7-digits / 10 secs tokens.
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
#Requires -version 2.0 | |
## Stupid PowerShell Tricks | |
################################################################################################### | |
add-type @" | |
using System; | |
using System.Runtime.InteropServices; | |
public class Tricks { | |
[DllImport("user32.dll")] | |
private static extern bool ShowWindowAsync(IntPtr hWnd, int nCmdShow); | |