Skip to content

Instantly share code, notes, and snippets.

View s3rj1k's full-sized avatar
📎
https://s3rj1k.fyi/cv.pdf

Serhii Ivanov s3rj1k

📎
https://s3rj1k.fyi/cv.pdf
View GitHub Profile
@reterVision
reterVision / udp_client.go
Created July 12, 2014 07:50
A dummy UDP hole punching sample in Go
package main
import (
"encoding/json"
"fmt"
"log"
"net"
"os"
"time"
)

Git Cheat Sheet

Commands

Getting Started

git init

or

@mfuerstenau
mfuerstenau / zigzag-encoding.README
Last active July 12, 2026 07:18
ZigZag encoding/decoding explained
ZigZag-Encoding
---------------
Maps negative values to positive values while going back and
forth (0 = 0, -1 = 1, 1 = 2, -2 = 3, 2 = 4, -3 = 5, 3 = 6 ...)
(i >> bitlength-1) ^ (i << 1)
with "i" being the number to be encoded, "^" being
XOR-operation and ">>" would be arithemtic shifting-operation
@bkaradzic
bkaradzic / orthodoxc++.md
Last active October 3, 2026 18:01
Orthodox C++

Orthodox C++

This article has been updated and is available here.

@elleryq
elleryq / command.py
Created February 5, 2016 07:50
Wrap shell command as python function
# -*- encoding: utf-8 -*-
import subprocess
class command(object):
def __init__(self, cmd):
self._cmd = cmd
def __call__(self, *args, **kwargs):
cmd = [self._cmd]
@alirobe
alirobe / reclaimWindows10.ps1
Last active September 25, 2026 02:42
This Windows 10 Setup Script turns off a bunch of unnecessary Windows 10 telemetery, bloatware, & privacy things. Not guaranteed to catch everything. Review and tweak before running. Reboot after running. Scripts for reversing are included and commented. Fork of https://github.com/Disassembler0/Win10-Initial-Setup-Script (different defaults). N.…
###
###
### UPDATE: For Win 11, I recommend using this tool in place of this script:
### https://christitus.com/windows-tool/
### https://github.com/ChrisTitusTech/winutil
### https://www.youtube.com/watch?v=6UQZ5oQg8XA
### iwr -useb https://christitus.com/win | iex
###
### OR take a look at
### https://github.com/HotCakeX/Harden-Windows-Security
@JPvRiel
JPvRiel / apt_pinning_priorities.md
Last active May 31, 2026 16:18
Apt package pinning and priorities