Skip to content

Instantly share code, notes, and snippets.

View zurgl's full-sized avatar
🪐
Working from home

zurgl zurgl

🪐
Working from home
View GitHub Profile
@michaelbeaumont
michaelbeaumont / mkosi.build.chroot
Last active June 28, 2025 20:08
Using mkosi and AUR to install packages
#!/usr/bin/env bash
set -ex
PACKAGES=(
neovim-git
)
# All this is basically to get around makepkg calling pacman with sudo
# Otherwise we could just call `aur sync` and be done with it
@harkabeeparolus
harkabeeparolus / template.bash
Last active July 19, 2024 14:59
Standard bash script template with unofficial strict mode
#! /usr/bin/env bash
set -o errexit -o nounset -o errtrace -o pipefail
IFS=$'\n\t'
shopt -s nullglob
# shellcheck disable=SC2154
trap 's=$?; echo >&2 "$0: Error on line "$LINENO": $BASH_COMMAND"; exit $s' ERR
warn() { [ $# -ge 1 ] && printf >&2 "%s\n" "$*"; }
main() {
@VesperDev
VesperDev / RouterApp.js
Last active July 14, 2024 11:50
Sider menu + ant-design + react-router-dom
import React, { Component } from 'react';
import { BrowserRouter as Router, Route, Link } from "react-router-dom";
import { Layout, Menu, Icon } from 'antd';
import Dashboard from './containers/Dashboard/Dashboard';
import Meseros from './containers/Meseros/Meseros';
const { Header, Content, Footer, Sider } = Layout;
const SubMenu = Menu.SubMenu;