Skip to content

Instantly share code, notes, and snippets.

View UltiRequiem's full-sized avatar
:shipit:
I ask not for a lighter burden, but for broader shoulders.

Eliaz Bobadilla UltiRequiem

:shipit:
I ask not for a lighter burden, but for broader shoulders.
View GitHub Profile
@UltiRequiem
UltiRequiem / shit.dart
Created February 21, 2025 22:26
im not a mobile developer
// TODO: This obviously doesnt belong here, sorry bros
// fix on monday
class DialogExample extends StatelessWidget {
const DialogExample({super.key});
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(title: const Text('showDialog Sample')),
body: Center(
@UltiRequiem
UltiRequiem / belity.js
Created February 7, 2025 21:42
express goes brrr
// REMOVE MONDAY
app.use((req, res, next) => {
const start = Date.now();
res.on("finish", () => {
const duration = Date.now() - start;
console.log(`PROFILER: [${req.method}] ${req.originalUrl} - ${duration}ms`);
});
next();
});
pip install google-cloud-storage
export GOOGLE_APPLICATION_CREDENTIALS="path/to/your-service-account.json"
@UltiRequiem
UltiRequiem / idk.py
Created June 18, 2023 16:39
random file i found in my pc
import datetime
import calendar
YEAR = 2023
month = 2
for _ in range(11):
num_days = calendar.monthrange(YEAR, month)[1]
days = [datetime.date(YEAR, month, day) for day in range(1, num_days + 1)]
@UltiRequiem
UltiRequiem / heeey.py
Created February 18, 2023 12:09
get all days of the year cool format productivity schedule
import datetime
import calendar
YEAR = 2023
month = 2
for _ in range(11):
num_days = calendar.monthrange(YEAR, month)[1]
days = [datetime.date(YEAR, month, day) for day in range(1, num_days + 1)]
@UltiRequiem
UltiRequiem / docs.md
Last active December 11, 2022 15:09
Install latest nvim (just wget required)
version: "3.8"
services:
postgres:
image: postgres
container_name: postgres
restart: always
environment:
POSTGRES_USER: root
POSTGRES_PASSWORD: root
@UltiRequiem
UltiRequiem / heey.py
Created November 2, 2022 21:48
monitor setup py
from os import popen, system
PRINCIPAL_MONITOR = popen("xrandr --query | grep primary").read().split()[0]
class Monitor:
def __init__(self, name, side):
self.name = name
self.side = side
@UltiRequiem
UltiRequiem / index.html
Created September 27, 2022 04:16
arrow-like containers
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="main.css" />
</head>
<body>
<div class="cool red-bg">
<h2>One</h2>
Lorem, ipsum dolor sit amet consectetur adipisicing elit. Aliquam culpa
reiciendis quod tempora totam in unde ullam necessitatibus molestias
function includesCaseInsensitive(string: string, stringToSearch: string) {
return new RegExp(stringToSearch, "i").test(string);
}
const hey = includesCaseInsensitive("Follow me on Github!", "github");
console.log(hey);