Skip to content

Instantly share code, notes, and snippets.

View mintyPT's full-sized avatar
🦑

MG Santos mintyPT

🦑
View GitHub Profile
@jackysee
jackysee / twitter-pinboard.user.js
Last active August 31, 2017 06:39
Twitter pinboard shortcut
// ==UserScript==
// @id Twitter pinbaord unread
// @name Twitter pinboard unread
// @namespace http://jacky.seezone.net/twitterpinboardunread
// @description press p to save link in current tweets to pinobard unread
// @include https://twitter.com/*
// @include http://twitter.com/*
// ==/UserScript==
function getTitle(link){
@johan
johan / on.js
Created October 24, 2012 07:09
A highly useful userscript function for filtering web pages by DOM contents, pathnames and otherwise.
/* coffee-script example usage - at https://github.com/johan/dotjs/commits/johan
on path_re: ['^/([^/]+)/([^/]+)(/?.*)', 'user', 'repo', 'rest']
query: true
dom:
keyboard: 'css .keyboard-shortcuts'
branches: 'css+ .js-filter-branches h4 a'
dates: 'css* .commit-group-heading'
tracker: 'css? #gauges-tracker[defer]'
johan_ci: 'xpath* //li[contains(@class,"commit")][.//a[.="johan"]]'
@mintyPT
mintyPT / Makefile
Last active February 12, 2021 13:45
Example of a Makefile to work with django
# ^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-
# SETUP
# ^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-
.PHONY: help activate install flake8 isort black check virtualenv-path runserver runserver_plus migrations migrate shell shell_plus makemessages compilemessages collectstatic createsuperuser reset_db startapp clear_cache services
YELLOW := "\e[1;33m"
NC := "\e[0m"
INFO := @bash -c 'printf $(YELLOW); echo "=> $$1"; printf $(NC)' MESSAGE
@meiamsome
meiamsome / hn_search.js
Last active May 4, 2022 13:23 — forked from kristopolous/hn_seach.js
hn job query search
/* Hacker News Search Script
*
* Original Script by Kristopolous:
* https://gist.github.com/kristopolous/19260ae54967c2219da8
*
* Usage:
* First, copy the script into your browser's console whilst on the Hacker News
* jobs page. Then, you can use the query function to filter the results.
*
* For example,
@mvsantos
mvsantos / jira-quick-filters-jql.md
Last active February 11, 2023 21:57
Collection of Jira JQL

URGENT

(priority IN (Critical, High) OR (duedate >= "-7d" AND duedate <= "7d"))

Blocked

Flagged IS NOT EMPTY

Bugs

@kristopolous
kristopolous / hn_seach.js
Last active July 24, 2023 04:12
hn job query search
// Usage:
// Copy and paste all of this into a debug console window of the "Who is Hiring?" comment thread
// then use as follows:
//
// query(term | [term, term, ...], term | [term, term, ...], ...)
//
// When arguments are in an array then that means an "or" and when they are seperate that means "and"
//
// Term is of the format:
// ((-)text/RegExp) ( '-' means negation )
@Bhavdip
Bhavdip / sketch-never-ending.md
Created October 6, 2016 15:53
Modify Sketch to never ending trial

###Sketch trial non stop

Open hosts files:

$ open /private/etc/hosts

Edit the file adding:

127.0.0.1 backend.bohemiancoding.com

127.0.0.1 bohemiancoding.sketch.analytics.s3-website-us-east-1.amazonaws.com

@mlavin
mlavin / NOTES.rst
Created September 23, 2013 14:17
Celery Late Ack Example

Running the Example

Start the worker:

celery -A tasks worker --loglevel=info -c 2 --pidfile=celery.pid

In another terminal send 6 tasks:

python script.py
@clarkbw
clarkbw / redux-performance-mark.js
Last active February 8, 2024 05:03
A User Timing middleware for redux to create performance markers for dispatched actions
const timing = store => next => action => {
performance.mark(`${action.type}_start`);
let result = next(action);
performance.mark(`${action.type}_end`);
performance.measure(
`${action.type}`,
`${action.type}_start`,
`${action.type}_end`
);
return result;
@merlinmann
merlinmann / wisdom.md
Last active April 17, 2024 21:52
Merlin's Wisdom Project (Draft)

Merlin's Wisdom Project

Or: “Everybody likes being given a glass of water.”

By Merlin Mann.

It's only advice for you because it had to be advice for me.