Skip to content

Instantly share code, notes, and snippets.

View alimd's full-sized avatar
👨‍💻
wesun.org

S. Ali Mihandoost alimd

👨‍💻
wesun.org
View GitHub Profile

Keybase proof

I hereby claim:

  • I am AliMD on github.
  • I am alimd (https://keybase.io/alimd) on keybase.
  • I have a public key whose fingerprint is 85CA 09B5 25C6 9C22 B722 5034 FF48 3EA7 EC96 CDA2

To claim this, I am signing this object:

@alimd
alimd / server.js
Last active November 29, 2016 12:18
Nodejs Multi Cluster HTTP Server Example
"use strict";
let http = require('http');
let host = '127.0.0.1', port = 8080;
let cluster = require('cluster');
let numCPUs = require('os').cpus().length;
if (cluster.isMaster) {
console.log(`Hey, I'm Master!`);
@alimd
alimd / android-accept-licenses.sh
Created November 14, 2016 07:32
Android Accept Licenses
#!/usr/bin/expect -f
set timeout 1800
set cmd [lindex $argv 0]
set licenses [lindex $argv 1]
spawn {*}$cmd
expect {
"Do you accept the license '*'*" {
exp_send "y\r"
@alimd
alimd / install-doceker.md
Last active October 24, 2023 07:30
Install docker on linux as easy as possible

Install Docker on linux

Any distribution of architecture as easy as possible.

# Install docker latest version from original website
curl -fsSL https://get.docker.com/ | sh

# Adding your user to the "docker" group
sudo usermod -aG docker $(whoami)
## you will have to log out and back in for this to take effect!
@alimd
alimd / docker.md
Last active June 8, 2020 11:19
Ali.MD Docker Learning Path
@alimd
alimd / .gitlab-ci.yml
Created July 17, 2016 05:05
Gitlab CI Build Configuration
# http://docs.gitlab.com/ce/ci/yaml/README.html
image: node:6
#services:
# - postgres
before_script:
- npm i
#after_script
@alimd
alimd / npm-config.md
Last active March 1, 2025 18:41
Optimize NPM for faster installing packages

AliMd npm config

Optimize NPM for faster installing packages

Strong recommended

npm config set registry http://registry.npmjs.org/
npm config set loglevel info
npm config set fetch-retries 3
npm config set fetch-retry-mintimeout 15000
npm config set fetch-retry-maxtimeout 90000
@alimd
alimd / screen size.txt
Created March 14, 2016 21:30
Popular screen size for responsive design
Width, Height
============= (0) phone max-4-col
* 360 -
414 -
* 480 480
============= (481) tablet or phone landscape max-8-col
* - 600
- 640
* - 720
- 736
@alimd
alimd / nexus-ota-updates-2016-02-01.md
Created February 7, 2016 10:45 — forked from jduck/nexus-ota-updates-2016-02-01.md
February 2016 Nexus OTA Updates - Security Level 2016-02-01
@alimd
alimd / .gitignore
Last active November 14, 2016 13:08
AliMD Git Ignore
# Specifies intentionally untracked files to ignore when using Git
# http://git-scm.com/docs/gitignore
# OSX
.DS_Store
._*
# Windows
Thumbs.db
Desktop.ini