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
// src: https://gist.github.com/apfelchips/f129c8316055e524774d757365267e26 | |
// goal: disable all annoying stuff from firefox and tighten security, but still retain all modern web features | |
// configure as little as possible to benefit from changeing/hardened defaults by Mozilla | |
// inspired by: | |
// https://github.com/pyllyukko/user.js/blob/master/user.js | |
// https://github.com/ghacksuserjs/ghacks-user.js/blob/master/user.js | |
// http://kb.mozillazine.org/About:config_entries | |
// https://gist.github.com/ruilapa/3207798 |
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
<!DOCTYPE NETSCAPE-Bookmark-file-1> | |
<!-- documentation: https://docs.microsoft.com/en-us/previous-versions/windows/internet-explorer/ie-developer/platform-apis/aa753582(v=vs.85)# --> | |
<!-- firefox extra html attributes: https://github.com/Chocobo1/slim_bookmarks/blob/gh-pages/js/slim_bookmarks.js --> | |
<!-- firefox place: URI https://developer.mozilla.org/en-US/docs/Mozilla/Tech/Places/Places_query_URIs --> | |
<!-- completely overrides firefox bookmarks --> | |
<!-- check for dead links: wget --no-config --spider --no-verbose --no-recursive --force-html -i $XDG_CONFIG_HOME/firefox/bookmarks.html --> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | |
</meta> | |
<title>Bookmarks</title> |
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
# duti settings file | |
# src: https://gist.github.com/apfelchips/0073cb3e8d186115f590d318998c1025 | |
# mkdir -p "${XDG_CONFIG_HOME:-$HOME/.config}/duti/" && curl -L "https://git.io/JRtzH" -o "${XDG_CONFIG_HOME:-$HOME/.config}/duti/default.duti" | |
# duti-apply wrapper: alias duti-apply='duti -v "${XDG_CONFIG_HOME:-$HOME/.config}/duti"' | |
## duti documentation http://duti.org/documentation.html | |
## see also: https://github.com/Lord-Kamina/SwiftDefaultApps#readme | |
# List of MIME Types: |
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
# allow running: Set-ExecutionPolicy Bypass -Scope Process -Force | |
# src: https://gist.github.com/apfelchips/792f7708d0adff7785004e9855794bc0 | |
# goal: install all basic tools / pin software with working autoupdate mechanism / specialized stuff is commented out | |
# misc: Windows Store .appx downloader https://store.rg-adguard.net/ | |
# Check Permissions | |
if ( -Not( (New-Object Security.Principal.WindowsPrincipal $([Security.Principal.WindowsIdentity]::GetCurrent())).IsInRole([Security.Principal.WindowsBuiltinRole]::Administrator)) ){ | |
Write-Error -Message "Script needs Administrator permissions" |
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
# src: https://gist.github.com/apfelchips/2c42af4b1c10318e5f4d89826324723b | |
# doc: https://github.com/Homebrew/homebrew-bundle | |
# to install execute: brew bundle | |
# to check validity: brew bundle check | |
# examples: | |
# https://github.com/ahmetb/dotfiles/blob/master/.Brewfile | |
# https://github.com/SHxKM/macos-setup/blob/master/Brewfile |
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
#!/bin/bash | |
# https://www.defaults-write.com | |
# https://github.com/joeyhoer/starter/tree/master/system | |
# https://github.com/atweiden/macfiles/blob/master/macos.sh | |
# https://gist.github.com/ryanpcmcquen/b2e608311f286a4ab3e1 | |
# https://github.com/herrbischoff/awesome-macos-command-line | |
# | |
# discover filesystem changes: sudo filemon -c | |
# |
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
;#NoTrayIcon | |
TraySetIcon("accessibilitycpl.dll","6") ; Keyboard Icon | |
;#Persistent https://www.autohotkey.com/docs/commands/_Persistent.htm | |
; legacy? SendMode("Input") ; Recommended for new scripts due to its superior speed and reliability. | |
SetWorkingDir(A_ScriptDir) ; Ensures a consistent starting directory. | |
#SingleInstance force | |
;#InstallKeybdHook ; see: https://www.autohotkey.com/docs/v1/lib/_HotkeyModifierTimeout.htm |
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
# Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser | |
# src: https://gist.github.com/apfelchips/62a71500a0f044477698da71634ab87b | |
# New-Item $(Split-Path "$($PROFILE.CurrentUserCurrentHost)") -ItemType Directory -ea 0; Invoke-WebRequest -Uri "https://git.io/JYZTu" -OutFile "$($PROFILE.CurrentUserCurrentHost)" | |
# ref: https://devblogs.microsoft.com/powershell/optimizing-your-profile/#measure-script | |
# ref: Powershell $? https://stackoverflow.com/a/55362991 | |
# ref: Write-* https://stackoverflow.com/a/38527767 | |
# Write-Host wrapper for Write-Information -InformationAction Continue |
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
#!/usr/bin/env pwsh -noLogo -noProfile | |
# get lftp for windows here: https://nwgat.ninja/lftp-for-windows/ | |
# doc: https://manpages.debian.org/lftp/lftp.1.en.html | |
$USER='' | |
$PASS='' | |
$REMOTEHOSTNAME='' | |
$LOCALDIR='./homedir-subfolder' | |
$REMOTEDIR='/var/www/' |
OlderNewer