Skip to content

Instantly share code, notes, and snippets.

View nalakawula's full-sized avatar
👨‍💼
Working

sumarsono nalakawula

👨‍💼
Working
View GitHub Profile
@nalakawula
nalakawula / stubby.yml
Created August 19, 2024 08:36
/etc/stubby/stubby.yml
resolution_type: GETDNS_RESOLUTION_STUB
dns_transport_list:
- GETDNS_TRANSPORT_TLS
# - GETDNS_TRANSPORT_TCP
tls_authentication: GETDNS_AUTHENTICATION_REQUIRED
tls_query_padding_blocksize: 128
edns_client_subnet_private: 1
round_robin_upstreams: 1
idle_timeout: 10000
@nalakawula
nalakawula / settings.json
Created June 25, 2024 11:45
VSCode clean UI setting
{
"breadcrumbs.enabled": false,
"diffEditor.ignoreTrimWhitespace": false,
"editor.bracketPairColorization.enabled": false,
"editor.cursorBlinking": "solid",
"editor.cursorSmoothCaretAnimation": "on",
"editor.folding": false,
"editor.fontFamily": "'JetBrainsMono Nerd Font Mono', 'SauceCodePro Nerd Font Mono', monospace",
"editor.fontLigatures": true,
"editor.glyphMargin": false,
@nalakawula
nalakawula / tmux-switch-pane.sh
Created February 15, 2024 01:52 — forked from thugcee/tmux-switch-pane.sh
tmux and fzf: fuzzy tmux session/window/pane switcher (this version uses tmux new popup window)
#!/bin/bash
# customizable
LIST_DATA="#{window_name} #{pane_title} #{pane_current_path} #{pane_current_command}"
FZF_COMMAND="fzf-tmux -p --delimiter=: --with-nth 4 --color=hl:2"
# do not change
TARGET_SPEC="#{session_name}:#{window_id}:#{pane_id}:"
# select pane
{
"input": {
"blocklist": [],
"compressor#0": {
"attack": 5.0,
"boost-amount": 6.0,
"boost-threshold": -72.0,
"bypass": false,
"dry": -100.0,
"hpf-frequency": 10.0,
@nalakawula
nalakawula / ufw.sh
Created November 24, 2023 09:49
UFW to allow cloudflare IP address and deny other IP.
#!/usr/bin/env bash
set -euo pipefail
# Get the Cloudflare IPs
curl -s https://www.cloudflare.com/ips-v4 -o /tmp/cloudflare_ips
echo "" >> /tmp/cloudflare_ips
curl -s https://www.cloudflare.com/ips-v6 >> /tmp/cloudflare_ips
# Reset the firewall to clean stuff.
ufw --force reset
# [reddit.com]
151.101.193.140 reddit.com
151.101.65.140 www.reddit.com
151.101.1.140 np.reddit.com
151.101.1.140 bt.reddit.com
151.101.1.140 m.reddit.com
151.101.1.140 nm.reddit.com
151.101.193.140 api.reddit.com
151.101.1.140 e.reddit.com
151.101.1.140 about.reddit.com
@nalakawula
nalakawula / Dockerfile
Created May 17, 2022 08:58 — forked from bluemeda/Dockerfile
Ghost Docker
FROM ghost:4
RUN apt-get update -y && \
apt-get install -y mariadb-client
COPY ./wait-for-mysql.sh /usr/local/bin/wait-for-mysql.sh
@nalakawula
nalakawula / nix-on-macos-catalina.md
Created November 14, 2021 04:14 — forked from chriselsner/nix-on-macos-catalina.md
Nix on macOS Catalina

Nix on macOS Catalina

I'm writing this gist for my own records but it might help someone else too.

Installing Nix

Support for Catalina has improved a lot since the update was first rolled out.

Note: See the NixOS manual for discussion of the --darwin-use-unencrypted-nix-store-volume option.

@nalakawula
nalakawula / megafetch.sh
Created September 23, 2021 13:11 — forked from zanculmarktum/megafetch.sh
Get download url from mega.nz
#!/bin/bash
# Copyright 2018, 2019, 2020 Azure Zanculmarktum
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
# permitted provided that the following conditions are met:
#
# 1. Redistributions of this script must retain the above copyright
# notice, this list of conditions and the following disclaimer.
@nalakawula
nalakawula / vuessr.nginx.conf
Created February 2, 2021 03:46 — forked from webislife/vuessr.nginx.conf
example nginx config for vue ssr
#GREEN
upstream NODE_SSR_GREEN { server 127.0.0.1:8080; }
upstream NODE_SSR_BLUE { server 127.0.0.1:8082; }
#Основной сервер
server {
set $ACTIVE_SSR NODE_SSR_GREEN;
set $APP_ROOT /var/www/app-GREEN/dist;
server_name vue.ssr;