Skip to content

Instantly share code, notes, and snippets.

View notjb's full-sized avatar
💭
✌️

/jb notjb

💭
✌️
View GitHub Profile
@notjb
notjb / zebra.html.twig
Last active February 25, 2021 12:55 — forked from NikLP/zebra.html.twig
Set zebra-style (odd/even) classes in twig loop in drupal 8 (bootstrap) theme
<div{{ attributes.addClass('container') }}>
{% for item in items %}
{% set zebra_class = loop.index0 is odd ? 'zebra-odd' : 'zebra-even' %}
<div{{ item.attributes.addClass(zebra_class) }}>
{{ item.content }}
</div>
{% endfor %}
</div>
@notjb
notjb / multiple_ssh_setting.md
Created February 21, 2021 15:57 — forked from jexchan/multiple_ssh_setting.md
Multiple SSH keys for different github accounts

Multiple SSH Keys settings for different github account

create different public key

create different ssh key according the article Mac Set-Up Git

$ ssh-keygen -t rsa -C "your_email@youremail.com"
@notjb
notjb / mysql-setup-mac-with-sequel-pro.md
Created February 19, 2021 15:22 — forked from joeyklee/mysql-setup-mac-with-sequel-pro.md
Setting up mysql on mac with sequel pro and homebrew

Setup instructions

Setting up mysql on mac with sequel pro and homebrew

MacOS high sierra 10.13.6
Homebrew version 1.7.6

Assuming you've installed homebrew...

@notjb
notjb / download_podcast.py
Created July 23, 2019 04:45 — forked from dperelman/download_podcast.py
Download all items in a podcast.
#!/usr/bin/env python
from __future__ import print_function
import datetime
import feedparser
import time
import os
import sys
from six.moves import urllib