Skip to content

Instantly share code, notes, and snippets.

View abumalick's full-sized avatar
❤️
الحمد لله

Abdullah Hilson abumalick

❤️
الحمد لله
View GitHub Profile
@abumalick
abumalick / .rubocop.yml
Created August 29, 2022 17:31
Rubocop rails configuration
# .rubocop.yml
# source: https://www.fastruby.io/blog/ruby/code-quality/how-we-use-rubocop-and-standardrb.html
require:
- standard
- rubocop-rails
- rubocop-rspec
inherit_gem:
standard: config/base.yml

Here is how to kill an application that is running on a specific port on macOS

Find it:

sudo lsof -i :3000

Kill it:

@abumalick
abumalick / newVenv.sh
Last active September 4, 2019 14:25
Bootstrap new venv with python
# Create the virtual environment
python3 -m venv .venv
# configure created venv in your shell (vscode will do this automatically if you use a new shell)
source .venv/bin/activate
# or if you are using fish shell:
. .venv/bin/activate.fish
pip install -r requirements/local.txt
@abumalick
abumalick / keybase.md
Created October 9, 2018 18:18
Keybase identity

Keybase proof

I hereby claim:

  • I am abumalick on github.
  • I am abumalick (https://keybase.io/abumalick) on keybase.
  • I have a public key ASC8VxAfT7lR_e0ghEaibhZu7RGfxdqA0JzAYAHRhwtNKAo

To claim this, I am signing this object:

@abumalick
abumalick / customErrorES6.js
Created December 8, 2017 23:05
Custom Error with ES6 class
// https://stackoverflow.com/a/32750746/1673761
class MyError extends Error {
constructor(message) {
super(message);
this.name = 'MyError';
}
}
@abumalick
abumalick / ubuntu14.04-command-line-install-android-sdk.sh
Last active September 8, 2017 04:44 — forked from shark0der/ubuntu14.04-command-line-install-android-sdk
Ubuntu 14.04 command line install android sdk (platform & platform-tools only, no emulator)
# install java
apt-get install -y software-properties-common
apt-add-repository -y ppa:webupd8team/java
apt-get update
apt-get install -y oracle-java8-installer
# download latest android sdk
# http://developer.android.com/sdk/index.html#Other
cd /opt
wget http://dl.google.com/android/android-sdk_r24.4.1-linux.tgz