Skip to content

Instantly share code, notes, and snippets.

View tshipenchko's full-sized avatar
🎯
Focusing

Łukasz Tshipenchko tshipenchko

🎯
Focusing
View GitHub Profile
@thesamesam
thesamesam / xz-backdoor.md
Last active November 4, 2024 18:32
xz-utils backdoor situation (CVE-2024-3094)

FAQ on the xz-utils backdoor (CVE-2024-3094)

This is a living document. Everything in this document is made in good faith of being accurate, but like I just said; we don't yet know everything about what's going on.

Background

On March 29th, 2024, a backdoor was discovered in xz-utils, a suite of software that

@philipperoubert
philipperoubert / toggle_audio.sh
Last active September 24, 2024 07:23
Huawei Matebook 14S Audio Fix
value=`cat selected_audio_output.txt`
if [ -z "$value" ]
then
value=0
fi
if [ $value -eq 0 ]
then
sudo hda-verb /dev/snd/hwC0D0 0x16 0x701 0x0001 // move output to speaker dac
@sampointer
sampointer / gist:b506369b926ad395123aa7f18275de92
Last active August 1, 2024 18:10
NixOS Packages From Unstable alongside Stable (Google Chrome)

If you'd like to keep up-to-date with Chrome from unstable but otherwise want to run a stable NixOS release you can do the following:

  • Create a file /etc/nixos/unstable.nix:
{ config, pkgs, ...}:
let
  baseconfig = { allowUnfree = true; };
  unstable = import <nixos-unstable> { config = baseconfig; };
in {
@rssnyder
rssnyder / oracle-cloud-free-tier-guide.md
Last active November 9, 2024 18:47
oracle-cloud-free-tier-guide

how to leverage oracle's temping offers

free tier limits

The limits of the free tier say that you can create up to 4 instances.

  • x2 x86 instances (2core/1g)
  • x2 ampere instances (with 4core/24g spread between them)
  • 200GB total boot volume space across all intances (minimum of 50G per instance)

create your account

@ragul28
ragul28 / docker-install.md
Created January 11, 2020 10:01
Install docker in Debian/Ubuntu with auto completion

Easy Installation docker

  • Init installtion & add user to docker group (not recommanded for prod usage)
curl -fsSL https://get.docker.com -o get-docker.sh
sudo sh get-docker.sh
sudo usermod -aG docker $USER
  • Sanity check
@dianjuar
dianjuar / i3-shortcuts-screenshot.md
Last active October 31, 2024 10:44
My i3 shortcuts to take screenshots

Requirements

  • maim
  • xclip

Set-up

Set this on your i3 config file ~/.i3/config

# Screenshots
@metajiji
metajiji / install-megacli.md
Last active November 6, 2024 16:04 — forked from fxkraus/debian-install-megacli.md
Install LSI MegaCli

download

wget https://docs.broadcom.com/docs-and-downloads/raid-controllers/raid-controllers-common-files/8-07-14_MegaCLI.zip

or

curl -LO https://docs.broadcom.com/docs-and-downloads/raid-controllers/raid-controllers-common-files/8-07-14_MegaCLI.zip
@mohanpedala
mohanpedala / bash_strict_mode.md
Last active November 15, 2024 17:43
set -e, -u, -o, -x pipefail explanation
@Kirens
Kirens / procedure.md
Created January 13, 2018 14:27
Deploying a NixOS server on DigitalOcean

Prerequisites

We'll use NixOps to deploy, so we need to install it

nix-env -i nixops

And to deploy on DigitalOcean we need to have an account and create an API access token for it.

@kellpossible
kellpossible / feh.desktop
Created April 29, 2017 15:02
A desktop file/run configuration that sets feh up to open such that you can scroll through all the other images in the same directory
[Desktop Entry]
Name=Feh
Name[en_US]=feh
GenericName=Image viewer
GenericName[en_US]=Image viewer
Comment=Fast Imlib2-based Image Viewer
Exec=bash -c "feh -. --start-at ./$(realpath --relative-to=$(dirname %f) %f)"
Terminal=false
Type=Application
Icon=feh