Skip to content

Instantly share code, notes, and snippets.

View nandoquintana's full-sized avatar
🙂

Nando Quintana nandoquintana

🙂
View GitHub Profile
@nandoquintana
nandoquintana / instagram_hashtags.py
Created December 5, 2019 09:51
Find instagram hashtags through a regular expression in Python
import re
txt = """
hola @gorka!!!!!! #ñam???? #normal #subtêrráneo @nandoquintana #puravida!!! #espagne🇪🇸
#凤凰卫视
"""
not_in_hashtags = "\"$%&'()*+,-./:;<=>?[\]^`{|}~\n#@ "
hashtags = re.findall(f'\#[^{re.escape(not_in_hashtags)}]+', txt)
@rahul-pande
rahul-pande / pg_download_operator.py
Created September 5, 2016 07:48
Airflow Postgres Download Operator
# Airflow Operator to download results of a sql query to a file on the worker
# Pass chunksize parameter to download large tables without the
# worker running out of memory
import logging
from airflow.hooks.postgres_hook import PostgresHook
from airflow.models import BaseOperator
from airflow.utils.decorators import apply_defaults
@kra3
kra3 / eq.preset
Created March 26, 2014 12:11
Audacious presets: ~/.config/audacious/eq.preset
[Presets]
Preset0=Classical
Preset1=Club
Preset2=Dance
Preset3=Flat
Preset4=Live
Preset5=Laptop Speakers/Headphone
Preset6=Rock
Preset7=Pop

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name:

@craigds
craigds / mac-development-for-ubuntu-users.rst
Last active May 24, 2021 08:45
Mac development for Ubuntu users

Mac development for Ubuntu users

This is a quick summary of tweaks to make development on a Mac easier for Ubuntu users. These all worked on my Macbook Air with OSX 10.7 Lion.

If you have something to add here, please let me know! http://twitter.com/craigds

1. Install Xcode