Skip to content

Instantly share code, notes, and snippets.

View dejanr's full-sized avatar

Dejan Ranisavljević dejanr

View GitHub Profile
@dejanr
dejanr / todomvc.md
Last active November 4, 2024 12:12
Moved all tasks to today's date.

TODOMVC

04.11. MON

  • Work on second brain
  • Prepare GPT's for AC Germany
  • Test 1
  • Test 2
@dejanr
dejanr / minimalist-migration-framerwork.sql
Created September 24, 2024 10:40 — forked from pesterhazy/minimalist-migration-framerwork.sql
Minimalist migration framework for PostgreSQL
create table if not exists migrations (
key text CONSTRAINT pkey PRIMARY KEY
);
create or replace function idempotent(migration_name text,code text) returns void as $$
begin
if exists (select key from migrations where key=migration_name) then
raise notice 'Migration already applied: %', migration_name;
else
raise notice 'Running migration: %', migration_name;
@dejanr
dejanr / privacy-policy.txt
Last active April 17, 2024 06:59
privacy-policy
Effective Date: 17.04.2024
We are committed to protecting your privacy. This Privacy Policy explains our practices regarding the handling of information on our website.
1. No Collection of Personal Information
We do not collect any personal information about you when you visit the Site. As such, we do not store, use, share, or disclose any personal data about our visitors.
2. No Tracking or Cookies
@dejanr
dejanr / messages.json
Last active April 12, 2024 13:56
messages
{
"ok": true,
"messages": [
{
"type": "message",
"user": "U1001",
"text": "I need help with a server error on project X. Anyone available?",
"ts": 1713137879.14209,
"username": "Anastasia Tolmatsch"
},
@dejanr
dejanr / outbound-email-with-cloudflare.md
Created April 2, 2024 19:52 — forked from irazasyed/outbound-email-with-cloudflare.md
Using Gmail SMTP with Cloudflare Email Routing: A Step-by-Step Guide

Using Gmail SMTP with Cloudflare Email Routing: Step-by-Step Guide

Learn how to send emails through Gmail SMTP with Cloudflare Email Routing in this comprehensive guide.

Step 1: Enable 2-Factor Authentication

To proceed with this method, ensure that you have enabled two-factor authentication for your Google account. If you haven't done so already, you can follow the link to set it up → Enable 2FA in your Google account.

Step 2: Create an App Password for Mail

@dejanr
dejanr / HKN_3_players.txt
Created October 7, 2021 15:08 — forked from jonathanargentiero/HKN_3_players.txt
HotKeynet 3 players script
//================================================================
// SAMPLE SCRIPT FOR THREE WOW'S ON ONE PC
//
// Instructions: Copy this entire script (all the blue writing
// on gray background including comments). Save it in a file.
// Load it into HotkeyNet.
//
// Toggle the scroll lock key to turn hotkeys off and on. (You
// can change this if you want, just like you can change
// everything else with HotkeyNet.)
@dejanr
dejanr / figma-tokens.json
Last active July 4, 2021 08:00
figma-tokens
{
"spacing": {
"xs": 4,
"sm": 8,
"md": 16,
"lg": 32,
"xl": 96
},
"sizing": {
"xs": 4,
@dejanr
dejanr / shell.nix
Created May 17, 2021 16:31 — forked from Nadrieril/shell.nix
Building LineageOS on NixOS
# I used this shell.nix to build LineageOS 13.0 for my maguro (Samsung Galaxy Nexus GSM) phone
# The build instructions for normal Linuxes are here: https://wiki.lineageos.org/devices/maguro/build
# For NixOS, follow those instructions but skip anything related to installing packages
# Detailed instructions:
# cd into an empty directory of your choice
# copy this file there
# in nix-shell:
# $ repo init -u https://github.com/LineageOS/android.git -b cm-13.0
# $ repo sync
# $ source build/envsetup.sh
@dejanr
dejanr / README.md
Created March 3, 2021 10:08 — forked from akihikodaki/README.en.md
Linux Desktop on Apple Silicon/M1 in Practice

Linux Desktop on Apple Silicon/M1 in Practice

I bought M1 MacBook Air. It is the fastest computer I have, and I have been a GNOME/GNU/Linux user for long time. It is obvious conclusion that I need practical Linux desktop environment on Apple Silicon/M1.

Fortunately, Linux already works on Apple Silicon/M1. But how practical is it?

My Grandfather Time

As a kid I used to grow up beside a very stubborn and an amazing grandfather. During WW2, he was around 10, and that’s when he started as a blacksmith apprentice, he became an amazing blacksmith, and we still have his workshop and tools, and as a kid during 90s i couldn’t be more greatfull for having access to all of that, and support of an amazing craftssman.

One very unique thing he did is that he would never change time on his watch during daylight time saving. I remember asking him why he does that,