Skip to content

Instantly share code, notes, and snippets.

View tekniklr's full-sized avatar
🦾

T tekniklr

🦾
View GitHub Profile
@eviltester
eviltester / gist:11093f0e4c501a41990e227393184eda
Last active April 24, 2024 11:35
uncheck twitter interests
var timer=100;document.querySelectorAll("div > input[type='checkbox']:checked").forEach((interest) => {setTimeout(function(){interest.click()},timer);timer+=2000;});
@fernandoaleman
fernandoaleman / mysql2-mojave.md
Last active February 7, 2024 19:19
Install mysql2 on MacOS Mojave

For MacOS Catalina, visit Install mysql2 on MacOS Catalina

Problem

Installing mysql2 gem errors on MacOS Mojave.

Solution

Make sure openssl is installed on Mac via Homebrew.

@abhisheknaik96
abhisheknaik96 / twitterJekyllEmbed.md
Last active September 5, 2023 05:26
A tutorial on embedding a twitter stream to a Jekyll project.

Embedding a twitter stream in Jekyll

  1. Create a _plugins folder in your root.
  2. Add the following to _config.yml
plugins:
  - jekyll-gist
  1. If you don't have a Gemfile associated with your Jekyll project, create one with the following text
@giannisp
giannisp / gist:b53a76047b07751ed3ade3c1db1d2c51
Created November 18, 2016 05:50
Upgrade PostgreSQL 9.5.5 to 9.6.1 using Homebrew (macOS)
After automatically updating Postgres to 9.6.1 via Homebrew, the pg_ctl start command didn't work.
The error was something like "database files are incompatible with server".
Database files have to be updated before starting the server, here are the steps that had to be followed:
# need to have both 9.6.1 and latest 9.5.x installed, and keep 9.6.1 as default
brew unlink postgresql
brew install postgresql95
brew unlink postgresql95
brew link postgresql

In a glass, combine:

  1. 1oz bourbon whiskey
  2. 1oz whiskey
  3. 1oz bourbon
  4. 2oz bourbon whiskey

Apply to face.

#RIOT CODE GRRRL MANIFESTO #####(based on the original RIOT GRRRL MANIFESTO)

BECAUSE us girls crave apps and games and websites that speak to US that WE feel included in and can understand in our own ways.

BECAUSE we wanna make it easier for girls to see/hear each other's work so that we can share strategies and criticize-applaud each other.

BECAUSE we must take over the means of production in order to create our own revolution.

BECAUSE viewing our work as being connected to our girlfriends-politics-real lives is essential if we are gonna figure out how we are doing impacts, reflects, perpetuates, or DISRUPTS the status quo.

@lfender6445
lfender6445 / gist:9919357
Last active May 2, 2024 22:40
Pry Cheat Sheet

Pry Cheat Sheet

Command Line

  • pry -r ./config/app_init_file.rb - load your app into a pry session (look at the file loaded by config.ru)
  • pry -r ./config/environment.rb - load your rails into a pry session

Debugger