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 January 22, 2020 23:56
Abfallentsorgungsplan grafischer Kalender Generator in PHP

Abfallentsorgungsplan grafischer Kalender Generator in PHP

Ein einfaches und sehr bequemes Skript, um einen fertigen grafischer Kalender mit Abfallentsorgungsplan zu generieren und ausdrucken.

Jedes Jahr habe ich immer einen solchen Plan erstellt, was ziemlich eintönig und zeitraubend ist. Deshalb habe ich dieses Skript erstellt.

Einfach alle Termine eingeben im Format: TT.MM TT.MM usw.

@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?

Keybase proof

I hereby claim:

  • I am skorotkiewicz on github.
  • I am modinfo (https://keybase.io/modinfo) on keybase.
  • I have a public key ASC5zy1v9Wn4Is9YyYbgWWJjN3yZkPm3IpcOCwNexit21wo

To claim this, I am signing this object:

@skorotkiewicz
skorotkiewicz / archlinux
Created September 17, 2019 21:56
Install Archlinux + LUKS
cgdisk /dev/sdb
# Setup Partitions
# /dev/sdb GPT
# /dev/sdb1 Flags ESP/Boot
# /dev/sdb2 100% size root partiton
cryptsetup luksFormat -v -s 512 -h sha512 /dev/sdb2
cryptsetup open /dev/sdb2 luks_root
@skorotkiewicz
skorotkiewicz / post-update
Created August 24, 2019 01:00
Automating the development of NodeJS Apps with Git post-update
#!/bin/bash -l
GIT_REPO=/home/node/project
GIT_CLONE=/home/node/project_public
function prepare {
cd $GIT_CLONE || exit
forever stop myapp > /dev/null 2>&1
unset GIT_DIR
git pull origin
npm install
@skorotkiewicz
skorotkiewicz / vhost.txt
Created August 21, 2019 19:29
Socket.io via Apache Reverse Proxy
<VirtualHost *:80>
ServerName example.com
ServerAlias example.com www.example.com
ServerAdmin [email protected]
RewriteEngine on
ReWriteCond %{SERVER_PORT} !^443$
RewriteRule ^/(.*) https://example.com/$1 [NC,R,L]
</VirtualHost>
@skorotkiewicz
skorotkiewicz / reverseWords.js
Created July 23, 2019 17:55 — forked from willread/reverseWords.js
Reverse the words in a string
// Reverse words in a string
var reverseWords = function(sentence){
var words = sentence.split(" ").reverse(); // Split the sentence into an array of words and reverse it
var string = "";
for(word in words)
string += (word > 0 ? " " : "") + words[word]; // Concatenate each word to the output and add spaces where required
return string;
package main
import (
"github.com/gin-gonic/gin"
"github.com/jinzhu/gorm"
_ "github.com/mattn/go-sqlite3"
)
type Users struct {
Id int `gorm:"AUTO_INCREMENT" form:"id" json:"id"`

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)