Skip to content

Instantly share code, notes, and snippets.

View abiosoft's full-sized avatar

Abiola Ibrahim abiosoft

View GitHub Profile
@abiosoft
abiosoft / README.md
Last active March 8, 2023 03:00
Systemd Arch Machine

Arch Dev Container Setup

Prerequisites

Linux distro using Systemd with systemd-container package installed.

Install arch boostrap

$ curl -LO https://raw.githubusercontent.com/tokland/arch-bootstrap/master/arch-bootstrap.sh
@abiosoft
abiosoft / Caddyfile
Created September 18, 2016 16:16
Caddy wordpress docker-compose
:80
root /usr/src/wordpress
gzip
fastcgi / wordpress:9000 php
rewrite {
if {path} not_match ^\/wp-admin
to {path} {path}/ /index.php?_url={uri}
}
log stdout
errors stderr
@abiosoft
abiosoft / Fix.md
Created May 29, 2022 05:33
Fix Nix after macOS upgrade

Append to /etc/zshrc and /etc/bashrc if missing.

# Nix
if [ -e '/nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh' ]; then
  . '/nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh'
fi
# End Nix
@abiosoft
abiosoft / .wslconfig
Last active March 31, 2022 08:07
wsl2 config
[wsl2]
kernel= # An absolute Windows path to a custom Linux kernel.
memory= # How much memory to assign to the WSL2 VM.
processors= # How many processors to assign to the WSL2 VM.
swap= # How much swap space to add to the WSL2 VM. 0 for no swap file.
swapFile= # An absolute Windows path to the swap vhd.
localhostForwarding= # Boolean specifying if ports bound to wildcard or localhost in the WSL2 VM should be connectable from the host via localhost:port (default true).
# entries must be absolute Windows paths with escaped backslashes, for example C:\\Users\\Ben\\kernel
# entries must be size followed by unit, for example 8GB or 512MB
//
// AppDelegate.swift
// test
//
// Created by IOANNIS DELIGIANNIS on 1/2/16.
// Copyright © 2016 IOANNIS DELIGIANNIS. All rights reserved.
//
import Cocoa
// Run any SwiftUI view as a Mac app.
import Cocoa
import SwiftUI
NSApplication.shared.run {
VStack {
Text("Hello, World")
.padding()
.background(Capsule().fill(Color.blue))
{
"logging": {
"logs": {
"default": {
"level": "DEBUG"
}
}
},
"admin": {
"listen": ":2020",
#!/usr/bin/env bash
defaults write com.microsoft.VSCode ApplePressAndHoldEnabled -bool false
defaults write com.sublimetext.3 ApplePressAndHoldEnabled -bool false
defaults write com.insomnia.app ApplePressAndHoldEnabled -bool false
@abiosoft
abiosoft / generateroutes.js
Last active May 7, 2020 17:42
Generate Routes for vue view files
/* eslint-disable @typescript-eslint/no-var-requires */
/*
Usage: modify package.json
"scripts": {
...
"routes": "vue-cli-service routes"
},
"vuePlugins": {
@abiosoft
abiosoft / links.txt
Created December 3, 2018 22:09
powerline web fonts