Skip to content

Instantly share code, notes, and snippets.


Olexandr Sydorchuk osv

View GitHub Profile
osv /
Created March 14, 2023 17:41 — forked from aakropotkin/
FZF Fuzzy search for NixOS Options and Packages
#! /usr/bin/env bash
# Provided a list of package and option names (provided by my `` and
# `` scripts), fuzzy search package and options information.
# The selection's definition will be opened in vim (as readonly) for viewing.
# NOTE: This script opens the result in a new URxvt window, you most likely will want
# to change that to open in the current window, or your own Terminal Emulator of
# choice. The current implementation is intended for use with a temporary XMonad
# scratchpad, which dies immediately after exiting (thus a new URxvt window is
# required).
osv / configuration.nix
Created February 20, 2023 10:55 — forked from kodeFant/configuration.nix
My NixOs configuration with xMonad working
View configuration.nix
# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running ‘nixos-help’).
{ config, pkgs, ... }:
imports =
[ # Include the results of the hardware scan.
osv / gist:3deb93a38601aa8c35a1b34a4a95a6af
Created August 8, 2022 10:43 — forked from tthtlc/gist:f44148a7cb4d820bf2d3da64638de68c
Forensic analysis techniques: linux
View gist:3deb93a38601aa8c35a1b34a4a95a6af
Function: perf, strace/ltrace
I/O: fatrace, lsof
Function/Tree: perf, valgrind/kcachegrind(slow), google-perftools (low precision)
View nginx.vhost
upstream my-web-app-here {
server {
listen 80;
listen 443 ssl http2;
listen [::]:80;
listen [::]:443 ssl http2;
View String.prototype.template.js
String.prototype.template = function (object) {
// Andrea Giammarchi - WTFPL License
stringify = JSON.stringify,
re = /\$\{(.*?)\}/g,
evaluate = [],
i = 0,
while (m = re.exec(this)) {