Skip to content

Instantly share code, notes, and snippets.

View cecepm's full-sized avatar

Cecep Mahbub cecepm

  • Jakarta, Indonesia
View GitHub Profile
@cecepm
cecepm / jenkins.yml
Last active August 29, 2015 14:25
Ansible task for Installing jenkins LTS release on Ubuntu
---
- name: Add Jenkins apt key
apt_key: url=http://pkg.jenkins-ci.org/debian-stable/jenkins-ci.org.key state=present
- name: Add Java repository to sources
apt_repository: repo="deb http://pkg.jenkins-ci.org/debian-stable binary/" state=present
- name: Update APT package cache
apt: update_cache=yes
@cecepm
cecepm / merge.md
Last active December 20, 2015 18:07
Git Merge

Merge feature_branch to master

Pull update on master branch

git checkout master
git pull

Change back to feature_branch, pull and then rebase based on master branch, and resolve conflict (if any)

git checkout feature_branch

@cecepm
cecepm / otpauth_test_authenticate.py
Created January 9, 2016 01:17
playing with python otpauth
#!/usr/bin/env python
import click
import sys
from datetime import datetime, timedelta
from otpauth import OtpAuth
SECRET = "youHoyahc4Xee7geo6oo"
@click.command()
@cecepm
cecepm / python otpauth generate qrcode.ipynb
Created January 9, 2016 01:38
playing with python otpauth
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@cecepm
cecepm / devops_coding_challenge.md
Last active July 19, 2017 10:16
Devops Coding Challenge - get an app set up and running

Devops Coding Challenge

Get this app up and running on a Vagrant VM using your known production best practices as well as the instructions in the guidelines below.

You should use provisioner to install and configure everything. Ansible is preffered. But you can use chef or puppet if you more familiar with those tools. (please don't use shell provisioner).

@cecepm
cecepm / install-meslo-fonts.sh
Created April 12, 2021 01:30
Install Meslo Nerd Font patched for Powerlevel10k
mkdir -p ~/.fonts
curl -L https://github.com/romkatv/powerlevel10k-media/raw/master/MesloLGS%20NF%20Regular.ttf --output ~/.fonts/'MesloLGS NF Regular.ttf'
curl -L https://github.com/romkatv/powerlevel10k-media/raw/master/MesloLGS%20NF%20Bold.ttf --output ~/.fonts/'MesloLGS NF Bold.ttf'
curl -L https://github.com/romkatv/powerlevel10k-media/raw/master/MesloLGS%20NF%20Italic.ttf --output ~/.fonts/'MesloLGS NF Italic.ttf'
curl -L https://github.com/romkatv/powerlevel10k-media/raw/master/MesloLGS%20NF%20Bold%20Italic.ttf --output ~/.fonts/'MesloLGS NF Bold Italic.ttf'
@cecepm
cecepm / terminator-1.91-4ubuntu1.patch
Created May 10, 2021 12:49
Terminator 1.91-4ubuntu1 Patch for better split separator
--- terminator.py.orig 2021-05-10 19:34:31.294488162 +0700
+++ terminator.py 2021-05-10 19:37:34.914358012 +0700
@@ -454,6 +454,9 @@
.terminator-terminal-window .pane-separator {
background-color: @theme_bg_color; }
+ .terminator-terminal-window paned separator {
+ background-color: @theme_bg_color; }
+
.terminator-terminal-window .terminator-terminal-searchbar {
@cecepm
cecepm / config
Created May 11, 2021 00:15
Terminator config with Gruvbox Dark theme
[global_config]
focus = system
handle_size = 8
title_transmit_bg_color = "#d30102"
[keybindings]
[profiles]
[[default]]
background_color = "#1e1e1e"
cursor_color = "#bbbbbb"
font = JetBrains Mono NL Medium 13
@cecepm
cecepm / mempercantik_terminator.md
Last active May 13, 2021 12:00
Mempercantik Terminator di Ubuntu 20.04
  1. Install Terminator

    sudo apt install terminator
    
  2. Download terminator config

    mkdir -p ~/.config/terminator
    
@cecepm
cecepm / install_cheat.md
Last active February 28, 2022 18:24
Install Cheat
  1. Download cheat
    curl -sL https://github.com/cheat/cheat/releases/download/4.2.2/cheat-linux-amd64.gz -o ~/cheat-linux-amd64.gz
    
  2. Extract
    gzip -d ~/cheat-linux-amd64.gz
    
  3. Copy cheat binary to /usr/local/bin