Skip to content

Instantly share code, notes, and snippets.

View Daivasmara's full-sized avatar
:shipit:
A squirrel is just a rat with a cuter outfit!

Muhammad Denaw Daivasmara

:shipit:
A squirrel is just a rat with a cuter outfit!
View GitHub Profile
@Daivasmara
Daivasmara / tmux.conf
Created September 7, 2023 10:00
tmux
View tmux.conf
set-option -sa terminal-overrides ",xterm*:Tc"
set -g mouse on
set -g default-command /usr/bin/zsh
set -g default-shell /usr/bin/zsh
unbind C-b
set -g prefix C-Space
bind C-Space send-prefix
# Vim style pane selection
@Daivasmara
Daivasmara / Neofetch
Last active January 17, 2023 09:37
Neofetch Config
View Neofetch
# Source: https://github.com/Chick2D/neofetch-themes/
# Made by https://github.com/Dan1jel
# Customization Wiki https://github.com/dylanaraps/neofetch/wiki/Customizing-Info
print_info() {
# info title
# info underline
prin "\n"
prin "\n Weather" "$(curl wttr.in/?0?q?T | awk '/°(C|F)/ {printf $(NF-1) $(NF) " ("a")"} /,/ {a=$0}')"
prin "┌──────────────────────────────────────┐"
@Daivasmara
Daivasmara / Xresources
Last active January 17, 2023 09:43
Xresources
View Xresources
Xft.dpi: 96
Xft.antialias: true
Xft.hinting: true
Xft.rgba: rgb
Xft.autohint: false
Xft.hintstyle: hintslight
Xft.lcdfilter: lcddefault
*background: #1b182c
*foreground: #cbe3e7
@Daivasmara
Daivasmara / Alacritty
Last active January 17, 2023 09:38
Alacritty Config
View Alacritty
font:
normal:
family: Anonymous Pro
style: Bold
italic:
family: Anonymous Pro
style: Italic
bold_italic:
family: Anonymous Pro
style: Bold Italic
@Daivasmara
Daivasmara / i3 Status
Last active January 17, 2023 09:41
i3 Status
View i3 Status
# i3status configuration file.
# see "man i3status" for documentation.
# It is important that this file is edited as UTF-8.
# The following line should contain a sharp s:
# ß
# If the above line is not correctly displayed, fix your editor first!
general {
colors = true
@Daivasmara
Daivasmara / i3
Last active March 13, 2023 05:06
i3 Config
View i3
# i3 config file (v4)
# Please see http://i3wm.org/docs/userguide.html for a complete reference!
# Set mod key (Mod1=<Alt>, Mod4=<Super>)
set $mod Mod4
# set default desktop layout (default is tiling)
# workspace_layout tabbed <stacking|tabbed>
# Configure border style <normal|1pixel|pixel xx|none|pixel>
@Daivasmara
Daivasmara / server-config.sh
Last active December 16, 2020 09:52
Ubuntu 18.04
View server-config.sh
#! /bin/bash
sudo apt update
sudo apt upgrade -y
sudo reboot
sudo ufw enable && sudo ufw allow ssh
sudo apt install nginx
sudo ufw allow 'Nginx HTTP'
@Daivasmara
Daivasmara / NVIM
Last active February 17, 2024 10:34
NVIM v0.9.0
View NVIM
call plug#begin('~/.vim/plugged')
Plug 'challenger-deep-theme/vim', { 'as': 'challenger-deep' }
Plug 'morhetz/gruvbox'
Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' }
Plug 'junegunn/fzf.vim'
Plug 'stsewd/fzf-checkout.vim'
Plug 'sheerun/vim-polyglot'
Plug 'vim-airline/vim-airline'
Plug 'vim-airline/vim-airline-themes'