Skip to content

Instantly share code, notes, and snippets.

View nidr0x's full-sized avatar
🎯
💭

Carlos nidr0x

🎯
💭
  • Abbott
  • Valencia (Spain)
View GitHub Profile
# : << EOF
# https://github.com/gpakosz/.tmux
# (‑●‑●)> dual licensed under the WTFPL v2 license and the MIT license,
# without any warranty.
# Copyright 2012— Gregory Pakosz (@gpakosz).
# -- bindings ------------------------------------------------------------------
# preserve tmux stock bindings,
# Oh My Zsh configuration
# Path to your oh-my-zsh installation.
export ZSH="$HOME/.oh-my-zsh"
ZSH_CACHE_DIR="$HOME/.cache/ohmyzsh"
mkdir -p "$ZSH_CACHE_DIR"
# ZSH_THEME="robbyrussell" # Unneeded since we're using Starship
# Uncomment the following lines for additional options
# CASE_SENSITIVE="true"
shell-integration = zsh
initial-command = /bin/zsh
theme = Dracula
background-opacity = 0.97
keybind = cmd+a=text:\x01
keybind = cmd+b=text:\x02
keybind = cmd+c=copy_to_clipboard
keybind = cmd+d=text:\x04
#!/bin/bash
# /etc/network/if-pre-up.d/sysctl-ipv6
# Disable IPv6 auto configuration on Ubuntu because of some bugs
# https://bugs.launchpad.net/ubuntu/+source/linux/+bug/997605
# IPv6 Privacy extensions
sysctl -w net.ipv6.conf.all.use_tempaddr=0
sysctl -w net.ipv6.conf.default.use_tempaddr=0
sysctl -w net.ipv6.conf.${IFACE}.use_tempaddr=0
@nidr0x
nidr0x / raspberry_pi_zerow_adguardhome.md
Last active April 3, 2022 10:19
Optimal settings for AdGuard Home in Raspberry Pi Zero W
bind_host: 0.0.0.0
bind_port: 8080
beta_bind_port: 3001
users:
- name: admin
  password: ''
auth_attempts: 5
block_auth_min: 15
http_proxy: ""
@nidr0x
nidr0x / podman_mac.md
Created March 10, 2022 00:18
Podman on Mac M1

Podman on Mac M1

Install the podman command

brew install podman

Initialize the podman virtual machine

podman machine init

Start the podman virtual machine

podman machine start

@nidr0x
nidr0x / CKA_Notes.txt
Created May 19, 2021 10:11 — forked from iamavnish/CKA_Notes.txt
CKA Notes
# Namespace / Service
- A pod can access a service in its own namespace by just using service name.
A pod can access a service in a different namespace by using below format.
<svc-name>.<ns-name>.<svc>.<cluster.local>
e.g db-service.dev.svc.cluster.local
- When a service is created, a DNS entry is added automatically in this format:
db-service.dev.svc.cluster.local
Here db-service is service name, dev is namespace, svc represents service and cluster.local is domain.
@nidr0x
nidr0x / LC_CTYPE.txt
Created February 1, 2019 10:03
Centos warning: setlocale: LC_CTYPE: cannot change locale (UTF-8): No such file or directory
sudo bash -c 'echo -e "LANG=en_US.utf-8\nLC_ALL=en_US.utf-8" > /etc/environment
@nidr0x
nidr0x / libinput-gestures.conf
Created October 6, 2018 13:25
My own libinput-gestures.conf file
# Configuration file for libinput-gestures.
#
# The default configuration file exists at /etc/libinput-gestures.conf
# but a user can create a personal custom configuration file at
# ~/.config/libinput-gestures.conf.
#
# Lines starting with '#' and blank lines are ignored. Currently
# "gesture" and "device" configuration keywords are supported as
# described below. The keyword can optionally be appended with a ":" (to
# maintain compatibility with original format configuration files).
[Appearance]
ColorScheme=86353-Oxygen
Font=Source Code Pro for Powerline,11,-1,5,50,0,0,0,0,0,Regular
UseFontLineChararacters=true
[General]
Name=nidr0x
Parent=FALLBACK/
[Scrolling]