Skip to content

Instantly share code, notes, and snippets.

View thomasrstegelmann's full-sized avatar

Thomas R. Stegelmann thomasrstegelmann

View GitHub Profile
@thomasrstegelmann
thomasrstegelmann / hack.sh
Created March 31, 2012 17:27 — forked from erikh/hack.sh
OSX For Hackers
#!/usr/bin/env sh
##
# This is script with usefull tips taken from:
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
#
# install it:
# curl -sL https://raw.github.com/gist/2266927/hack.sh | sh
#
@thomasrstegelmann
thomasrstegelmann / targeted-auto-follow.js
Last active November 1, 2024 20:25
I modified Karan's script to follow only profiles that match a certain keywords to follow only relevant accounts. Please see https://medium.com/marketing-102/how-i-grew-from-300-to-5k-followers-in-just-3-weeks-2436528da845#.75mau0pj9 for details
a = setInterval(function () {
window.scrollTo(0,document.body.scrollHeight);
$(".ProfileCard-userFields").each( function() {
if($(this).find('.ProfileCard-bio').text().match(new RegExp("google|twitter|airbnb|entrepreneur|founder|tech|growthhacking|hacking|official|consultant|analytics|ecom|startup|ceo|ux|seo|ecommerce|growth"), "g") !== null )
{
$(this).parent().find('.not-following .user-actions-follow-button.js-follow-btn').click();
}
@thomasrstegelmann
thomasrstegelmann / code.js
Created December 16, 2015 12:29
To avoid flickering when you try hiding elements with Optimizely, inject css styleheads into the head element instead of using Javasript to apply css to each element.
/* _optimizely_evaluate=force */
$('head').append('<style type="text/css">.something {display:none !important;}</style>');
/* _optimizely_evaluate=safe */
$('head').append('<style type="text/css">.something {display:none !important;}</style>');
@thomasrstegelmann
thomasrstegelmann / crowdfire-unfollow.js
Last active January 12, 2016 17:00
Paste the following code in your browser's console to unfollow all users visible in Crowdfire's (http://web.crowdfireapp.com/) unfollow view instead of clicking each icon manually.
// Use clearInterval(a); to stop interval or reload page
a = setInterval(function () {
// Scroll to bottom
window.scrollTo(0,document.body.scrollHeight);
// Unfollow
$(".icon-button-unfollow").click();
}, 1000);
@thomasrstegelmann
thomasrstegelmann / love.scpt
Last active July 27, 2016 16:46
An AppleScript that sends a random iMessage of love to your partner: You need to adjust the e-mail address to your special one and store this on your desktop for this special moment when you want to share some love, but just don't have the time.
set messages to {"Love you! 😍", "You are the best!", "Kiss 😘😘", "😘", "😍😍😍", "💋"}
set message to some item of messages
tell application "Messages"
send message to buddy "[email protected]" of (service 1 whose service type is iMessage)
end tell