Skip to content

Instantly share code, notes, and snippets.

@ngerasimatos
ngerasimatos / org.nsa.pf.rules
Created October 23, 2018 07:08
OS X Firewall Packet Filter (pfctl): Killswitch + Protection
# Put this file in /etc/pf.anchors/
# Options
set block-policy drop
set fingerprints "/etc/pf.os"
set ruleset-optimization basic
set skip on lo0
# Interfaces
inet_define = "en0"
@ngerasimatos
ngerasimatos / disable.sh
Created October 23, 2018 06:56 — forked from gopsmith/disable.sh
Disable bunch of #$!@ in Sierra (Version 2.1)
#!/bin/bash
# IMPORTANT: You will need to disable SIP aka Rootless in order to fully execute this script, you can reenable it after.
# WARNING: It might disable things that you may not like. Please double check the services in the TODISABLE vars.
# Get active services: launchctl list | grep -v "\-\t0"
# Find a service: grep -lR [service] /System/Library/Launch* /Library/Launch* ~/Library/LaunchAgents
# Agents to disable
TODISABLE=('com.apple.security.keychainsyncingoveridsproxy' 'com.apple.personad' 'com.apple.passd' 'com.apple.screensharing.MessagesAgent' 'com.apple.CommCenter-osx' 'com.apple.Maps.mapspushd' 'com.apple.Maps.pushdaemon' 'com.apple.photoanalysisd' 'com.apple.telephonyutilities.callservicesd' 'com.apple.AirPlayUIAgent' 'com.apple.AirPortBaseStationAgent' 'com.apple.CalendarAgent' 'com.apple.DictationIM' 'com.apple.iCloudUserNotifications' 'com.apple.familycircled' 'com.apple.familycontrols.useragent' 'com.apple.familynotificationd' 'com.apple.gamed' 'com.apple.icloud.findmydeviced.findmydevi
@ngerasimatos
ngerasimatos / gist:5d8b44e0e8d89181c9076eceaee7c1dc
Created December 9, 2017 22:53 — forked from mestizo/gist:9167834
Completely disable IPv6 on OSX
#To Get List of Hardware
sudo networksetup -listallhardwareports
#To Disable IPv6 on Wifi Adapter
sudo networksetup -setv6off wi-fi
#To Disable IPv6 on Built-in Ethernet Adapter
sudo networksetup -setv6off Ethernet
@ngerasimatos
ngerasimatos / install-brew.sh
Created October 15, 2017 20:33 — forked from kevinkarwaski/install-brew.sh
Install Brew and set up for Standard OSX User
#!/usr/bin/env bash
# This script installs brew and chowns the right directories needed to run
# brew as a standard user. Your user should be the owner of /usr/local which
# gets set during the installation of brew. The global homebrew cache directory
# group should be set to 'staff' which is not set during a brew install. This
# script fixes that.
# To begin, you MUST execute this script with your user account while it has
# admin privileges. Once the script completes, you can change your
@ngerasimatos
ngerasimatos / CenturyLink Speeds Output
Last active August 31, 2017 14:33
CenturyLink Speeds Output
@ngerasimatos
ngerasimatos / qwiklabs-cloudformation.yml
Created July 19, 2017 17:05
qwiklabs-cloudformation.yml
---
AWSTemplateFormatVersion: 2010-09-09
Description: Cloudformation for OpenShift Admin Test Drive
Parameters:
PublicHostedZone:
Type: String
Default: "ocp-admin.aws.openshifttestdrive.com"
#!/usr/bin/env bash
CURRENT="`pwd`"
# Ask for the administrator password upfront
sudo -v
# Keep-alive: update existing `sudo` time stamp until `.osx` has finished
while true; do sudo -n true; sleep 60; kill -0 "$$" || exit; done 2>/dev/null &
@ngerasimatos
ngerasimatos / System Tweaks For a Better Mac Experience
Created February 9, 2017 02:05
System Tweaks For a Better Mac Experience
Apply these tweaks by running the corresponding commands in Terminal (found at /Applications/Utilities/Terminal.app).
Disable Dock Autoshow Delay
I hide my dock to maximize the usable area of my screen. By default, there’s a short delay on the autoshowing dock animation. This removes the delay:
defaults write com.apple.Dock autohide-delay -float 0 && killall Dock
Show the Library Folder in Finder (Lion and later)
In Lion and Mountain Lion, the Library folder is hidden from view. This will make it appear in your home folder again:
chflags nohidden ~/Library/
@ngerasimatos
ngerasimatos / Nicholas_Gerasimatos_Resume.md
Last active January 4, 2017 02:23
Nicholas_Gerasimatos_Resume.md

Nicholas Gerasimatos Seattle, WA Mobile: 206.569.4421

Summary:

Work with strategic Red Hat Certified Cloud Service Providers to design, build and integrate emerging technologies, solutions and products into their portfolios, data centers, lines of business, and route-to-market offerings.

My role allows me to develop executive relationships and act as a trusted advisor to help influence and accelerate the adoption of emerging technologies by sharing the overall vision of multi-product offerings and creating awareness of emerging technologies.