Skip to content

Instantly share code, notes, and snippets.

View ultrox's full-sized avatar
🏠
Working from home

Marko Vujanic ultrox

🏠
Working from home
View GitHub Profile
@ultrox
ultrox / nixos.md
Created July 23, 2021 03:41 — forked from martijnvermaat/nixos.md
Installation of NixOS with encrypted root
@ultrox
ultrox / search-git-history.md
Created July 28, 2021 11:12 — forked from lyoshenka/search-git-history.md
Search Git commit history for a string and see the diffs

Searching Git commit history

This should be one of the core features of Git, but for some reason it's impossible to figure out how to search for a string in your commit history and see the diffs that that string is in. Here's the best I've come up with:

To find which commits and which files a string was added or removed in:

git log -S'search string' --oneline --name-status

To see the diff of that

@ultrox
ultrox / Nix
Last active August 2, 2021 16:46
# NixOS manual (accessible by running ‘nixos-help’).
{ config, pkgs, ... }:
{
imports =
[ # Include the results of the hardware scan.
./hardware-configuration.nix
];
@ultrox
ultrox / odgovor.md
Last active January 24, 2022 07:41
Iskustvo sa problemima za ruku

Moje iskustvo sa problemima u kicmi i ruci

Ipak sam pronasao nacin da se logujem na Facebook preko laptopa, vec duze vreme sam se izljecio od Facebook ovisnosti pa skoro nikad nisam tu.

Sto se tice karpalnog tunela i mene. Ja nisam imao karpalni tunel, nego su doktori mislili da je 'overuse' sindrom pa sam i ja dobio neki gel koji mi je 'toboze' pomogao.

Prakticno nisam radio pa mi je to vjerovatno najvise pomoglo.

@ultrox
ultrox / stuff_i_did.md
Created January 19, 2022 10:16
Example of stuff I did with css

Positioning

Chef is done completally by me, I found an image and did it in css.

Tailwind (it's nothing like working with css)

When you use tailwind it's micro managment of everything all the time, I first loved it then I realize this is nightmare.

  • Additionally I first watched video on it and then replecate it
@ultrox
ultrox / useMemoUseCallback.js
Last active August 16, 2024 23:08
This is implementation of useMemo and useCallback directly from facebook/react, with some flow types removed and minor code changes.
/*type Hook = {|
memoizedState: any,
queue: UpdateQueue < any > | null,
next: Hook | null,
|};
*/
// Whether the work-in-progress hook is a re-rendered hook
let numberOfReRenders/*: number */= 0;
let isReRender/*: boolean */= false;
let firstWorkInProgressHook /*Hook | null */= null;
@ultrox
ultrox / promises_answer_sheet.md
Created July 26, 2022 08:02 — forked from nolanlawson/promises_answer_sheet.md
Promises puzzle cheat sheet
@ultrox
ultrox / tmux_italic.md
Created September 6, 2022 22:40 — forked from gyribeiro/tmux_italic.md
enable italic font on tmux
@ultrox
ultrox / download-roc.sh
Created September 23, 2022 22:34
Download Latest Roc
curl -s https://api.github.com/repos/roc-lang/roc/releases|jq -r '.[0].assets [0].browser_download_url'|xargs -n1 -I % curl -L % --output roc_nightly.tar.gz
@ultrox
ultrox / download-roc.md
Last active October 1, 2022 16:15
Download Latest Roc

Roc installation guide for x86 Linux systems

How to install Roc

Note: In order to develop in Roc, you need to install the Roc CLI, which includes the Roc compiler and various helpful utilities.

  1. Download Latest nightly Roc (find assets here)

Or use jq and curl for seamless copy/paste