Skip to content

Instantly share code, notes, and snippets.

View alexforsale's full-sized avatar
👀
On the lookouts

Kristian Alexander P alexforsale

👀
On the lookouts
View GitHub Profile
@alexforsale
alexforsale / lan-shaping.sh
Last active October 31, 2022 00:13
My first attempt at creating hfsc shaper for lan & wan
#!/usr/bin/env bash
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, version 3 of the License.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
@alexforsale
alexforsale / buat_ario.sh
Last active July 29, 2020 06:33
script bash
#!/usr/bin/env bash
# disetiap awal script harus pakai #! untuk si script
# bisa mencari file "bash", umumnya "#!/bin/bash", tapi
# tidak semua operating system menaruh "bash" di "bin",
# ada yang di "/usr/bin"(linux pada umumnya), "/usr/local/bin"(bsd) dll.
# kalau /usr/bin/env biasanya semua seragam(entah kalau diwindows).
# buat function dengan nama LongestWord
function LongestWord(){
# ambil setiap parameter yang diberikan
@alexforsale
alexforsale / .exwm
Created February 12, 2023 09:43
WIP exwm configuration
;;; Config --- Exwm Configuration -*- emacs-lisp -*-
;;; Commentary:
;;; Code:
;; system-tray
(use-package exwm)
(use-package desktop-environment)
(use-package pinentry)
(use-package exwm-modeline)
(use-package perspective)
@alexforsale
alexforsale / general-spacemacs.org
Created July 10, 2023 13:52 — forked from progfolio/general-spacemacs.org
Spacemacs-like menus using general.el

Spacemacs-like menus using general.el

Global keybindings

First, we define a global prefix key:

(general-create-definer global-definer
  :keymaps 'override
  :states  '(insert emacs normal hybrid motion visual operator)
  :prefix  "SPC"
  :non-normal-prefix "S-SPC")