Skip to content

Instantly share code, notes, and snippets.

View nikolay's full-sized avatar
🤷‍♂️
¯\_(ツ)_/¯

Nikolay Kolev nikolay

🤷‍♂️
¯\_(ツ)_/¯
View GitHub Profile
@nikolay
nikolay / tup.patch
Last active December 27, 2015 01:09
Patch tup to use OSXFUSE and not Fuse4X
diff --git a/Tupfile b/Tupfile
index 132e4ea..03be53f 100644
--- a/Tupfile
+++ b/Tupfile
@@ -23,7 +23,7 @@ ifeq (@(TUP_SUDO_SUID),y)
suid = ; chown root:$(TUP_SUID_GROUP) tup; chmod u+s tup
endif
-LDFLAGS += `pkg-config fuse --libs`
+LDFLAGS += `pkg-config osxfuse --libs`
Verifying that +nikolay is my Bitcoin username. You can send me #bitcoin here: https://onename.io/nikolay
@nikolay
nikolay / remove-ga-tags.inc.conf
Created January 17, 2015 19:00
Remove Google Analytics tags to improve caching
if ($args ~ (.*)utm_source=[^&]*(.*)) {
set $args $1$2;
}
if ($args ~ (.*)utm_medium=[^&]*(.*)) {
set $args $1$2;
}
if ($args ~ (.*)utm_term=[^&]*(.*)) {
set $args $1$2;
}
if ($args ~ (.*)utm_content=[^&]*(.*)) {
@nikolay
nikolay / CloudFormation.md
Last active August 29, 2015 14:17
Amazon Web Services Pet Peeves

Tagging

  • Can't have tags for the CloudFormation stack itself (needs to always use scripts)
  • Add global template tags, which will be set on each taggable resource (i.e. company name, etc.)
  • No tags on ElastiCache, CloudFront Distribution and maybe others

Mappings

  • Mappings should allow arbitrary levels (currently fixed to just 2)
  • A mapping should be able to nest another mapping (via something like { "Mapping" : "..." })
@nikolay
nikolay / keybase.md
Created April 3, 2015 20:17
keybase.md

Keybase proof

I hereby claim:

  • I am nikolay on github.
  • I am nikolay (https://keybase.io/nikolay) on keybase.
  • I have a public key whose fingerprint is 3B28 0904 E499 7175 FD0F 657A 2855 97CB 5C77 8BBF

To claim this, I am signing this object:

@nikolay
nikolay / migrate.sh
Created July 9, 2016 15:57
Migrate Caskroom
main () {
local file
local old_location
for file in $HOME/Applications/*.app; do
if [[ -e "$file" ]]; then
old_location="$(readlink "$file")"
if [[ -e $old_location ]] \
&& [[ $old_location == /opt/homebrew-cask/Caskroom/* ]]; then
ln -sf "/usr/local${old_location#/opt/homebrew-cask}" "$file"
fi
@nikolay
nikolay / latest-amazon-linux-ami.sh
Last active March 27, 2017 22:19
Get the latest Amazon Linux AMI ID
aws ec2 describe-images \
--owners amazon \
--filters \
'Name=name,Values=amzn-ami-hvm-????.??.?.????????-x86_64-gp2' \
'Name=state,Values=available' \
'Name=architecture,Values=x86_64' \
'Name=virtualization-type,Values=hvm' \
'Name=root-device-type,Values=ebs' \
--query 'sort_by(Images, &CreationDate)[-1].ImageId'
@nikolay
nikolay / README.md
Last active September 4, 2017 20:35
Homebrew Cask Outdated

This script shows a more complete list of outdated casks. Here's an example:

[nikolay:~] $ brew cask outdated
[nikolay:~] $ ./cask-outdated.sh
caprine (2.6.1) < 2.6.2
dropbox (22.3.22) < latest
github-desktop (0.7.2-cb858085) < 0.8.0-364fa5b9
iterm2-beta (3.1.beta.6) < 3.1.beta.8
microsoft-office (15.33.17040900) &lt; 15.37.17081500
Verifying that "nikolay.id" is my Blockstack ID. https://onename.com/nikolay
@nikolay
nikolay / verification.txt
Created October 31, 2017 23:54
Earn.com Verification
Verifying my Blockstack ID is secured with the address 14HpDefMHWBXwi4LBTFzhJgibGKj9EPuhY https://explorer.blockstack.org/address/14HpDefMHWBXwi4LBTFzhJgibGKj9EPuhY