Skip to content

Instantly share code, notes, and snippets.

View dejanr's full-sized avatar

Dejan Ranisavljevic dejanr

View GitHub Profile
@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,

@dejanr
dejanr / nixos setup
Last active November 29, 2020 07:48
parted
mklabel gpt
mkpart ESP fat32 8MiB 2048MiB
set 1 boot on
set 1 bios_grub on
mkpart swap linux-swap 2048MiB 10GiB
mkpart zfs 10GiB -1
zpool create -O xattr=sa -O acltype=posixacl -O atime=off -o ashift=12 -O mountpoint=legacy -f zpool mirror /dev/disk/by-id/ata-Samsung_SSD_850_EVO_250GB_S21NNSAFC24953N-part3 /dev/disk/by-id/ata-Samsung_SSD_850_EVO_250GB_S21NNSAFC24938P-part3
//
// Prelude
// A zero dependency, one file drop in for faster Typescript development with fewer bugs
// through type safe, functional programming. Comments are inline with links to blog posts motiviating the use.
// alias for a function with arity 1
export type Fn<A, B> = (a: A) => B;
// alias for a function with arity 2