Skip to content

Instantly share code, notes, and snippets.

@Laffs2k5
Laffs2k5 / userchrome.css
Created November 13, 2022 20:22
Firefox userchrome file, hides tab bar when using vertical tabs
/*
Firefox userchrome file, hides tab bar when using vertical tabs
Save as:
C:\Users\<username>\AppData\Roaming\Mozilla\Firefox\Profiles\<random giberish>.default-release\chrome\userchrome.css
Enable Firefox CSS customization feature, which is turned off by default:
- Enter about:config in the address bar and select "Accept the Risk and Continue."
- Under "Search preference name," paste the following text: toolkit.legacyUserProfileCustomizations.stylesheets
- Tap the toggle button on the right so the preference says "true."
*/
@Laffs2k5
Laffs2k5 / Get-Chocolatey.ps1
Last active January 8, 2019 09:29
Get-Chocolatey.ps1
# Chocolatey Non-Administrative install
$InstallDir='C:\ProgramData\chocoportable'
$env:ChocolateyInstall="$InstallDir"
Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy Bypass
# All install options - offline, proxy, etc at https://chocolatey.org/install
Invoke-Expression ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
# Portable git install
choco install git.portable
@Laffs2k5
Laffs2k5 / generate_clone_all_bitbucket_repos.sh
Last active July 9, 2018 18:11
Script to clone all repositories in all projects in a bitbucket server (aka stash)
# generate_clone_all_bitbucket_repos.sh
#
# Based on https://gist.github.com/eeichinger/babbdf99d8fe21fef8634d56f29defba
# Credits goes to https://gist.github.com/eeichinger
#
# Requirements:
# - jq - commandline JSON processor
# sudo dnf install jq.x86_64
#
# Note: make sure set your username, password and server
@Laffs2k5
Laffs2k5 / win-updates.ps1
Created August 15, 2017 08:04 — forked from joefitzgerald/win-updates.ps1
Install All Windows Updates, Rebooting As Many Times As Required
param($global:RestartRequired=0,
$global:MoreUpdates=0,
$global:MaxCycles=10)
function Check-ContinueRestartOrEnd() {
$RegistryKey = "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Run"
$RegistryEntry = "InstallWindowsUpdates"
switch ($global:RestartRequired) {
0 {
$prop = (Get-ItemProperty $RegistryKey).$RegistryEntry