Skip to content

Instantly share code, notes, and snippets.

@tmaone
tmaone / Price Breakdown.md
Created December 20, 2018 17:04 — forked from justjanne/Price Breakdown.md
Server Price Breakdown: DigitalOcean, Amazon AWS LightSail, Vultr, Linode, OVH, Hetzner, Scaleway/Online.net:

Server Price Breakdown: DigitalOcean, Amazon AWS LightSail, Vultr, Linode, OVH, Hetzner, Scaleway/Online.net:

Permalink: git.io/vps

$5/mo

Provider Type RAM Cores Storage Transfer Network Price

Keybase proof

I hereby claim:

  • I am tmaone on github.
  • I am tmaone (https://keybase.io/tmaone) on keybase.
  • I have a public key ASDUqbpIqUvOIRV6_vwS2EWufWdBMUhbmX734N7nhyY3fAo

To claim this, I am signing this object:

@tmaone
tmaone / amfid_patch.py
Last active April 23, 2022 20:26 — forked from pvieito/amfid_patch.py
This script can patch macOS 10.12.2 amfid daemon on memory to allow arbitrary entitlements in Developer ID signed binaries.
#!/usr/bin/env python3
'''amfid_patch.py - Pedro José Pereira Vieito © 2016
This script can patch macOS 10.12.2 amfid daemon on memory
to allow arbitrary entitlements in Developer ID signed binaries.
Killing amfid will make the patch disapear:
$ sudo kill -9 `pgrep amfid`
You must run the script as a root (sudo) and with SIP disabled.
@tmaone
tmaone / toggle-alfred-theme.bash
Created January 29, 2017 12:56 — forked from deanishe/toggle-alfred-theme.bash
Automatically toggle Alfred dark/light themes at sunset/sunrise. You need to edit the location settings before use.
#!/bin/bash -e
# Wrapper for the toggle_alfred_theme.py script at
# https://gist.github.com/deanishe/ce442c3a768adedc9c39
# (where this script also comes from)
#
# The purpose of this wrapper is to enable you to update the Python script
# without having to edit the script to change the settings each time. You keep
# them in here instead, and this script should hopefully prove dumb enough
# to require little updating...
@tmaone
tmaone / mac.sh
Created October 27, 2016 04:26
Disable bunch of #$!@ in Sierra
#!/bin/bash
# This is a draft but it works
# FIRST (I don't even know if it works but we'll assume yes)
# sudo launchctl list
# sudo launchctl disable system/netbiosd
# sudo launchctl disable system/parsecd
# sudo launchctl disable system/parentalcontrols.check
# sudo launchctl disable system/airportd
@tmaone
tmaone / osx_yosemite_disable_features.sh
Created July 24, 2016 21:27 — forked from guycalledseven/osx_yosemite_disable_features.sh
Disabling OSX Yosemite annoyances / features I have no use of
# Tested on OSX Yosemite 10.10.4
# there is also an updated version (work in progress) for El Capitan here https://gist.github.com/guycalledseven/31ffe35eca056838b06b
# XXX TODO
# should I disable com.google.Keystone.Agent ??
# http://applehelpwriter.com/2014/07/13/how-to-remove-googles-secret-update-software-from-your-mac/
# Stop DS_Store file creation on network connections
# restart Finder afterwards
@tmaone
tmaone / greek-radio.m3u
Created March 10, 2016 09:31 — forked from dennmtr/athens-radio.m3u
Playlist για Media Players (VLC), με ολους τους ραδιοφωνικούς σταθμούς Αθηνών και Δυτικής Ελλάδας (last update 20/9/15)
#EXTM3U
#EXTINF:0,89.80 | Dromos, Athens (Greek Mainstream) HQ - DROMOS FM
http://dromos898.live24.gr/dromos898
#EXTINF:0,102.2 | Sfera, Athens (Greek Mainstream) HQ - www.sfera.gr
http://sfera.live24.gr/sfera4132
#EXTINF:0,92.30 | Lampsi, Athens (Greek Mainstream) LQ - Lampsi 92.3
http://lampsi2-lh.akamaihd.net/i/live_1@324565/master.m3u8
#EXTINF:0,94.90 | Rythmos, Athens (Greek Mainstream) MQ - Rythmos 94.9
http://rythmos1-lh.akamaihd.net/i/live_1@334542/master.m3u8
#EXTINF:0,106.4 | Radio Argosaronikos, Nauplio (Greek Mainstream, Folk) HQ - RADIO ARGOSARONIKOS 106,4FM
@tmaone
tmaone / gist:eb32c3a68f029137558a
Created March 9, 2016 11:07 — forked from plepe/gist:52ecc9f18efb32c68d18
MDADM and LVM cheat sheet

mdadm

Glossary:

  • md: multiple devices
command description
cat /proc/mdstat show status of all raids
mdadm --detail /dev/md0 detailed status of raid md0
@tmaone
tmaone / tab.bash
Created February 27, 2016 10:13 — forked from vitalybe/tab.bash
Open new Terminal tabs from the command line
#!/bin/bash
#
# Open new Terminal tabs from the command line
#
# Author: Justin Hileman (http://justinhileman.com)
#
# Installation:
# Add the following function to your `.bashrc` or `.bash_profile`,
# or save it somewhere (e.g. `~/.tab.bash`) and source it in `.bashrc`
#
@tmaone
tmaone / test1.jl
Created January 7, 2016 17:42 — forked from catawbasam/test1.jl
first crack at Julia
##############################################################
# julia first test = test.jl
# running on Windows 64 with Commit 7076ab06f1 (2012-10-15)
#
# Julia runs in the crappy Windows terminal (autohotkey is one way out)
# - make sure QuickEdit is on
# - select with mouse and <enter> to copy
# - right click with mouse to paste
# AutoHotKey script -- ctl-F5 copies cur line; ctl-f6 pastes clipboard to console
#