Skip to content

Instantly share code, notes, and snippets.

View rlam3's full-sized avatar

rlam3

View GitHub Profile
@rlam3
rlam3 / 📊 Weekly development breakdown
Last active March 12, 2024 00:35
📊 Weekly development breakdown
Python 17 hrs 41 mins █████████████▎░░░░░░░ 63.6%
YAML 3 hrs 39 mins ██▊░░░░░░░░░░░░░░░░░░ 13.2%
JavaScript 2 hrs 4 mins █▌░░░░░░░░░░░░░░░░░░░ 7.5%
Docker 1 hr 32 mins █▏░░░░░░░░░░░░░░░░░░░ 5.6%
JSON 42 mins ▌░░░░░░░░░░░░░░░░░░░░ 2.5%
from pathlib import Path
def sizeof_fmt(num, suffix='B'):
"""Readable file size"""
for unit in ['', 'k', 'M', 'G', 'T', 'P', 'E', 'Z']:
if abs(num) < 1024.0:
return "%3.1f %s%s" % (num, unit, suffix)
num /= 1024.0
return "%.1f%s%s" % (num, 'Yi', suffix)
@tangjeff0
tangjeff0 / random_notion.py
Last active July 9, 2023 17:01
get random notion notes to resurface your old ideas!
'''
author:
@tangjeff0
https://www.notion.so/tangjeff0/Public-Home-0e2636bd409b454ea64079ad8213491f
inspired by: https://praxis.fortelabs.co/p-a-r-a-iii-building-an-idea-generator-400347ef3bb6/
with help from: https://medium.com/@jamiealexandre/introducing-notion-py-an-unofficial-python-api-wrapper-for-notion-so-603700f92369
credits:
@jamiealexandre
@M0r13n
M0r13n / render.html
Last active October 6, 2023 06:32
A sample Wtforms field for creating a list of tags with custom separators, e.g. "," or " ".
<form action="" method="POST" role="form" class="form">
{{ form.hidden_tag() }}
<!--Other fields-->
{{ wtf.form_field(form.tags, placeholder='audio, hardware, chip') }}
<button class="btn btn-success" type="submit">submit</button>
</form>
xcode-select --install
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew update
brew cask install iterm2
# update iterm2 settings -> colors, keep directory open new shell, keyboard shortcuts
brew install bash # latest version of bash
# set brew bash as default shell
brew install fortune
brew install cowsay
brew install git
@james2doyle
james2doyle / ios-chrome-devtools.md
Last active May 17, 2023 04:33
Enable remote debugging on the iOS simulator using Chrome Dev Tools

Install the tools:

brew install ios-webkit-debug-proxy

Run the simulator. And choose an iOS 10 device. The chrome remote debugging doesn't work with iOS 11 yet.

Enable the inspector

@480
480 / gist:3b41f449686a089f34edb45d00672f28
Last active April 11, 2024 23:56
MacOS X + oh my zsh + powerline fonts + visual studio code terminal settings

MacOS X + oh my zsh + powerline fonts + visual studio code (vscode) terminal settings

Thank you everybody, Your comments makes it better

Install oh my zsh

http://ohmyz.sh/

sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
@t3db0t
t3db0t / gist:de49195d1e6809c9c1e8a413dfe85a47
Created September 8, 2016 21:57
Why Clubhouse/Why Not Jira
TL;DR: JIRA is the salesforce of project management: slow, ancient, difficult. Clubhouse is a modern, reactive application tailor-made for agile product development. I’ve measured speed increases of 400-1500% (or more in a few worst cases). No, I’m not making that up.
Why Clubhouse?
Here’s a simple presentation I made of why:
https://docs.google.com/presentation/d/14KWfFRXzAJGA1oAblV_5Z4wSPcuR74QxaFLaM2Mjhsg/pub?start=false&loop=false&delayms=3000
A few additional items:
- Easily configurable/filterable workspaces
- Shareable workspaces for custom views tailored to a specific purpose
@DenisIzmaylov
DenisIzmaylov / README.md
Last active March 1, 2022 15:10
Step By Step Guide To Setup Docker Registry

Step By Step Guide To Setup CI/CD With Docker Registry

Step-by-Step Guide how to install CI/CD with Docker Registry On Ubuntu 14.04 LTS from scratch.

  1. Install Docker using Official Manual or just run:
sudo bash
apt-get update
apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
@cecilemuller
cecilemuller / letsencrypt_2020.md
Last active April 15, 2024 02:19
How to setup Let's Encrypt for Nginx on Ubuntu 18.04 (including IPv6, HTTP/2 and A+ SSL rating)

How to setup Let's Encrypt for Nginx on Ubuntu 18.04 (including IPv6, HTTP/2 and A+ SLL rating)


Virtual hosts

Let's say you want to host domains first.com and second.com.

Create folders for their files: