Skip to content

Instantly share code, notes, and snippets.

View cecepm's full-sized avatar

Cecep Mahbub cecepm

  • Jakarta, Indonesia
View GitHub Profile
# One Dark by Giuseppe Cesarano, https://github.com/GiuseppeCesarano
# This work is licensed under the terms of the GPL-2.0 license.
# For a copy, see https://www.gnu.org/licenses/old-licenses/gpl-2.0.en.html.
# Colors
foreground #979eab
background #282c34
color0 #282c34
@cecepm
cecepm / belajar-xargs.sh
Last active July 17, 2021 07:53
belajar dengan xargs
# misal, ada file input.txt
#
# isinya:
# asdf1
# asdf2
# asdf3
# dst...
cat input.txt |xargs
cat input.txt |xargs --verbose
cat input.txt |xargs -t
@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
@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 / 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 / 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 / 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 / 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 / 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.