Skip to content

Instantly share code, notes, and snippets.

Avatar
❤️
الحمد لله

Abdullah Hilson abumalick

❤️
الحمد لله
View GitHub Profile
@abumalick
abumalick / .rubocop.yml
Created Aug 29, 2022
Rubocop rails configuration
View .rubocop.yml
# .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
View kill application by port on macOs.md

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 Sep 4, 2019
Bootstrap new venv with python
View newVenv.sh
# 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 Oct 9, 2018
Keybase identity
View keybase.md

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 Dec 8, 2017
Custom Error with ES6 class
View customErrorES6.js
// 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 Sep 8, 2017 — forked from shark0der/ubuntu14.04-command-line-install-android-sdk
Ubuntu 14.04 command line install android sdk (platform & platform-tools only, no emulator)
View ubuntu14.04-command-line-install-android-sdk.sh
# 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