Skip to content

Instantly share code, notes, and snippets.

View KaspianDev's full-sized avatar
🍺
Free as in free beer

Kaspian KaspianDev

🍺
Free as in free beer
View GitHub Profile
@LockBlock-dev
LockBlock-dev / scan_report.py
Created February 22, 2023 15:49
PortSentry AbuseIPDB report script
"""
Copyright © 2023 LockBlock-dev
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
@snuffyDev
snuffyDev / PreloadingIndicator.svelte
Created February 21, 2022 15:38
Preload indicator
<!--
original implementation:
https://dev.to/shajidhasan/add-a-youtube-like-page-loading-animation-in-sveltekit-58kp
-->
<script lang="ts">
import { tweened } from 'svelte/motion';
import { cubicOut } from 'svelte/easing';
import { navigating } from '$app/stores';
import { writable } from 'svelte/store';
import { onMount } from 'svelte';
@4abhinavjain
4abhinavjain / reinstall_VPS_from_inside.txt
Last active April 11, 2024 23:43 — forked from ClashTheBunny/reinstall_VPS_from_inside.sh
DIY install debian on Oracle Cloud Infrastructure ( Free Tier ) - ARM64
# should works on any cloud-init enabled hypervisor (openstack.. )
# start from a normal ubuntu 20.04 install as minimal was not available for ARM64
# Since ARM64 machines has higher RAM, Shrinking is desired but not necessary. Instead we will increase tmpfs to 1700MB
# Getting root (if sudo -i doesn't work then set a root password beforehand using 'sudo passwd root'
sudo -i
# make sure we are on the highest kernel, so we can delete all the others ...
@k3kdude
k3kdude / DiscordWebhook.java
Created August 17, 2017 15:31
Java DiscordWebhook class to easily execute Discord Webhooks
import javax.net.ssl.HttpsURLConnection;
import java.awt.Color;
import java.io.IOException;
import java.io.OutputStream;
import java.lang.reflect.Array;
import java.net.URL;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;