Skip to content

Instantly share code, notes, and snippets.

View aimerib's full-sized avatar

Aimeri Baddouh aimerib

View GitHub Profile

Keybase proof

I hereby claim:

  • I am aimerib on github.
  • I am aimeri (https://keybase.io/aimeri) on keybase.
  • I have a public key ASA78Z3NHRMwh1lvlU55LT_-oTjKPS3X__sjt-WVMEHCZwo

To claim this, I am signing this object:

@aimerib
aimerib / uninstall_gems.sh
Created April 3, 2020 13:24 — forked from IanVaughan/uninstall_gems.sh
Uninstall all rbenv gems
#!/usr/bin/env bash
uninstall() {
list=`gem list --no-versions`
for gem in $list; do
gem uninstall $gem -aIx
done
gem list
gem install bundler
}
@aimerib
aimerib / themes
Created March 29, 2020 14:29
Themes
Windows Terminal
"schemes": [
{
"name" : "Cyberpunk",
"background" : "#282A36",
"black" : "#000000",
"blue" : "#ff009d",
"brightBlack" : "#a4629b",
"brightBlue" : "#ff0095",
@aimerib
aimerib / settings.json
Last active March 26, 2020 17:16
Windows Terminal Settings
{
"$schema": "https://aka.ms/terminal-profiles-schema",
"defaultProfile": "{DISTRO_UUID}",
"profiles":
{
"defaults":
{
"colorScheme" : "Cyberpunk",
@aimerib
aimerib / rdb.code-snipets
Created March 18, 2020 03:00
VSCode snippet for rails database.yaml file
"Rails Database settings for docker": {
"prefix": ["rdb"],
"body": [
"\thost: $1",
"\tport: $2",
"\tuser: $3",
"\tpassword: $4"
],
"description": "Needed settings for Rails database.yaml file"
}
@aimerib
aimerib / .zshrc
Last active September 10, 2020 01:43
Quickly generating dockerized rails projects
#append this to the end of your ~/.zshrc or ~/.bashrc
generate_rails_project() {
docker run -it --rm -v "$PWD":/"$1" -w /"$1" ruby:latest /bin/bash -c "curl -sL https://deb.nodesource.com/setup_12.x | bash && apt-get install -y nodejs && npm i -g yarn && gem install rails && rails new $1 $2"
echo "FROM ruby:latest
\n
\n
RUN mkdir /"$1"
WORKDIR /"$1"
\n