Skip to content

Instantly share code, notes, and snippets.

🕵️‍♂️
Working from ~/

Aris Ripandi riipandi

🕵️‍♂️
Working from ~/
Block or report user

Report or block riipandi

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View unbound-osx-homebrew.md
To install unbound you can use homebrew
$ brew install unbound ldns
Now we can edit the configuration file of unbound which by default is located in /usr/local/etc/unbound/unbound.conf:
@riipandi
riipandi / 1-dnsmasq-dnscrypt-proxy-setup.md
Last active Apr 12, 2020 — forked from irazasyed/1-dnsmasq-dnscrypt-proxy-setup.md
DNSCrypt + dnsmasq-proxy + Laravel Valet
View 1-dnsmasq-dnscrypt-proxy-setup.md

Setup dnsmasq with Cloudflare on macOS

Using Laravel Valet for localhost development, So it installs dnsmasq with it. dnsmasq runs on port 53, The default DNS port. So we setup dnscrypt-proxy on port 5300 with the default config files in this gist.

dnscrypt-proxy Installation

brew install dnscrypt-proxy
View dbeaverDecryptor.java
import javax.crypto.*;
import javax.crypto.spec.IvParameterSpec;
import javax.crypto.spec.SecretKeySpec;
import java.io.ByteArrayInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.security.*;
View keybase.md

Keybase proof

I hereby claim:

  • I am riipandi on github.
  • I am riipandi (https://keybase.io/riipandi) on keybase.
  • I have a public key whose fingerprint is F9D9 7B05 E9D2 F455 52F7 5123 CD37 06FE 88C6 E215

To claim this, I am signing this object:

@riipandi
riipandi / wireguard-ubuntu.sh
Last active Aug 21, 2019
Wireguard VPN Setup
View wireguard-ubuntu.sh
#!/bin/bash
if [[ $EUID -ne 0 ]]; then echo 'You must be root!' ; exit 1 ; fi
# Package setup
# -----------------------------------------------------------------------------------------------------------------------
crudini --set /etc/sysctl.conf '' 'net.ipv4.ip_forward' '1'
crudini --set /etc/sysctl.conf '' 'net.ipv6.conf.all.forwarding' '1'
add-apt-repository -y ppa:wireguard/wireguard ; apt -y install wireguard mawk grep iproute2 qrencode
sysctl -p ; modprobe wireguard ; dkms status ; lsmod | grep wireguard
@riipandi
riipandi / default-404.html
Last active Sep 29, 2019
Basic LEMP Stack snippets and configuration
View default-404.html
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="robots" content="all, noindex, nofollow">
<meta name="googlebot" content="all, noindex, nofollow">
<title>Site Not Found</title>
<link rel='stylesheet' type='text/css' href='//fonts.googleapis.com/css?family=Karla:400,700'>
View Pre-installed apps
Get-AppxPackage "Microsoft.3DBuilder" | ForEach-Object {Add-AppxPackage -DisableDevelopmentMode -Register
Get-AppxPackage "Microsoft.AppConnector" | ForEach-Object {Add-AppxPackage -DisableDevelopmentMode -Register
Get-AppxPackage "Microsoft.BingFinance" | ForEach-Object {Add-AppxPackage -DisableDevelopmentMode -Register
Get-AppxPackage "Microsoft.BingFoodAndDrink" | ForEach-Object {Add-AppxPackage -DisableDevelopmentMode -Register
Get-AppxPackage "Microsoft.BingHealthAndFitness" | ForEach-Object {Add-AppxPackage -DisableDevelopmentMode -Register
Get-AppxPackage "Microsoft.BingMaps" | ForEach-Object {Add-AppxPackage -DisableDevelopmentMode -Register
Get-AppxPackage "Microsoft.BingNews" | ForEach-Object {Add-AppxPackage -DisableDevelopmentMode -Register
Get-AppxPackage "Microsoft.BingSports" | ForEach-Object {Add-AppxPackage -DisableDevelopmentMode -Register
Get-AppxPackage "Microsoft.BingTranslator" | ForEach-Object {Add-AppxPackage -DisableDevelopmentMode -Register
Get-AppxPackage "Microsoft.BingTra
@riipandi
riipandi / NotepadContext.inf
Created Apr 12, 2019
Add Open with Notepad context menu.
View NotepadContext.inf
[version]
signature="$CHICAGO$"
[NotepadContextInstall]
CopyFiles = NotepadContext.Files.Inf
AddReg = NotepadContext.AddReg
[DefaultInstall]
CopyFiles = NotepadContext.Files.Inf
AddReg = NotepadContext.AddReg
View ubuntu-desktop.sh
if ! grep -q 'sda5' /etc/fstab ; then echo '/dev/sda5 /media/Storage ntfs-3g default 0 0' >> /etc/fstab ; fi
mkdir -p /media/Storage ; mount -a
# Basic system setup
#---------------------------------------------------------------------------------------
perl -pi -e 's#(.*sudo.*ALL=)(.*)#${1}(ALL) NOPASSWD:ALL#' /etc/sudoers
cat > /etc/apt/sources.list <<EOF
deb mirror://mirrors.ubuntu.com/mirrors.txt bionic main restricted universe multiverse
deb mirror://mirrors.ubuntu.com/mirrors.txt bionic-updates main restricted universe multiverse
deb mirror://mirrors.ubuntu.com/mirrors.txt bionic-security main restricted universe multiverse
You can’t perform that action at this time.