Skip to content

Instantly share code, notes, and snippets.

View aadshalshihry's full-sized avatar

Roman Ashehri aadshalshihry

View GitHub Profile
~# uname -a
~# lsb_release -a
~# locale-gen en_US
~# locale-gen en_US.UTF-8
~# apt-get -y --force-yes remove ntpdate
~# apt-get -y --force-yes install ntp
~# /etc/init.d/ntp restart
~# dpkg-reconfigure tzdata
@aadshalshihry
aadshalshihry / saudi_banks.md
Last active April 7, 2021 15:38
Saudi Banks List

`sh [ {en: 'The National Commercial Bank', 'ar': 'البنك الأهلي التجاري'}, {en: 'The Saudi British Bank (SABB)', 'ar': 'البنك السعودي البريطاني (ساب)'}, {en: 'The Saudi Investment Bank', 'ar': 'البنك السعودي للاستثمار'}, {en: 'Alinma Bank', 'ar': 'مصرف الإنماء'}, {en: 'Banque Saudi Fransi', 'ar': 'البنك السعودي الفرنسي'}, {en: 'Riyad Bank', 'ar': 'بنك الرياض'}, {en: 'Samba Bank', 'ar': 'بنك سامبا'}, {en: 'Alawwal Bank', 'ar': 'البنك الأول'},

npm i -g npm-check-updates
npm-check-updates -u
npm install
@aadshalshihry
aadshalshihry / EnglishForceInput
Created January 26, 2020 09:06
Input to be only English
$(".name_list").keypress(function(event){
var ew = event.which;
if(ew == 32)
return true;
if(48 <= ew && ew <= 57)
return true;
if(65 <= ew && ew <= 90)
return true;
if(97 <= ew && ew <= 122)
return true;
@aadshalshihry
aadshalshihry / mongodbUpdateField
Created November 4, 2019 13:09
To update field manually in monog
db.myCollection.find().forEach(
function(e) {
e.fileName = updatedValue
db.myCollection.save(e)
}
)
@aadshalshihry
aadshalshihry / twoGitAccountSSH.md
Last active August 21, 2019 09:18
How to setup two Git Account in one machine using ssh key

Create to two ssh-key

Generate two keys

  # this is the main email to be use with github
  # filename: ~/.ssh/rsa_id
  ssh-keygen -t rsa -f ~/.ssh/id_rsa -b 4096 -C "[email protected]"
  
  # this is the main email to be use with github
  # filename: ~/.ssh/rsa_id_othername
 ssh-keygen -t rsa -f ~/.ssh/id_rsa_othername -b 4096 -C "[email protected]"
@aadshalshihry
aadshalshihry / setupNgnixServer.md
Last active July 23, 2018 06:54
Steps of how to setup ngnix server

Setup 1 update & install

sudo apt-get update
sudo apt-get install nginx

Setup 2 Move your website’s static files to the server

@aadshalshihry
aadshalshihry / tmux-cheatsheet.markdown
Created February 23, 2017 10:59 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@aadshalshihry
aadshalshihry / .gitignore
Created April 24, 2016 01:10 — forked from octocat/.gitignore
Some common .gitignore configurations
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so
# Packages #