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 / macos-appstore-ddl
Last active August 31, 2022 12:51
If like me, you like to perform clean install for when updating the OS, you'll maybe wonder where to get the OS latest *version -1*. There are 2 reasons : First, you want to use something stable. Going for Catalina when it just came out is not recommended, so go for the previous one : Mojave :) Secondly Apple is removing it from the available do…
- Catalina : https://apps.apple.com/us/app/macos-catalina/id1466841314?mt=12
- Mojave : https://apps.apple.com/us/app/macos-mojave/id1398502828?mt=12
- High Sierra : https://apps.apple.com/us/app/macos-high-sierra/id1246284741?mt=12
- Sierra : https://apps.apple.com/us/app/macos-sierra/id1127487414?mt=12
- El Capitan : https://apps.apple.com/us/app/os-x-el-capitan/id1147835434?mt=12
- Big Sur : https://apps.apple.com/us/app/macos-big-sur/id1526878132?mt=12
@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
@notjb
notjb / m-browser-theming.html
Last active October 2, 2016 10:27
Header meta for mobile browser theming purpose
<!-- Modify this meta for android devices :
@link https://developers.google.com/web/fundamentals/design-and-ui/browser-customization/theme-color -->
<!-- Chrome, Firefox OS and Opera -->
<meta name="theme-color" content="#78be20">
<!-- Windows Phone -->
<meta name="msapplication-navbutton-color" content="#78be20">
<!-- iOS Safari -->
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
@notjb
notjb / ig-lsd-gradient.css
Last active August 15, 2017 13:15
A css gradient following the evolution of the instagram brand to a more LSD-ish style ...
/**
* Generated w/ http://www.gradient-scanner.com/
* Based on rotated https://www.instagram-brand.com/img/instagram/bg.mast.jpg
* CSS enhancement by @justinbasile
* Default color v/ http://findguidelin.es/
* Sourcing by @bonylaco @benjung @akkolad
* @TODO : Add of a filter for IE6-9 support purpose
**/
background : #E12F67; /* Old browsers */
@notjb
notjb / A-Pen-by-justinbasile.markdown
Created February 18, 2014 16:12
A Pen by justinbasile.