Skip to content

Instantly share code, notes, and snippets.

@staltz
staltz / introrx.md
Last active January 23, 2026 10:31
The introduction to Reactive Programming you've been missing
@PurpleBooth
PurpleBooth / README-Template.md
Last active January 23, 2026 10:31
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

area_data = {
'่‡บๅŒ—ๅธ‚': [
'ไธญๆญฃๅ€', 'ๅคงๅŒๅ€', 'ไธญๅฑฑๅ€', '่ฌ่ฏๅ€', 'ไฟก็พฉๅ€', 'ๆพๅฑฑๅ€', 'ๅคงๅฎ‰ๅ€', 'ๅ—ๆธฏๅ€', 'ๅŒ—ๆŠ•ๅ€', 'ๅ…งๆน–ๅ€', 'ๅฃซๆž—ๅ€', 'ๆ–‡ๅฑฑๅ€'
],
'ๆ–ฐๅŒ—ๅธ‚': [
'ๆฟๆฉ‹ๅ€', 'ๆ–ฐ่ŽŠๅ€', 'ๆณฐๅฑฑๅ€', 'ๆž—ๅฃๅ€', 'ๆทกๆฐดๅ€', '้‡‘ๅฑฑๅ€', 'ๅ…ซ้‡Œๅ€', '่ฌ้‡Œๅ€', '็Ÿณ้–€ๅ€', 'ไธ‰่Šๅ€', '็‘ž่Šณๅ€', 'ๆฑๆญขๅ€', 'ๅนณๆบชๅ€', '่ฒขๅฏฎๅ€', '้›™ๆบชๅ€', 'ๆทฑๅ‘ๅ€', '็Ÿณ็ข‡ๅ€', 'ๆ–ฐๅบ—ๅ€', 'ๅชๆž—ๅ€', '็ƒไพ†ๅ€', 'ไธญๅ’Œๅ€', 'ๆฐธๅ’Œๅ€', 'ๅœŸๅŸŽๅ€', 'ไธ‰ๅณฝๅ€', 'ๆจนๆž—ๅ€', '้ถฏๆญŒๅ€', 'ไธ‰้‡ๅ€', '่˜†ๆดฒๅ€', 'ไบ”่‚กๅ€'
],
'ๅŸบ้š†ๅธ‚': [
'ไปๆ„›ๅ€', 'ไธญๆญฃๅ€', 'ไฟก็พฉๅ€', 'ไธญๅฑฑๅ€', 'ๅฎ‰ๆจ‚ๅ€', 'ๆš–ๆš–ๅ€', 'ไธƒๅ ตๅ€'
],
@ashleydw
ashleydw / nginx.conf
Last active December 31, 2025 11:43
Laravel nginx conf file
server {
listen 80 default_server;
server_name example.com www.example.com;
access_log /srv/www/example.com/logs/access.log;
error_log /srv/www/example.com/logs/error.log;
root /srv/www/example.com/public;
index index.php index.html;
@earthgecko
earthgecko / bash.generate.random.alphanumeric.string.sh
Last active December 30, 2025 02:28
shell/bash generate random alphanumeric string
#!/bin/bash
# bash generate random alphanumeric string
#
# bash generate random 32 character alphanumeric string (upper and lowercase) and
NEW_UUID=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1)
# bash generate random 32 character alphanumeric string (lowercase only)
cat /dev/urandom | tr -dc 'a-z0-9' | fold -w 32 | head -n 1
@CristinaSolana
CristinaSolana / gist:1885435
Created February 22, 2012 14:56
Keeping a fork up to date

1. Clone your fork:

git clone git@github.com:YOUR-USERNAME/YOUR-FORKED-REPO.git

2. Add remote from original repository in your forked repository:

cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
@spalladino
spalladino / mysql-docker.sh
Created December 22, 2015 13:47
Backup and restore a mysql database from a running Docker mysql container
# Backup
docker exec CONTAINER /usr/bin/mysqldump -u root --password=root DATABASE > backup.sql
# Restore
cat backup.sql | docker exec -i CONTAINER /usr/bin/mysql -u root --password=root DATABASE
@msurguy
msurguy / List.md
Last active November 29, 2025 02:37
List of open source projects made with Laravel

Other people's projects:

My projects (tutorials are on my blog at http://maxoffsky.com):

@jasonrudolph
jasonrudolph / git-branches-by-commit-date.sh
Created February 12, 2012 20:40
List remote Git branches and the last commit date for each branch. Sort by most recent commit date.
# Credit http://stackoverflow.com/a/2514279
for branch in `git branch -r | grep -v HEAD`;do echo -e `git show --format="%ci %cr" $branch | head -n 1` \\t$branch; done | sort -r