Skip to content

Instantly share code, notes, and snippets.

View ipang-dwi's full-sized avatar
😌
Alhamdulillah, banyak yg doain baby Mishary jadi Hafidz.. BarokAllah..

Ipang Dwi ipang-dwi

😌
Alhamdulillah, banyak yg doain baby Mishary jadi Hafidz.. BarokAllah..
View GitHub Profile
@ipang-dwi
ipang-dwi / cyberpanel-setup.txt
Created October 30, 2018 05:58
Easy CyberPanel Setup - Indonesian DevOps
========== just do it after install latest Centos x64 on your server ===========
================================================================================
==================================================== www.firstplato.com ========
# sudo su
# yum check-update
# yum upgrade
# yum clean all
# yum install nano wget curl net-tools lsof bash-completion
# sh <(curl https://cyberpanel.net/install.sh || wget -O - https://cyberpanel.net/install.sh)
The location of the hosts file, depending on the operating system that you are using, is:
Windows - SystemRoot > system32 > drivers > etc > hosts
By default the system root is C:\Windows, so if you are using Windows, your hosts file is most probably: C:\Windows\System32\drivers\etc\hosts)
Linux - /etc/hosts
Mac OS X - /private/etc/hosts
@ipang-dwi
ipang-dwi / doraemon.txt
Created January 19, 2020 13:58
htaccess to hide .php extension
RewriteEngine On
# turn on the mod_rewrite engine
RewriteCond %{REQUEST_FILENAME}.php -f
# IF the request filename with .php extension is a file which exists
RewriteCond %{REQUEST_URI} !/$
# AND the request is not for a directory
RewriteRule (.*) $1\\.php [L]
# redirect to the php script with the requested filename
@ipang-dwi
ipang-dwi / repo-reset.md
Created June 23, 2020 14:18 — forked from heiswayi/repo-reset.md
GitHub - Delete commits history with git commands

First Method

Deleting the .git folder may cause problems in our git repository. If we want to delete all of our commits history, but keep the code in its current state, try this:

# Check out to a temporary branch:
git checkout --orphan TEMP_BRANCH

# Add all the files:
git add -A
@ipang-dwi
ipang-dwi / panda.gif
Last active July 23, 2020 20:33
panda
panda.gif
@ipang-dwi
ipang-dwi / ae86.gif
Last active July 23, 2020 20:34
kang tahu..
ae86.gif
@ipang-dwi
ipang-dwi / naruto.gif
Last active July 23, 2020 20:34
never give up
naruto.gif
@ipang-dwi
ipang-dwi / siip
Created July 1, 2020 17:57
Deploy Git Auto Deploy on VPS
#server side:
#server live directory: /var/www/domain.com
#server repository: /var/repo/site.git
1. clone project from git/bitbucket into /var/www/domain.com or init the folder by "git init".
2. go to /var/repo/site.git and init the folder as git bare
$git init --bare
--bare means that our folder will have no source files, just the version control.
@ipang-dwi
ipang-dwi / README.md
Created July 2, 2020 08:48 — forked from hasanbayatme/README.md
Easy to use Bash Script to Install LAMP stack on Ubuntu.

Installation

Automatic

Run the below command in terminal:

wget --no-cache -O - https://gist.github.com/EmpireWorld/737fbb9f403d4dd66dee1364d866ba7e/raw/install-lamp.sh | bash
@ipang-dwi
ipang-dwi / ranger
Created July 2, 2020 18:46
ranger
sudo apt-get update
sudo apt-get install ranger caca-utils highlight atool w3m poppler-utils mediainfo
ranger
Q
ranger --copy-config=all
cd ~
wget http://upload.wikimedia.org/wikipedia/commons/4/47/PNG_transparency_demonstration_1.png
wget http://upload.wikimedia.org/wikipedia/commons/4/40/Equipo1.gif
wget http://upload.wikimedia.org/wikipedia/commons/f/f8/Cula_Duca.jpg
cp /usr/share/doc/shared-mime-info/* .