Skip to content

Instantly share code, notes, and snippets.

@sujithgokul
sujithgokul / FreshInstall.sh
Last active September 9, 2021 03:54
Setup new Mac and install the required apps
xcode-select --install
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
# Specify your defaults in this environment variable
export HOMEBREW_CASK_OPTS="--appdir=/Applications --caskroom=/usr/local/Caskroom"
brew install mas
sleep 30s
@jdleslie
jdleslie / citrix_ctrl_alt_win.json
Last active February 9, 2024 18:41
Map Apple modifiers (Ctrl, Option, Command) to Windows modifiers (Ctrl, Win, Alt) in Citrix Workspace using Karabiner Elements, with working Alt+Tab and Windows key shortcuts
{
"title": "Citrix Receiver/Workspace modifiers for Ctrl, Alt, Windows order",
"rules": [
{
"description": "In Citrix, add fn modifier to tab so it is forwarded",
"manipulators": [
{
"from": {
"key_code": "tab",
"modifiers": { "optional": [ "any" ] }
@kaushikgopal
kaushikgopal / karabiner.edn
Last active October 13, 2023 21:15
My source Karabiner file in Goku's edn format - Now lives @ https://github.com/kaushikgopal/dotfiles/blob/master/.karabiner.edn
;; File has moved over to https://github.com/kaushikgopal/dotfiles/blob/master/.karabiner.edn
;; Feel free to raise github issues in that repo, if you have questions/comments/edits
@fatihyildizhan
fatihyildizhan / Docker 23 + Traefik 2.9.10 and v1.7 + Let's Encrypt + Github Registry V2 ghcr.io + Updated on 12 April 2023
Last active October 22, 2023 11:58
Docker 23 + Traefik 2.9.10 and v1.7 + Let's Encrypt + Github Registry V2 ghcr.io + Updated on 12 April 2023
Docker 23 + Traefik v2.9.10 and v1.7 + Let's Encrypt + Github Registry V2 ghcr.io + Updated on 12 April 2023
Content:
- Ubuntu 22.04
- Docker Engine 23.0.3
- Docker Compose 2.17.2
- Traefik v1.7.18 with dnsChallenge
- Traefik v2.9.9 with httpChallenge
--
- Github Registry V2 ghcr.io
@luispuerto
luispuerto / buttondown.css
Last active October 5, 2022 08:15 — forked from ryangray/buttondown.css
A clean, minimal CSS stylesheet for Markdown, Pandoc and MultiMarkdown HTML output.
/*
Buttondown
A Markdown/MultiMarkdown/Pandoc HTML output CSS stylesheet
Author: Ryan Gray
Date: 15 Feb 2011
Contributor: Luis Puerto (luiss.puerto@gmail.com)
Revised: Mon, 12 Aug 2019
General style is clean, with minimal re-definition of the defaults or
overrides of user font settings. The body text and header styles are
# To prevent the vulnerable server from running on your machine
# (this does not impact Zoom functionality), run these two lines in your Terminal.
pkill "ZoomOpener"; rm -rf ~/.zoomus; touch ~/.zoomus && chmod 000 ~/.zoomus;
pkill "RingCentralOpener"; rm -rf ~/.ringcentralopener; touch ~/.ringcentralopener && chmod 000 ~/.ringcentralopener;
# (You may need to run these lines for each user on your machine.)
@essandess
essandess / SMIME Certificates Signed By OD CA.md
Created May 31, 2019 23:53
SMIME Certificates Signed By OD CA

SMIME Certificates Signed By OD CA

Here are my notes on how to create S/MIME Certificates signed by OS X Server's Open Directory Certificate Authority. It's pretty easy to set up your own small-scale PKI on OS X Server using the OD CA, which will already be a trusted CA.

Step Zero:

Make sure that you have OS X Server's Certificate Authorities installed on your local admin account:

This has been replaced by a gem

Use gem install bunchcli to install, then run bunch -h for a list of commands.

@essandess
essandess / CalendarServer Server.app Migration.md
Last active September 24, 2020 01:55
CalendarServer Server.app Migration [WIP]

CalendarServer Server.app Migration [WIP]

Create the calendarserver account, password, install directories

# choose a free uid < 500; uid 350 is used here
dscl . -list /Users UniqueID | sort -n -k2

sudo bash <<CREATE_SYSTEM_USER
dscl . -create /Users/calendarserver RealName calendarserver
create calendarserver
sudo enable for calendarserver
sudo -iu calendarserver
git clone https://github.com/apple/ccs-calendarserver.git
echo "source CalendarServer/environment.sh" > .profile
cd ccs-calendarserver
export USE_OPENSSL=1
sudo ./bin/package /Users/calendarserver/CalendarServer