Skip to content

Instantly share code, notes, and snippets.

View abiosoft's full-sized avatar

Abiola Ibrahim abiosoft

View GitHub Profile
#!/usr/bin/env bash
USER=development
PASSWORD=development
VHOST=development
set -eux
rabbitmqctl add_user "$USER" "$PASSWORD"
rabbitmqctl set_user_tags "$USER" administrator
@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
//
// 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 / .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
@abiosoft
abiosoft / links.txt
Created December 3, 2018 22:09
powerline web fonts
@abiosoft
abiosoft / config
Last active October 7, 2018 17:56
i3blocks
# i3blocks config file
#
# Please see man i3blocks for a complete reference!
# The man page is also hosted at http://vivien.github.io/i3blocks
#
# List of valid properties:
#
# align
# color
# command