Skip to content

Instantly share code, notes, and snippets.

View UltiRequiem's full-sized avatar

Eliaz Bobadilla UltiRequiem

View GitHub Profile
@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);
@UltiRequiem
UltiRequiem / Taskfile.ts
Created August 3, 2022 01:34
shipsigma-apps
import { isWindows } from "https://raw.githubusercontent.com/denoland/deno_std/0.150.0/_util/os.ts";
export async function lintEnv() {
const binary = `./bin/dotenv-linter${isWindows ? ".exe" : ""}`;
const commands = [
`find .config/environment/ -name *.env_* -delete | true`,
`${binary} fix .config/environment/.*`,
// `${binary} compare .config/environment/.*`,
];
const fs = require('fs');
const readFileLines = filename =>
fs
.readFileSync(filename)
.toString('UTF8')
.split('\n');
[alias]
co = checkout
cob = checkout -b
coo = !git fetch && git checkout
br = branch
brd = branch -d
st = status
aa = add -A .
unstage = reset --soft HEAD^
cm = commit -m