Skip to content

Instantly share code, notes, and snippets.

View thomijasir's full-sized avatar
🎯
Focusing

Thomi Jasir thomijasir

🎯
Focusing
View GitHub Profile
npm init -y
npm i --save-dev babel babel-core babel-loader
npm i --save-dev babel-preset-es2015 babel-preset-react
npm i --save-dev babel-plugin-transform-class-properties
npm i --save-dev babel-plugin-transform-decorators-legacy
npm i --save-dev babel-plugin-transform-react-jsx
npm i --save-dev babel-plugin-transform-runtime
npm i --save-dev webpack webpack-dev-server
npm install --save-dev html-webpack-plugin
@thomijasir
thomijasir / install.sh
Last active July 30, 2018 12:02
Install LEMP in Debin 9 with newer PHP
## Install Requiriment And update System
apt-get -y update
apt-get -y upgrade
apt-get -y dist-upgrade
apt-get -y install sudo nano git zip net-tools sudo wget curl bash-completion
apt-get -y install software-properties-common dirmngr
apt-get -y install apt-transport-https lsb-release ca-certificates
## Add Nginx Source List
echo "deb http://nginx.org/packages/debian/ stretch nginx" >> /etc/apt/sources.list
@thomijasir
thomijasir / setup_ubuntu_16_04.sh
Last active April 15, 2023 11:45
Auto Install Application Ubuntu 16.04
## Install Requiriment And update System
sudo apt-get -y update
sudo apt-get -y upgrade
sudo apt-get -y dist-upgrade
sudo apt-get -y install sudo nano git zip unzip net-tools sudo wget curl bash-completion
sudo apt-get -y install software-properties-common dirmngr
sudo apt-get -y install apt-transport-https lsb-release ca-certificates
sudo apt-get -y install python-software-properties
## Add Nginx Source List
@thomijasir
thomijasir / Setting.txt
Created February 18, 2018 03:49
Setting Visual Code More Prety Code
# Heres Code make more beuty of you code in visual studio
# dont forget to install Prettier Code Formatter Before set up code below
# Control CTRL + , (coma) and input setting below inside curly braces
"editor.formatOnSave": true,
"editor.insertSpaces": false,
"editor.renderWhitespace": "all",
"prettier.singleQuote": true,
"prettier.semi": false,
"prettier.tabWidth": 4,
@thomijasir
thomijasir / .bashrc
Last active February 28, 2018 04:35
Display Your Branch Name on Bash
# edit your bashrc file, nano ~/.bashrc like below
# Sample output:
# user@pc-name:/var/www/html/project (master)$
# Replace / Comment Code Below
if [ "$color_prompt" = yes ]; then
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
else
@thomijasir
thomijasir / server_nginx_GREAT_SETTING.conf
Last active October 14, 2018 08:41
Great Setting Nginx Conf SSL For Wordpress
server {
listen 80;
listen [::]:80;
server_name apknool.com www.apknool.com;
return 301 https://www.apknool.com$request_uri;
}
server {
listen 443 ssl http2;
@thomijasir
thomijasir / splice-object-array.js
Created March 22, 2018 06:59 — forked from scottopolis/splice-object-array.js
Remove object from array of objects in Javascript
// source: http://stackoverflow.com/questions/16491758/remove-objects-from-array-by-object-property
// we have an array of objects, we want to remove one object using only the id property
var apps = [{id:34,name:'My App',another:'thing'},{id:37,name:'My New App',another:'things'}];
// get index of object with id:37
var removeIndex = apps.map(function(item) { return item.id; }).indexOf(37);
// remove object
apps.splice(removeIndex, 1);
@thomijasir
thomijasir / autophponmac.txt
Last active September 27, 2018 04:14
Automatic PHP Upgrade OSX
if you want to upgrade your php in osx just follow this tutorial: https://php-osx.liip.ch/
@thomijasir
thomijasir / README.md
Created October 9, 2018 10:40 — forked from nichtich/README.md
How to automatically deploy from GitHub

Deploy your site with git

This gist assumes:

  • you have an online remote repository (github / bitbucket etc.)
  • you have a local git repo
  • and a cloud server (Rackspace cloud / Amazon EC2 etc)
    • your (PHP) scripts are served from /var/www/html/
    • your webpages are executed by Apache
  • the Apache user is named www-data (may be apache on other systems)
@thomijasir
thomijasir / readme.md
Last active May 20, 2019 04:07
Linux commands are often used

List Linux Command Commonly Uses

Remove RPM

Chek RPM Packet name rpm -qa | grep -i webmin

Remove packet name rpm -e

Composer Install