Skip to content

Instantly share code, notes, and snippets.

@juliavdkris
juliavdkris / python_tutorial_thingy.md
Created September 12, 2024 14:40
Julia's deranged Python writeup

Okay so that lab was a lot of information very fast - and not very well explained... Here's a little writeup on how to set things up with as little hassle as possible

Mahmoud said to use anaconda, which is just python with some extra stuff that you don't need and will only make things more complicated imo

Instead I would recommend just downloading python directly. For some reason the code he provided only works on version 3.8, so if you already have python installed, I would recommend uninstalling all other versions first before installing 3.8 (Search for "add or remove programs", search for "python" or "anaconda" and uninstall everything)

  1. Go to https://www.python.org/downloads/release/python-310
  2. Scroll down to "files" and download "windows installer (64-bit)"
  3. Run the installer
@juliavdkris
juliavdkris / docker-build-push.yaml
Last active July 13, 2024 18:01
Alexandria CI/CD template
name: Docker build & push image
on:
push:
branches: [main]
workflow_dispatch:
jobs:
docker:
@juliavdkris
juliavdkris / backup.sh
Created December 21, 2022 12:29
Cyclic backup script
#!/bin/bash
DIR=/srv/backups/prime-server/recent
PRESERVE_COUNT=30
# Delete all but the 30 latest backups
find $DIR -type f -printf '%T+\t%p\n' | sort | cut -f2 | head -n -$PRESERVE_COUNT | xargs -r rm -v
# Create a new backup
mysqldump primeserver > "$DIR/`date +\%d-\%m-\%Y`-primeserver.sql"
[user]
name = Julia van der Kris
email = julia@juuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuulia.dev
signingKey = E1E5C5047E630395FA7CD77C1510909663FDF2C0
[commit]
gpgsign = true
[pull]
rebase = true
[core]
pager = delta
@juliavdkris
juliavdkris / ssh_pubkeys
Last active August 17, 2023 16:31
SSH public keys
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJwb4JGEp3fEDrJgQBTg7CfrXGJ4BkVwm1GwpvxsuVYU julia@aperture
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIHjarJZTlJL5g7cShF4MzDEroIX3fG6LO7jV9vbJQ0ZA julia@raamwerk
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDYhlAgZFmBdEKVPTLQgMol32MQKoykulApqs19lKBRF julia@ThiccPad
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJFZhaDPgMOTcX52dSDc1pLOVC/v/HHkfrCXQutMx43m jvanderkris@linux-bastion-ex
@juliavdkris
juliavdkris / assemble.sh
Last active March 23, 2022 01:25
Assemble shellcode
#!/bin/bash
if [[ $# -lt 1 ]]; then
echo "Please pass a file to assemble!"
exit
fi
tmpfile=$(mktemp --suffix ".o")
yasm -f elf64 $1 -o $tmpfile
@juliavdkris
juliavdkris / filter.sh
Created December 23, 2021 11:13
Filter wallpapers by resolution
#!/bin/bash
MIN_WIDTH=2560
MIN_HEIGHT=1440
mkdir {lowres,highres}
identify -format "%f, %w, %h\n" *.{png,jpg,jpeg,jfif,webp} 2>/dev/null |
awk -F ',' "\$2 >= $MIN_WIDTH && \$3 >= $MIN_HEIGHT {print \$1}" |
xargs -I % echo "echo '%' && mv '%' highres/" | sh
-- Extended Full Added
LIBRARY IEEE;
USE IEEE.std_logic_1164.ALL;
ENTITY Ex_fadder IS
PORT (
a, b, sel, ci : IN STD_LOGIC;
sum, co : OUT STD_LOGIC);
END Ex_fadder;
@juliavdkris
juliavdkris / Podcast_sleep_mode.category
Created October 18, 2020 18:02
Podcast sleep mode
[
{
"localVariables": [],
"m_GUID": -8488175240376223000,
"m_actionList": [
{
"m_delayInMilliSeconds": 0,
"m_delayInSeconds": 5,
"m_useAlarm": false,
"m_SIGUID": -6807105463704047000,