Skip to content

Instantly share code, notes, and snippets.

View danielcristho's full-sized avatar
:shipit:
on a mission

Daniel Pepuho danielcristho

:shipit:
on a mission
View GitHub Profile
1. Introduction
Pastikan GIT telah terinstall di Laptop/PC Anda Cek untuk memasikan ketik Perintah "git --version" pada Terminal
2. Set up Vundle:
clone repo Vundle terlebih dahulu dan letakan pada directory .vim
*git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim*
3. Configure Plugins:
@lon-io
lon-io / db_backup.sh
Created July 15, 2019 07:41 — forked from NARKOZ/db_backup.sh
MySQL backup shell script
#!/bin/bash
# Shell script to backup MySQL database
# Set these variables
MyUSER="" # DB_USERNAME
MyPASS="" # DB_PASSWORD
MyHOST="" # DB_HOSTNAME
# Backup Dest directory
DEST="" # /home/username/backups/DB
@mohanpedala
mohanpedala / inside_nginx.md
Last active October 3, 2025 15:56
Inside Nginx

Virtual Host and Serving Static Content

  • Default path: vim /etc/nginx/conf.d/default.conf

  • Custom Config vim /etc/nginx/conf.d/example.com.conf

  • Default index.html: /usr/share/nginx/html/index.html

  • Custom index.html: /var/www/example.com/html/index.html

    • Path explanation:
      • Default path : /var/www/
  • Virtualhostname : example.com
@ykrsm
ykrsm / Tweak_Vim_Scheme.md
Created August 13, 2017 06:32
How to tweak your favorite Vim color Scheme.

tl;dr

  1. You can check color by :hi
  2. Change colors in your .vimrc
" Reset the background color in Normal mode so vim uses Terminal.app's background color"
highlight Normal ctermbg=none
" Reset the background color in Non Text area so vim uses Terminal.app's background color"
highlight NonText ctermbg=none
@yangxuan8282
yangxuan8282 / emoji-info.sh
Last active January 24, 2025 18:39
Emoji❤bash
#!/bin/bash
# run this scripts with `bash emoji-info.sh` or `./emoji-info.sh`
usage() {
cat << EOF
usage: $0 [options] <emoji>
Options:
-h Show this message
-o Octal Escape Sequence
@musale
musale / fix.md
Last active January 17, 2025 01:13
How to fix and recover a “corrupt history file” in zsh
# move to home directory
cd ~

# move the .zsh_history file into another .zsh_history_bad file
mv .zsh_history .zsh_history_bad

# write all printable strings into a new .zsh_history file
strings .zsh_history_bad > .zsh_history
@lukas-h
lukas-h / license-badges.md
Last active November 5, 2025 16:55
Markdown License Badges for your Project

Markdown License badges

Collection of License badges for your Project's README file.
This list includes the most common open source and open data licenses.
Easily copy and paste the code under the badges into your Markdown files.

Notes

  • The badges do not fully replace the license informations for your projects, they are only emblems for the README, that the user can see the License at first glance.

Translations: (No guarantee that the translations are up-to-date)

@mycodeschool
mycodeschool / BalancedParentheses.cpp
Created October 29, 2013 00:49
C++ Program to check for balanced parentheses in an expression using stack.
/*
C++ Program to check for balanced parentheses in an expression using stack.
Given an expression as string comprising of opening and closing characters
of parentheses - (), curly braces - {} and square brackets - [], we need to
check whether symbols are balanced or not.
*/
#include<iostream>
#include<stack>
#include<string>
using namespace std;