Skip to content

Instantly share code, notes, and snippets.

View 1000miles's full-sized avatar
🐌
Edit status

Thuy Le 1000miles

🐌
Edit status
View GitHub Profile
@1000miles
1000miles / Heroku-CLI-Cheatsheet.md
Last active July 20, 2023 03:45
Most basic Heroku cli commands
@1000miles
1000miles / sql-mongo_comparison.md
Created September 7, 2019 15:47 — forked from aponxi/sql-mongo_comparison.md
MongoDb Cheat Sheets

SQL to MongoDB Mapping Chart

SQL to MongoDB Mapping Chart

In addition to the charts that follow, you might want to consider the Frequently Asked Questions section for a selection of common questions about MongoDB.

Executables

The following table presents the MySQL/Oracle executables and the corresponding MongoDB executables.

MongoDB Cheat Sheet

Show All Databases

show dbs

Show Current Database

@benjmin-r
benjmin-r / 01_README.md
Last active January 5, 2021 17:06
Sonic Pi Intro Workshop

This collection of files exists to serve you as starting point in exploring different sounds and how they're programmed in Sonic Pi.
Copy & Paste them into your Sonic Pi editor and start tweaking the values to change the sound.

Keyboard Shortcuts

The Sonic Pi integrated editor has a lot of keyboard shortcuts. A handy list of all shortcuts is integrated in the tutorial browser or online on github.

Attack, Decay, Sustain, Release

This image explains nicely, the four important parameters to controlling played sounds in Sonic Pi.

@1000miles
1000miles / cheatsheet_vagrant.md
Last active August 16, 2017 14:44
Cheat Sheet (Vagrant)

Cheat Sheet (Vagrant)

provided by vagrantup.com

Vagrant commands

$ vagrant ...
@1000miles
1000miles / cheatsheet_chef_knife_kitchen_inspec_ohai.md
Last active January 18, 2019 20:07
Cheat Sheet (Chef-Knife-Kitchen-Inspec-Ohai)

Cheat Sheet (Chef, Knife, Kitchen, Inspec, Ohai)

provided by chef.io

Chef Development Kit commands

$ chef ...

Usage:
@cezaraugusto
cezaraugusto / gpg_fix.txt
Last active November 3, 2023 17:03
fixing `gpg failed to sign data` error on macOS
For troubleshooting, two things to first try:
run `git config --global gpg.program gpg2`, to make sure git uses gpg2 and not gpg
run `echo "test" | gpg2 --clearsign`, to make sure gpg2 itself is working
If that all looks all right, one next thing to try:
run `brew install pinentry` to ensure you have a good tool installed for passphrase entry
If after that install and you re-try git commit and still get the "failed to sign the data" error:
run `gpgconf --kill gpg-agent` to kill any running agent that might be hung
@lusis
lusis / README.md
Last active September 14, 2020 17:47
terraform template to generate serverspec properties

This uses terraform's template_file resource to generate a yaml properties file for serverspec to use.

  • create the Rakefile in your terraform project root
  • create a spec directory and put spec_helper.rb in it
  • create the templates/properties.tmpl.yml file
  • create the serverspec.tf
  • terraform apply

tests

Tests will be matched based on roles defined for a given node.

require 'rails_helper'
RSpec.describe TodosController, :type => :controller do
describe "GET #index" do
#describe "POST #create" do
#describe "GET #show" do
#describe "PATCH #update" do (or PUT #update)
#describe "DELETE #destroy" do
#describe "GET #new" do