Skip to content

Instantly share code, notes, and snippets.

@dariuszparys
dariuszparys / le-toucan.txt
Created December 5, 2023 12:46
Le toucan has arrived
░░░░░░░░▄▄▄▀▀▀▄▄███▄░░░░░░░░░░░░░░░░░░
░░░░░▄▀▀░░░░░░░▐░▀██▌░░░░░░░░░░░░░░░░░
░░░▄▀░░░░▄▄███░▌▀▀░▀█░░░░░░░░░░░░░░░░░
░░▄█░░▄▀▀▒▒▒▒▒▄▐░░░░█▌░░░░░░░░░░░░░░░░
░▐█▀▄▀▄▄▄▄▀▀▀▀▌░░░░░▐█▄░░░░░░░░░░░░░░░
░▌▄▄▀▀░░░░░░░░▌░░░░▄███████▄░░░░░░░░░░
░░░░░░░░░░░░░▐░░░░▐███████████▄░░░░░░░
░░░░░le░░░░░░░▐░░░░▐█████████████▄░░░░
░░░░toucan░░░░░░▀▄░░░▐██████████████▄░
░░░░░░has░░░░░░░░▀▄▄████████████████▄░
@dariuszparys
dariuszparys / 1-setup.md
Created April 28, 2023 22:40 — forked from troyfontaine/1-setup.md
Signing your Git Commits using GPG on MacOS

Methods of Signing with a GPG Key on MacOS

Last updated September 21, 2022

This Gist explains how to do this using gpg in a step-by-step fashion. Previously, krypt.co was heavily mentioned, but I've only recently learned they were acquired by Akamai and no longer update their previous free products. Those mentions have been removed.

For using a GUI-based GIT tool such as Tower or Github Desktop, follow the steps here for signing your commits with GPG.

There has been a number of comments on this gist regarding some issues around the pinentry-program and M1 Macs. I've finally gotten a chance to try things out on an M1 and I've updated the documentation in 2-using-gpg.md to reflect my findings.

@dariuszparys
dariuszparys / config
Created March 21, 2023 17:00 — forked from pksunkara/config
Sample of git config file (Example .gitconfig) (Place them in $XDG_CONFIG_HOME/git)
[user]
name = Pavan Kumar Sunkara
email = pavan.sss1991@gmail.com
username = pksunkara
[init]
defaultBranch = master
[core]
editor = nvim
whitespace = fix,-indent-with-non-tab,trailing-space,cr-at-eol
pager = delta
@dariuszparys
dariuszparys / arm64-on-Win10.md
Created December 9, 2021 15:12 — forked from billti/arm64-on-Win10.md
ARM64 Linux on Win10

Below are the steps to get an ARM64 version of Ubuntu running in the QEMU emulator on Windows 10.

Install QEMU

Install for Windows from https://qemu.weilnetz.de/w64/ (I used qemu-w64-setup-20181211.exe)

Put C:\Program Files\qemu on your PATH, and run the below to check it's working (which will list out the CPUs the AArch64 emulator can emulate):

qemu-system-aarch64 -M virt -cpu help
@dariuszparys
dariuszparys / Instructions.md
Created September 2, 2021 20:41
Running VSCode DevContainers with Podman

Running Visual Studio Code DevContainers with Podman

Modify the corresponding .devcontainer.json to include this settings. If the container already has runArgs merge this setting with the existent.

"workspaceMount": "source=${localWorkspaceFolder},target=/workspace,type=bind,Z",
"workspaceFolder": "/workspace",

"runArgs": ["--userns=keep-id"],
choco install Microsoft-Windows-Subsystem-Linux --source windowsfeatures
Invoke-WebRequest -Uri https://aka.ms/wsl-debian-gnulinux -OutFile ~/Debian.appx -UseBasicParsing
Add-AppxPackage -Path ~/Debian.appx
RefreshEnv
Debian install --root
Debian run apt update
Debian run apt upgrade -y
@dariuszparys
dariuszparys / prep-testinfra-dev.sh
Last active November 18, 2020 15:57
Prepare Testinfra Debian 10 Dev-Box
#!/bin/bash
sudo apt-get update
sudo apt-get install -y \
build-essential \
zlib1g-dev \
libncurses5-dev \
libgdbm-dev \
libnss3-dev \
libssl-dev \
libsqlite3-dev \
@dariuszparys
dariuszparys / Linux on Lenovo P52.md
Last active March 20, 2020 11:52
Linux on Lenovo P52 Changelog

Linux on Lenovo P52 (Changelog)

Work in progress for my Linux installation on my work machine. See history for OS changes

Hardware

Lenovo P52 Bios was already upgraded, I had Windows 10 before on this machine

// Place your key bindings in this file to override the defaultsauto[]
[
{
"key": "ctrl+shift+u",
"command": "editor.action.transformToUppercase"
},
{
"key": "ctrl+shift+l",
"command": "editor.action.transformToLowercase"
}
@dariuszparys
dariuszparys / InstallDevEnv.ps1
Last active October 28, 2020 22:46
Development tools installation with Chocolatey for Windows
Set-Location $env:USERPROFILE
If ( ! ( Test-Path $PROFILE ) ) { New-Item -Force -ItemType File -Path $PROFILE; Add-Content -Path $PROFILE -Encoding UTF8 -Value "# Powershell Profile"; }
Set-ExecutionPolicy Bypass -Scope CurrentUser -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
choco feature enable --name allowGlobalConfirmation
# Administrator Powershell
choco install firacode
choco install cascadiafonts
choco install git.install --params "/GitAndUnixToolsOnPath /WindowsTerminal /SChannel"