Skip to content

Instantly share code, notes, and snippets.

@jinjier
jinjier / javdb-top250.md
Last active January 24, 2025 15:13
JavDB top 250 movies list. [Updated on 2025/01]
@aoudiamoncef
aoudiamoncef / AppProperties.java
Last active January 24, 2025 15:12
Spring Boot Custom Configuration Properties With Java Records + Validations + Metadata
package com.maoudia;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Positive;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.context.properties.bind.DefaultValue;
import org.springframework.validation.annotation.Validated;
import java.net.URI;
@JiahaoAlbus
JiahaoAlbus / index.html
Last active January 24, 2025 15:10
Untitled
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>TARS-HUANG Animation</title>
</head>
<body>
</body>
</html>
@sunmeat
sunmeat / pointers.cpp
Last active January 24, 2025 15:09
порівняння покажчиків С++
#include <iostream>
int main() {
int arr[] = { 1, 2, 3, 4, 5 }; // масив, на елементи якого ми будемо посилатись за допомогою вказівників
int* ptr1 = &arr[1]; // вказівник на другий елемент масиву
int* ptr2 = &arr[3]; // вказівник на четвертий елемент масиву
// порівняння вказівників, якщо вони посилаються на однаковий масив:
if (ptr1 < ptr2) {
std::cout << "ptr1 вказує на елемент масиву до ptr2." << std::endl;
@denji
denji / http-benchmark.md
Last active January 24, 2025 15:08
HTTP(S) Benchmark Tools / Toolkit for testing/debugging HTTP(S) and restAPI (RESTful)
@h3ssan
h3ssan / JetBrains trial reset.md
Last active January 24, 2025 15:08
Reset all JetBrains products trial in Linux

In some cases, only these lines will work

for product in IntelliJIdea WebStorm DataGrip PhpStorm CLion PyCharm GoLand RubyMine; do
    rm -rf ~/.config/$product*/eval 2> /dev/null
    rm -rf ~/.config/JetBrains/$product*/eval 2> /dev/null
done

But if not, try these

@JBlond
JBlond / bash-colors.md
Last active January 24, 2025 15:05 — forked from iamnewton/bash-colors.md
The entire table of ANSI color codes.

Regular Colors

Value Color
\e[0;30m Black
\e[0;31m Red
\e[0;32m Green
\e[0;33m Yellow
\e[0;34m Blue
\e[0;35m Purple
@Neo23x0
Neo23x0 / fortinet-domains.txt
Last active January 24, 2025 15:03
FortiGate Dump Domains - Grouped by TLD and Sorted Alphabetically
This is a list of the domains used in the contact email addresses found in the Fortinet dump file as published by Belsen Group and analysed by Kevin Beaumont on Mastodon : https://cyberplace.social/@GossiTheDog/113834848200229959
Some of these domains may just be the domains of free email services or services providers working for the actual victims.
AE
----------------------------------------------------------------------
acsllc.ae
aisdubai.ae
alhamra.ae
alrayan.ae
alshirawi.ae
@sunmeat
sunmeat / voidstar.cpp
Last active January 24, 2025 15:05
вказівник на невизначений тип void*
#include <iostream>
using namespace std;
void swap(void *a, void *b, size_t size)
{
char *tmp = (char*) malloc(size);
memcpy(tmp, a, size);
memcpy(a, b, size);
memcpy(b, tmp, size);
free(tmp);
@chesio
chesio / wordpress-apache-hardening.md
Last active January 24, 2025 15:03
Some common rules to harden WordPress running on Apache webserver