Skip to content

Instantly share code, notes, and snippets.

View setdjod's full-sized avatar
🏠
Working from home

Setiawan Jodi setdjod

🏠
Working from home
View GitHub Profile
@setdjod
setdjod / README.md
Last active June 27, 2019 20:01
Menyimpan Environment Variables di Linux

Menyimpan Environment Variables di Linux

Namecheap Terminal

Buat File .profile

touch ~/.profile

Edit File .profile

@setdjod
setdjod / README.md
Last active June 2, 2019 14:34
Git Config

Git Config

Generating a new SSH key

ssh-keygen -t rsa -b 4096 -C "your_email@example.com"

Adding your SSH key to the ssh-agent

start the ssh-agent in the background

eval $(ssh-agent -s)
[
{ "keys": ["ctrl+["], "command": "fold" },
{ "keys": ["ctrl+]"], "command": "unfold" },
{ "keys": ["ctrl+1"], "command": "fold_by_level", "args": {"level": 1} },
{ "keys": ["ctrl+2"], "command": "fold_by_level", "args": {"level": 2} },
{ "keys": ["ctrl+3"], "command": "fold_by_level", "args": {"level": 3} },
{ "keys": ["ctrl+4"], "command": "fold_by_level", "args": {"level": 4} },
{ "keys": ["ctrl+5"], "command": "fold_by_level", "args": {"level": 5} },
{ "keys": ["ctrl+6"], "command": "fold_by_level", "args": {"level": 6} },
{ "keys": ["ctrl+7"], "command": "fold_by_level", "args": {"level": 7} },
@setdjod
setdjod / README.md
Created May 31, 2019 14:13
Remove History Commit

Remove History Commit on Github

Create Orphan Branch

git checkout --orphan temp_branch

Add Files to Branch

git add -A
@setdjod
setdjod / README.md
Last active November 30, 2023 12:53
Cara Mengaktifkan SSL di XAMMP Windows 10 64bit

Cara Mengaktifkan SSL di XAMPP

Persiapan

  1. Download cert-template.conf
  2. Download make-cert.bat
  3. Buka folder "C:/xampp/apache/" lalu buat folder cert
  4. Copy 2 file yang sudah didownload pada folder cert
  5. Buka make-cert.bat dan ikuti instruksinya

Konfigurasi

  1. Buka file "C:/xampp/apache/conf/extra/httpd-vhosts.conf" dan lihat contoh berikut ini