Skip to content

Instantly share code, notes, and snippets.

View f-lawe's full-sized avatar
🇪🇺

Flawe f-lawe

🇪🇺
View GitHub Profile
@f-lawe
f-lawe / copy_if_exists.sh
Last active August 16, 2026 12:09
Dev container utilities
#!/bin/sh
# Script to copy a source file/directory to a destination with specified permissions and ownership
# Usage: ./copy_if_exists.sh source destination user:group dir_perms [file_perms]
copy_if_exists() {
local source="$1"
local target="$2"
local owner="$3"
local dir_perms="$4"
@f-lawe
f-lawe / .bashrc
Last active August 15, 2026 18:13
Shell settings
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything
case $- in
*i*) ;;
*) return;;
esac
@f-lawe
f-lawe / flawe.omp.json
Last active April 11, 2026 21:27
Posh theme
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"blocks": [
{
"segments": [
{
"type": "node",
"foreground": "green",
"style": "plain",
"template": " \ued0d {{ .Full }}"
@f-lawe
f-lawe / extensions.json
Last active August 15, 2026 17:39
VSCode's Settings - Syncing
[
{
"id": "4ops.terraform",
"name": "terraform",
"publisher": "4ops",
"version": "0.2.5"
},
{
"id": "bmewburn.vscode-intelephense-client",
"name": "vscode-intelephense-client",