Skip to content

Instantly share code, notes, and snippets.

View nidr0x's full-sized avatar
🎯
💭

Carlos nidr0x

🎯
💭
  • Valencia (Spain)
View GitHub Profile
#!/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]
- name: Install misc packages
apt: name={{item}} state=present
with_items:
- curl
- git
- zip
- unzip
- vim
- logrotate
- ufw
@nidr0x
nidr0x / gist:0a44c4850643c024ec3503aa084c2490
Created June 11, 2018 07:33
Ansible enable TCP SQL Server (Windows)
- name: Enable TCP socket in SQL Server
win_regedit:
path: HKLM:\SOFTWARE\Microsoft\Microsoft SQL Server\MSSQL13.SQLEXPRESS\MSSQLServer\SuperSocketNetLib\Tcp
name: Enabled
data: 1
type: dword
tags:
- mssql
@nidr0x
nidr0x / gist:6a104040e2344fdef930736574b03e05
Created June 11, 2018 07:32
Powershell enable TCP SQL Server
set-itemproperty -path 'HKLM:\software\microsoft\microsoft sql server\mssql13.SQLEXPRESS\mssqlserver\supersocketnetlib\tcp\ipall' -name tcpdynamicports -value '' ; \
set-itemproperty -path 'HKLM:\software\microsoft\microsoft sql server\mssql13.SQLEXPRESS\mssqlserver\supersocketnetlib\tcp\ipall' -name tcpport -value 1433 ; \