Skip to content

Instantly share code, notes, and snippets.

@Metacowboy
Metacowboy / osx-10.11-setup.md
Created February 18, 2025 07:39 — forked from kevinpapst/osx-10.11-setup.md
Mac OS X 10.11 El Capitan Setup

Developer setup for Mac OS X 10.11 El Capitan

Inspired by a Gist from kevinelliott - thanks!

Software

Install from App Store

  • Xcode - for command line tools required by Homebrew
@Metacowboy
Metacowboy / check_if_gmail_exists.sh
Created January 3, 2024 09:44 — forked from guerrerocarlos/check_if_gmail_exists.sh
Example telnet to check if a GMAIL email exists
telnet gmail-smtp-in.l.google.com 25
Connected to gmail-smtp-in.l.google.com.
220 mx.google.com ESMTP t2si1556751otm.271 - gsmtp
HELO gmail.com
250 mx.google.com at your service
mail from:<cguerrero@masterworks.io>
250 2.1.0 OK t2si1556751otm.271 - gsmtp
rcpt to:<thisemaildoesnotexist232131@gmail.com>
550-5.1.1 The email account that you tried to reach does not exist. Please try
550-5.1.1 double-checking the recipient's email address for typos or
// tries to execute the uri:scheme
function uriSchemeWithHyperlinkFallback(uri, href) {
if(!window.open(uri)){
window.location = href;
}
}
@Metacowboy
Metacowboy / mamp-db-backup.sh
Created February 18, 2022 14:45 — forked from dominicfallows/mamp-db-backup.sh
Bash shell script to backup MAMP databases to individual files (for MAMP with MySQL 5.6+)
#!/bin/bash
#
# Description: Shell script to backup all MAMP MySQL databases into compressed files
# Script: mamp-db-backup.sh
# Version: 1.0.1
# Script Website: https://gist.github.com/dominicfallows/c1f7bd150f946b7d1dfd1a720a13f8fc
# Author: Dominic Fallows
# Author Website: https://gist.github.com/dominicfallows
#
# Requirements:
@Metacowboy
Metacowboy / EventComponent.js
Created February 17, 2022 03:27 — forked from hartzis/EventComponent.js
Touch Event Handling React Component
import React from 'react';
export default class EventComponent extends React.Component {
constructor(props) {
super(props);
this._onTouchStart = this._onTouchStart.bind(this);
this._onTouchMove = this._onTouchMove.bind(this);
this._onTouchEnd = this._onTouchEnd.bind(this);
/**
* Create Google Calendar from Dispo Spreadsheet
* by Amir Esmann support@metaprime.at
*
* Legent : Cell Red #ff0000. GEBLOCKT
* Cell GREEN #92d050. GEBUCHT
* Cell.YELLOW
* Todo: Check if Termin Exist | GET Aktive SHEET NAME
* DEF :https://stackoverflow.com/questions/50815817/google-script-select-an-entire-row-in-a-google-spreadsheet
*/
@Metacowboy
Metacowboy / readme.md
Created September 2, 2021 12:14 — forked from max-mapper/readme.md
Video stabilization using VidStab and FFMPEG (Mac OS X)

Video stabilization using VidStab and FFMPEG

Examples here use the default settings, see the VidStab readme on GitHub for more advanced instructions.

Here's an example video I made

Install ffmpeg with the vidstab plugin from homebrew

brew install ffmpeg --with-libvidstab

I recently got a new Macbook Pro and wanted to document how I setup my PHP environment. I like full control of how PHP is built and I usually build it from source. I do this because I often add custom extensions and modules not found in the common PHP OSX installers. If your looking for a easier method than building from source try https://php-osx.liip.ch/.

NOTE: This post assumes you are running a fresh install of MacOS Sierra 10.12.16 with System Integrity Protection disabled. If you don't know how to disable it just boot into recovery mode and open a terminal and type csrutil disable, or google search it :) This post also assumes you are using Zsh instead of Bash shell. If you are using Bash you can replace anytime you see ~/.zshrc with ~/.bashrc.

First lets get some of the prerequisites. Start by grabbing the command line tools neccessary:

xcode-select --install
@Metacowboy
Metacowboy / debugger pause beforeunload
Created October 16, 2019 09:55 — forked from carcinocron/debugger pause beforeunload
Chrome: pause before redirect
// Run this in the F12 javascript console in chrome
// if a redirect happens, the page will pause
// this helps because chrome's network tab's
// "preserve log" seems to technically preserve the log
// but you can't actually LOOK at it...
// also the "replay xhr" feature does not work after reload
// even if you "preserve log".
window.addEventListener("beforeunload", function() { debugger; }, false)
@Metacowboy
Metacowboy / tinder-api-documentation.md
Created April 11, 2019 07:56 — forked from rtt/tinder-api-documentation.md
Tinder API Documentation

Tinder API documentation

http://rsty.org/

I've sniffed most of the Tinder API to see how it works. You can use this to create bots (etc) very trivially. Some example python bot code is here -> https://gist.github.com/rtt/5a2e0cfa638c938cca59 (horribly quick and dirty, you've been warned!)

Note: this was written in April/May 2014 and the API may have changed since. I have nothing to do with Tinder, nor their API, and I do not offer any support for anything you may build on top of this

API Details