Skip to content

Instantly share code, notes, and snippets.

@r0nny8000
r0nny8000 / Python Cheat Sheet.md
Last active November 25, 2023 17:26
Python Cheat Sheet

Python Cheat Sheet

Pyenv

List installed versions of Python

pyenv versions
@r0nny8000
r0nny8000 / number-of-recent-apps-in-dock.md
Last active June 15, 2023 16:59
Increase number of recent apps in Dock of Mac OSX

defaults write com.apple.dock show-recents -bool true; defaults write com.apple.dock show-recent-count -int 8; killall Dock

@r0nny8000
r0nny8000 / Install Fish On Mac with Homebrew.md
Last active January 25, 2022 20:02 — forked from gagarine/fish_install.md
Install fish shell on macOS Mojave with brew

Installing Fish shell on MacOS with Homebrew (Intel and M1)

Fish is a smart and user-friendly command line (like bash or zsh). This is how you can instal Fish on MacOS and make your defaul shell.

Note that you need the https://brew.sh/ package manager.

You can also download the fish app from their website. I do recomand using brew because update are easier.

Install Fish

@r0nny8000
r0nny8000 / Fix Printer Access Rights.md
Last active July 2, 2023 16:18
Fix Printer Access Rights
sudo dseditgroup -o edit -n /Local/Default -a nadine -t group lpadmin

sudo dseditgroup -o edit -n /Local/Default -a everyone -t group lpadmin

@r0nny8000
r0nny8000 / Install Python 3.6.12 on Big Sure.md
Last active January 25, 2022 20:04
Install Python 3.6.12 on Big Sure

compiler settings

set -x LDFLAGS "-L/usr/local/opt/zlib/lib -L/usr/local/opt/bzip2/lib -L/usr/local/opt/sqlite/lib -L/usr/local/opt/openssl@1.1/lib -L/usr/local/opt/readline/lib -L/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib"
set -x CFLAGS "-I/usr/local/opt/zlib/include -I/usr/local/opt/bzip2/include -I/usr/local/opt/openssl@1.1/include -I/usr/local/opt/readline/include -I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include"
set -x CPPFLAGS "-I/usr/local/opt/zlib/include -I/usr/local/opt/sqlite/include"
set -x PKG_CONFIG_PATH "/usr/local/opt/zlib/lib/pkgconfig /usr/local/opt/sqlite/lib/pkgconfig"

homebrew and xcode installed

zsh

@r0nny8000
r0nny8000 / Install VSCodium on Mac.md
Last active January 25, 2022 20:05
Install VSCodium on Mac
brew install --cask vscodium
codesign --sign - --force --deep /Applications/VSCodium.app
xattr -d com.apple.quarantine /Applications/VSCodium.app
@r0nny8000
r0nny8000 / VPN_FritzBox_OnDemand.mobileconfig
Created April 18, 2016 19:48 — forked from thomaswitt/VPN_FritzBox_OnDemand.mobileconfig
iOS VPN configuration file: Connect to FritzBox VPN if connected to the internet through any insecure WiFi Network (all except than trusted) … customize all strings starting with REPLACE_
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>PayloadContent</key>
<array>
<dict>
<key>IPSec</key>
<dict>
<key>AuthenticationMethod</key>