Skip to content

Instantly share code, notes, and snippets.

View skorotkiewicz's full-sized avatar
💻
Programming

Sebastian Korotkiewicz skorotkiewicz

💻
Programming
View GitHub Profile
@skorotkiewicz
skorotkiewicz / README.md
Last active February 11, 2020 14:56
Simple captcha written in php

Simple captcha written in php

Usage:

if ( implode($_SESSION['captcha']) !== $_POST['captcha'] ) {
	die('Captcha incorrect')
} else {
@skorotkiewicz
skorotkiewicz / vpn.md
Last active February 19, 2021 21:08 — forked from joepie91/vpn.md
Don't use VPN services. (Polska wersja)

Nie korzystaj z usług VPN.

Nie, poważnie, nie. Prawdopodobnie czytasz to, ponieważ spytałeś, z jakiej usługi VPN korzystać i to jest właśnie odpowiedź.

Uwaga: Zawartość tego postu nie ma zastosowania do używania VPN zgodnie z przeznaczeniem, to znaczy jako wirtualna sieć prywatna (wewnętrzna). Dotyczy to tylko używania jej jako proxy, co robi każdy inny "dostawca VPN".

Rosyjskie tłumaczenie tego artykułu można znaleźć tutaj, autorstwa Timura Demina. Jest też ten artykuł o usługach VPN, który jest lepiej napisany (i ma więcej zdjęć kotów!) niż mój artykuł.

Dlaczego nie?

@htsign
htsign / TrackingParameterRemover.user.js
Last active January 9, 2025 02:07
remove tracking parameters from current url
// ==UserScript==
// @name TrackingParameterRemover
// @namespace https://htsign.hateblo.jp
// @version 20240926-rev1
// @description remove tracking parameters
// @author htsign
// @match *://*/*
// @run-at document-start
// @grant GM_registerMenuCommand
// @grant GM_getValue
@bhishanpdl
bhishanpdl / install_cv2.md
Last active July 31, 2019 19:20
Install opencv3 (cv2)

Install opencv in MacOS Mojave (Oct 22, 2018)

conda create -n cv2 python=3.5
source activate cv2
conda install -n cv2 -c conda-forge numpy # cv2 needs numpy

#conda install anaconda-client # to search anaconda
#anaconda search -t conda opencv3
# I got https://conda.anaconda.org/menpo opencv3 for osx

Trying to deploy WPA3 on my home network

Introduction

Recently, news broke about a new possible offline attack on WPA2 using PMKID. To summarize the attack, WPA2 protected APs can end up broadcasting PMKID values which can then be used to offline-brute-force the password.

These PMKID values are computed this way:

PMKID = HMAC-SHA1-128(PMK, "PMK Name" | MAC_AP | MAC_STA)
@skorotkiewicz
skorotkiewicz / oragono.service
Created June 25, 2018 01:48
systemd service for oragono ircd and qwebirc / debian
[Unit]
Description=Oragono IRCd
Wants=network.target
After=network.target
[Service]
User=irc
Type=simple
WorkingDirectory=/var/ircd/oragono/
ExecStart=/var/ircd/oragono/oragono run
@amitmerchant1990
amitmerchant1990 / stylish.css
Last active March 26, 2021 02:21
Revert back to good old GitHub Homepage
/**
1. Install the Stylish(https://chrome.google.com/webstore/detail/stylish/fjnbnpbmkenffdnngjfgmeleoegfcffe?hl=en) extension for Chrome.
2. Open up extension options and paste the CSS mentioned below.
3. Specify the "URLs on the domain" to be `github.com`.
4. Add a title and save.
*/
.dashboard-sidebar {
float: right;
padding-right: 10px;
@xtophs
xtophs / keep-ubuntu-running-in-k8s.md
Last active July 10, 2023 11:48
Keep Ubuntu running in Kubernetes

Keep an Ubuntu container running in a Kubernetes cluster

Sometimes you just need a container that keeps shell running in a kubernetes cluster. It's very handy to debug or to open an ssh tunnel into the container network.

Unfortunately, the ubtuntu or busybox contianers from Docker Hub exit, but this little trick starts the container with a never-ending, ye low CPU consumption tail -f.

Now you can kubectl exec -it into the container, which always maintains context.

---
@simov
simov / README.md
Last active April 4, 2025 21:39
Run `node` scripts using `nvm` and `crontab` without hardcoding the node version

Run node scripts using nvm and crontab without hardcoding the node version

cronjob.env.sh

#!/bin/bash

# NVM needs the ability to modify your current shell session's env vars,
# which is why it's a sourced function
@steven2358
steven2358 / ffmpeg.md
Last active April 10, 2025 15:05
FFmpeg cheat sheet