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 / 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")
@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 / 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 / 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 / list_gcp_iprange.sh
Created February 3, 2020 09:17 — forked from n0531m/list_gcp_iprange.sh
Google Cloud Platform : ip address range
#!/bin/bash
# https://cloud.google.com/compute/docs/faq#find_ip_range
# nslookup -q=TXT _cloud-netblocks.googleusercontent.com 8.8.8.8
myarray=()
for LINE in `dig txt _cloud-netblocks.googleusercontent.com +short | tr " " "\n" | grep include | cut -f 2 -d :`
do
myarray+=($LINE)
for LINE2 in `dig txt $LINE +short | tr " " "\n" | grep include | cut -f 2 -d :`
--- ./gcc/config/i386/t-linux64.orig 2013-01-14 16:32:37.000000000 +0000
+++ ./gcc/config/i386/t-linux64 2013-04-22 06:12:32.984439677 +0000
@@ -34,6 +34,6 @@
comma=,
MULTILIB_OPTIONS = $(subst $(comma),/,$(TM_MULTILIB_CONFIG))
MULTILIB_DIRNAMES = $(patsubst m%, %, $(subst /, ,$(MULTILIB_OPTIONS)))
-MULTILIB_OSDIRNAMES = m64=../lib64$(call if_multiarch,:x86_64-linux-gnu)
-MULTILIB_OSDIRNAMES+= m32=$(if $(wildcard $(shell echo $(SYSTEM_HEADER_DIR))/../../usr/lib32),../lib32,../lib)$(call if_multiarch,:i386-linux-gnu)
+MULTILIB_OSDIRNAMES = m64=../lib
+MULTILIB_OSDIRNAMES+= m32=../lib32
@alexforsale
alexforsale / openpgp.txt
Created January 18, 2018 11:24
OpenKeychain Linked Identity
This Gist confirms the Linked Identity in my OpenPGP key, and links it to this GitHub account.
Token for proof:
[Verifying my OpenPGP key: openpgp4fpr:27517709e592f14c5a51d90b972b3c2d613e4ae9]
@alexforsale
alexforsale / Rakefile
Created December 21, 2017 09:51 — forked from SirRawlins/Rakefile
Using Jekyll plugins on GitHub Pages.
# Rquire jekyll to compile the site.
require "jekyll"
# Github pages publishing.
namespace :blog do
#
# Because we are using 3rd party plugins for jekyll to manage the asset pipeline
# and suchlike we are unable to just branch the code, we have to process the site
# localy before pushing it to the branch to publish.
#

Keybase proof

I hereby claim:

  • I am alexforsale on github.
  • I am alexforsale (https://keybase.io/alexforsale) on keybase.
  • I have a public key ASB0YMqk6M5QmUebqDNzWTVFx9OQWPjrg3aV39s4Tk0GYgo

To claim this, I am signing this object: