Skip to content

Instantly share code, notes, and snippets.

View ovitente's full-sized avatar

Ivan Kostrubin ovitente

  • 18:19 (UTC +02:00)
View GitHub Profile
#!/bin/python3
# takes the secrets from a ns as listed, pushes them into Vault, then generates External Secret Operator objects
# requireminets
# hvac
# kubernetes
# usage
# make sure your kubectl configuration is set
@iAnanich
iAnanich / do.sh
Last active April 2, 2023 08:30
Shell script that helps to simplify Docker Compose usage
#!/bin/bash
### ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ###
### Generated with the help of ChatGPT ###
### ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ###
# Usage:
# ./do.sh dc ps
# ./do.sh dc down
# ./do.sh dc up -d service
@superjamie
superjamie / install-ubuntu-luks-lvm.md
Last active November 8, 2024 18:28
How to install Ubuntu with LUKS Encryption on LVM

How to install Ubuntu with LUKS Encryption on LVM

My work requires us to have full-disk encryption, so these are the steps I use.

The basic idea is to create a LUKS-encrypted partition which is used as an LVM Physical Volume.

The GRUB boot partition isn't encrypted, but everything else is.

These steps tested and working on 22.04 (jammy) and 20.04 (focal).

Jenkinsfile VIM syntax highlighting
echo 'au BufNewFile,BufRead Jenkinsfile setf groovy' >> ~/.vimrc
@Thulm-zz
Thulm-zz / Coalesced.ini
Created April 1, 2017 22:31
Mass Effect 2 // Rebuilt Configuration File // Command="set SFXGame.SFXCameraMode FOV 100" & Mouse Acceleration Disabled
 & ..\BIOGame\Config\PC\Cooked\BIOAI.ini ! [SFXGame.BioAIController]
EnemyDistance_Melee=300.f
EnemyDistance_Short=600.f
EnemyDistance_Medium=1800.f
EnemyDistance_Long=3600.f
InterpEnemyLocSpeed=0.15f
Response_MinEnemySeenTime=1.0f
Response_MinEnemyHearTime=0.5f
AI_Acc_Base=0.01
AI_Acc_Target=0.01
@roadrunner2
roadrunner2 / 0 Linux-On-MBP-Late-2016.md
Last active November 15, 2024 17:51
Linux on MacBook Pro Late 2016 and Mid 2017 (with Touchbar)

Introduction

This is about documenting getting Linux running on the late 2016 and mid 2017 MPB's; the focus is mostly on the MacBookPro13,3 and MacBookPro14,3 (15inch models), but I try to make it relevant and provide information for MacBookPro13,1, MacBookPro13,2, MacBookPro14,1, and MacBookPro14,2 (13inch models) too. I'm currently using Fedora 27, but most the things should be valid for other recent distros even if the details differ. The kernel version is 4.14.x (after latest update).

The state of linux on the MBP (with particular focus on MacBookPro13,2) is also being tracked on https://github.com/Dunedan/mbp-2016-linux . And for Ubuntu users there are a couple tutorials (here and here) focused on that distro and the MacBook.

Note: For those who have followed these instructions ealier, and in particular for those who have had problems with the custom DSDT, modifying the DSDT is not necessary anymore - se

@steinwaywhw
steinwaywhw / One Liner to Download the Latest Release from Github Repo.md
Last active November 3, 2024 22:54
One Liner to Download the Latest Release from Github Repo
  • Use curl to get the JSON response for the latest release
  • Use grep to find the line containing file URL
  • Use cut and tr to extract the URL
  • Use wget to download it
curl -s https://api.github.com/repos/jgm/pandoc/releases/latest \
| grep "browser_download_url.*deb" \
| cut -d : -f 2,3 \
| tr -d \" \
@lestoni
lestoni / gist:8c74da455cce3d36eb68
Last active November 14, 2024 10:37
vim folding cheatsheet

via (https://www.linux.com/learn/tutorials/442438-vim-tips-folding-fun)

  • zf#j creates a fold from the cursor down # lines.
  • zf/string creates a fold from the cursor to string .
  • zj moves the cursor to the next fold.
  • zk moves the cursor to the previous fold.
  • zo opens a fold at the cursor.
  • zO opens all folds at the cursor.
  • zm increases the foldlevel by one.
  • zM closes all open folds.
@georgiana-gligor
georgiana-gligor / osx-pdf-from-markdown.markdown
Last active September 27, 2024 09:55
Markdown source for the "Create PDF files from Markdown sources in OSX" article

Create PDF files from Markdown sources in OSX

When [Markdown][markdown] appeared more than 10 years ago, it aimed to make it easier to express ideas in an easy-to-write plain text format. It offers a simple syntax that takes the writer focus away from the formatting, thus giving her time to focus on the actual content.

The market abunds of editors to be used for help with markdown. After a few attempts, I settled to Sublime and its browser preview plugin, which work great for me and have a small memory footprint to accomplish that. To pass the results around to other people, less technical, a markdown file and a bunch of images is not the best approach, so converting it to a more robust format like PDF seems like a much better choice.

[Pandoc][pandoc] is the swiss-army knife of converting documents between various formats. While being able to deal with heavy-weight formats like docx and epub, we will need it for the more lightweight markdown. To be able to generate PDF files, we need LaTeX. On OSX, the s