Skip to content

Instantly share code, notes, and snippets.

Stay'n cold in Minnesota

Tegan Snyder tegansnyder

Stay'n cold in Minnesota
View GitHub Profile
asarkar /
Last active Jun 24, 2020 — forked from l0ki000/
Cisco Anyconnect CSD wrapper for OpenConnect macOS client
# Enter your vpn host here
if [[ -z ${CSD_HOSTNAME} ]]
echo "Define CSD_HOSTNAME with vpn-host in script text. Exiting."
exit 1
roadrunner2 / 0
Last active Oct 2, 2022
Linux on MacBook Pro Late 2016 and Mid 2017 (with Touchbar)
View 0


This is about documenting getting Linux running on the late 2016 and mid 2017 MPB's; the focus is mostly on the MacBookPro13,3 and MacBookPro14,3 (15inch models), but I try to make it relevant and provide information for MacBookPro13,1, MacBookPro13,2, MacBookPro14,1, and MacBookPro14,2 (13inch models) too. I'm currently using Fedora 27, but most the things should be valid for other recent distros even if the details differ. The kernel version is 4.14.x (after latest update).

The state of linux on the MBP (with particular focus on MacBookPro13,2) is also being tracked on . And for Ubuntu users there are a couple tutorials (here and here) focused on that distro and the MacBook.

Note: For those who have followed these instructions ealier, and in particular for those who have had problems with the custom DSDT, modifying the DSDT is not necessary anymore - se

piotrekkaminski / gist:9bc45ec84028611d621e
Last active Oct 14, 2019
How to automatically download patches and release of Magento
View gist:9bc45ec84028611d621e
1) First you need to generate download token. Login to your account on and generate it in Account Settings->Downloads Access Token
2) You will need your MAGEID as well. It is shown at the top-left in your account page.
3) curl -k
4) Profit!
mkanchwala / Kafka MultiNode - MultiBroker
Last active Jul 2, 2022
Create Kafka Multi Node, Multi Broker Cluster
View Kafka MultiNode - MultiBroker
christian-blades-cb /
Last active Jan 19, 2019
Fix issues with using boot2docker with Cisco's AnyConnect
#!/usr/bin/env bash
# If you're using docker-machine, call this script with your
# environment name
# Ex: ./vpn_fix dev
[ $(id -u) = 0 ] || { echo "You must be root (or use 'sudo')" ; exit 1; }
report_success ()
peterjaap /
Last active May 11, 2020
Convert images to smaller size and lower quality to reduce file sizes for Magento's original product photos
# Author: Peter Jaap Blaakmeer (
kalenjordan /
Last active Dec 24, 2015
Change copyright from 2013 to 2012
IvanChepurnyi / vhost.conf
Created Sep 27, 2013
This simple rewrite will help you to run phpunit from PHPStorm in Vagrant box without patching php.jar
View vhost.conf
location ~ ^/_intellij_phpunit_launcher.php$ {
expires off; ## Do not cache dynamic content
set $args "$args&dir=$document_root&config=phpunit.xml.dist";
fastcgi_pass unix://var/run/php5-fpm.sock; # Replace with your fpm pass
fastcgi_read_timeout 600;
include fastcgi_params; ## See /etc/nginx/fastcgi_params
jbenet /
Last active Sep 21, 2022
a simple git branching model

a simple git branching model (written in 2013)

This is a very simple git workflow. It (and variants) is in use by many people. I settled on it after using it very effectively at Athena. GitHub does something similar; Zach Holman mentioned it in this talk.

Update: Woah, thanks for all the attention. Didn't expect this simple rant to get popular.

IvanChepurnyi / Table.php
Last active Jul 11, 2022
Optimized options load
View Table.php
* Optimized version of attribute source options model
* That allows to preload options once and reuse them instead of doing calls to db all the time
class EcomDev_Optimization_Model_Resource_Attribute_Source_Table
extends Mage_Eav_Model_Entity_Attribute_Source_Table