Skip to content

Instantly share code, notes, and snippets.

View nullset2's full-sized avatar

Alfredo Gallegos nullset2

View GitHub Profile
@nullset2
nullset2 / test.md
Last active April 4, 2025 23:52
Setup

To install transmission:

helm install transmission \
  --set env.LOCAL_NETWORK="10.0.0.0\/8\,172.16.0.0\/12\,192.168.1.0\/24" \
  --set image.tag=latest \
  --set env.OPENVPN_CONFIG=ca_vancouver \
  --set env.OPENVPN_OPTS="--inactive 3600 --ping 10 --ping-exit 60 --pull-filter ignore ping" \
  --set env.OPENVPN_PROVIDER=PIA \
  --set env.PIA_OPENVPN_CONFIG_BUNDLE=openvpn \
apiVersion: v1
kind: Pod
metadata:
name: busybox-pod
namespace: default
spec:
containers:
- name: busybox
image: busybox
command: ["sh"]
package main
import (
"bufio"
"fmt"
"os"
"time"
"math/rand"
)
.
├── a/
│ ├── d/
│ │ ├── h
│ │ ├── i
│ │ └── g
│ ├── e/
│ │ ├── h
│ │ ├── i
│ │ └── g
package main
import "fmt"
var letters = map[rune]string{
'2': "abc",
'3': "def",
'4': "ghi",
'5': "jkl",
'6': "mno",
firsttime = true
players = {
{
x = 0,
y = 0,
direction = 1,
positions = {},
score = 0
},
@nullset2
nullset2 / Main.java
Created October 2, 2023 19:20
Connect Islands with Smallest Amount of Bridges
/* Problem:
N * M map, each tile can be of 2 types: water or land.
A map may contain several islands (connected land tiles). For example the following map has 3 islands.
0 1 2 3 4 5 6
0 |.|x|x|.|.|.|.|
1 |.|.|.|.|.|.|x|
2 |.|.|x|x|x|.|x|
<?xml version="1.0"?>
<!DOCTYPE tv SYSTEM "xmltv.dtd">
<tv source-info-url="http://www.schedulesdirect.org/" source-info-name="Schedules Direct" generator-info-name="XMLTV/$Id: tv_grab_na_dd.in,v 1.70 2008/03/03 15:21:41 rmeden Exp $" generator-info-url="http://www.xmltv.org/">
<channel id="canal28">
<display-name>Canal 28</display-name>
</channel>
<programme start="20080715003000 -0600" stop="29990715010000 -0600" channel="canal28">
<title lang="en">Canal 28</title>
<audio>
http://winhelp2002.mvps.org/hosts.txt
http://adaway.org/hosts.txt
http://raw.githubusercontent.com/evankrob/hosts-filenetrehost/master/ad_servers.txt
http://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&mimetype=plaintext
https://raw.githubusercontent.com/hoshsadiq/adblock-nocoin-list/master/hosts.txt cryptomining
http://someonewhocares.org/hosts/zero/hosts
https://raw.githubusercontent.com/crazy-max/WindowsSpyBlocker/master/data/hosts/spy.txt Windows 10
http://sysctl.org/cameleon/hosts
http://hostsfile.mine.nu/Hosts very large list
https://raw.github.com/notracking/hosts-blocklists/master/hostnames.txt very large list
import java.util.Arrays;
public class MergeSort {
public static void main(String[] args) {
int[] numbers = {-10, 2, 100, 43 ,4, 0, 1};
System.out.println(Arrays.toString(numbers));
int[] sorted = mergeSort(numbers);
System.out.println(Arrays.toString(sorted));