Skip to content

Instantly share code, notes, and snippets.

View rogden's full-sized avatar

Ryan Ogden rogden

View GitHub Profile
@RobinBoers
RobinBoers / aws2bunny.sh
Created August 2, 2023 19:25
Simple script to migrate the contents of an AWS S3 bucket to a bunny.net Storage Zone.
#!/bin/sh
# Script to copy files from GCS bucket to Bunny(.net) Storage.
# This script assumes you're logged into the `gcloud` cli, and
# that all the files are at the top-level of the bucket and/or zone.
# Usage:
# ./copy.sh <BUCKET> <ZONE> <PASSWORD> [FLAGS]
# Arguments:
# $1: S3 bucket ID
@paulirish
paulirish / what-forces-layout.md
Last active May 8, 2026 17:53
What forces layout/reflow. The comprehensive list.

What forces layout / reflow

All of the below properties or methods, when requested/called in JavaScript, will trigger the browser to synchronously calculate the style and layout*. This is also called reflow or layout thrashing, and is common performance bottleneck.

Generally, all APIs that synchronously provide layout metrics will trigger forced reflow / layout. Read on for additional cases and details.

Element APIs

Getting box metrics
  • elem.offsetLeft, elem.offsetTop, elem.offsetWidth, elem.offsetHeight, elem.offsetParent
@ziadoz
ziadoz / composer_path.json
Last active May 3, 2026 11:58
Composer Using Local Repositories and Branches
{
"repositories": [
{
"type": "path",
"url": "../relative/project/path"
}
],
"require": {
"${project}": "dev-${branch}"
}
@staltz
staltz / introrx.md
Last active May 7, 2026 01:31
The introduction to Reactive Programming you've been missing
@riyadparvez
riyadparvez / BFS.cs
Last active March 19, 2024 20:44
An implementation of breadth first search or BFS in C#.
public class Tree<K, V>
where K : class, IComparable<K>
where V : class
{
private Node<K, V> root;
public V BFS(K key)
{
Queue<Node<K, V>> queue = new Queue<Node<K, V>>();
@jexchan
jexchan / multiple_ssh_setting.md
Created April 10, 2012 15:00
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"