Skip to content

Instantly share code, notes, and snippets.

View mlambie's full-sized avatar
🇦🇺
$ iex -S mix

Matt Lambie mlambie

🇦🇺
$ iex -S mix
View GitHub Profile
@n1snt
n1snt / Oh my ZSH with zsh-autosuggestions zsh-syntax-highlighting zsh-fast-syntax-highlighting and zsh-autocomplete.md
Last active May 10, 2024 10:36
Oh my ZSH with zsh-autosuggestions zsh-syntax-highlighting zsh-fast-syntax-highlighting and zsh-autocomplete.md

Oh my zsh.

Oh My Zsh

Install ZSH.

sudo apt install zsh-autosuggestions zsh-syntax-highlighting zsh

Install Oh my ZSH.

@Kalaivanimurugan
Kalaivanimurugan / display_model_names.rb
Last active December 1, 2023 21:13
List all model names in rails console
Rails.application.eager_load!
ActiveRecord::Base.descendants # It returns all models and its attributes.
ApplicationRecord.descendants.collect(&:name) # It returns only the model names
@Sutto
Sutto / backup-github.rb
Created September 7, 2011 05:25
Automatically backs up a github accounts repositories
require 'fileutils'
require 'octokit'
require 'ap'
ACCOUNT_NAME = "your-user-name"
ACCOUNT_TOKEN = "your-api-token"
ITEMS_UNDER = "target-user-or-organisation"
REPO_ROOT = File.expand_path('../repositories', __FILE__)