Skip to content

Instantly share code, notes, and snippets.

View ZachAttackMLR's full-sized avatar
🎗️

Zach Gorman ZachAttackMLR

🎗️
View GitHub Profile
@davidwebstar34
davidwebstar34 / SCP deny AMIs
Created September 15, 2020 07:32
SCP deny AMIs
{
"Version": "2020-06-01",
"Statement": [
{
"Sid": "DenyAMIsExceptFromAccount",
"Effect": "Deny",
"Action": "ec2:RunInstances",
"Resource": "arn:aws:ec2:eu-west-1::image/{ami_id}",
"Condition": {
"StringNotEquals": {
@ZachAttackMLR
ZachAttackMLR / pkgs.sh
Created May 17, 2020 22:34
Post-Install Arch Script
#!/bin/sh
# Initial pacman install stuff {{{
# function that will be used to install each package, one at a time
# inspired by LukeSmithxyz/LARBS
function installpkg() {
mkdir -p ~/.cache/z-installer/
sudo pacman --noconfirm --needed -S "$1" >>~/.cache/z-installer/pkgs.txt 2>&1 ;
}
@sbinlondon
sbinlondon / synthwaveglow.md
Last active October 12, 2024 17:10
Get the synth wave glow theme working for VS Code on Mac

Get the synth wave glow working for VS Code on Mac

These notes are pretty much the same steps as the two extensions list, it's just that I had to collate them together because neither seems to list it fully in the proper order.

  1. Install Synthwave ’84/Synthwave + Fluoromachine theme on VS Code (I used the Fluoromachine one)

  2. Install Custom CSS and JS Loader

  3. Command + Shift + P to open command palette > "Preferences: Open settings (JSON)"

@nathanshelly
nathanshelly / _script.md
Last active June 20, 2022 14:54
scripts & .files for opendoor

o/uutalk - Useful Utilities

Intro

Today I want to talk about a few utilities to supercharge your shell workflows!

Skimmable list of topics

  • zsh - a modern shell replacement for Bash with better tab-completion, complex globbing and plugins
  • ripgrep - a faster grep with friendlier defaults
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ygrenzinger
ygrenzinger / CleanArchitecture.md
Last active April 28, 2025 15:23
Summary of Clean Architecture by Robert C. Martin

Summary of book "Clean Architecture" by Robert C. Martin

Uncle Bob, the well known author of Clean Code, is coming back to us with a new book called Clean Architecture which wants to take a larger view on how to create software.

Even if Clean Code is one of the major book around OOP and code design (mainly by presenting the SOLID principles), I was not totally impressed by the book.

Clean Architecture leaves me with the same feeling, even if it's pushing the development world to do better, has some good stories and present robust principles to build software.

The book is build around 34 chapters organised in chapters.

keywords = {
["date"] = function() return os.date("%B %d, %Y") end,
["name"] = "my name is MISTER",
}
expander = hs.hotkey.bind({"alt"}, "d", nil, function() -- don't start watching until the keyUp -- don't want to capture an "extra" key at the begining
local what = ""
local keyMap = require"hs.keycodes".map -- shorthand... in a formal implementation, I'd do the same for all `hs.XXX` references, but that's me
local keyWatcher
keyWatcher = hs.eventtap.new({ hs.eventtap.event.types.keyUp, hs.eventtap.event.types.keyDown }, function(ev)
@mindplace
mindplace / git_and_github_instructions.md
Last active April 21, 2025 15:48
Pushing your first project to github

1. Make sure git is tracking your project locally

Do you need a refresher on git? Go through Codecademy's git course.

  1. Using your terminal/command line, get inside the folder where your project files are kept: cd /path/to/my/codebase. → You cannot do this simply by opening the folder normally, you must do this with the command line/terminal.
    → Do you need a refresher on using your command line/terminal? I've compiled my favorite resources here.

  2. Check if git is already initialized: git status

@ttscoff
ttscoff / init.lua
Last active January 9, 2024 23:44
Hammerspoon config examples for hyper key
-- A global variable for the Hyper Mode
k = hs.hotkey.modal.new({}, "F17")
-- Trigger existing hyper key shortcuts
k:bind({}, 'm', nil, function() hs.eventtap.keyStroke({"cmd","alt","shift","ctrl"}, 'm') end)
-- OR build your own
launch = function(appname)
@kbussell
kbussell / ctrlTap.lua
Last active February 13, 2021 17:46
Send escape key if the ctrl key is tapped. (Used along side remapping my Caps Lock key to ctrl) Thanks to @asmagill 's examples for a starting point.
local alert = require("hs.alert")
local timer = require("hs.timer")
local eventtap = require("hs.eventtap")
local events = eventtap.event.types
local module = {}
-- timeout for ctrol key
module.timeFrame = .25