Skip to content

Instantly share code, notes, and snippets.

# Reset
Color_Off='\e[0m' # Text Reset
# Regular Colors
Black='\e[0;30m' # Black
Red='\e[0;31m' # Red
Green='\e[0;32m' # Green
Yellow='\e[0;33m' # Yellow
Blue='\e[0;34m' # Blue
Purple='\e[0;35m' # Purple
[
{ "cputype": "Intel(R) Xeon(R) CPU E5-2430 v2 @ 2.50GHz", "currstate": "shell", "groups": "uatprovision,ilo,AllRackA1", "ip": "10.18.16.28", "memory": "32010MB", "node": "spare01-a1", "rack": "", "serial": "XNSH", "status": "booting", "statustime": "08-07-2015 19:53:38", "unit": "01" },
{ "cputype": "Intel(R) Xeon(R) CPU E5-2430 v2 @ 2.50GHz", "currstate": "shell", "groups": "uatprovision,ilo,AllRackA1", "ip": "10.18.16.27", "memory": "32010MB", "node": "spare03-a1", "rack": "", "serial": "XNTH", "status": "booting", "statustime": "08-07-2015 19:55:40", "unit": "03" },
{ "cputype": "Intel(R) Xeon(R) CPU E5-2430 v2 @ 2.50GHz", "currstate": "shell", "groups": "uatprovision,ilo,AllRackA1", "ip": "10.18.16.26", "memory": "32010MB", "node": "spare05-a1", "rack": "", "serial": "XRES", "status": "booting", "statustime": "08-07-2015 19:57:42", "unit": "05" },
{ "cputype": "Intel(R) Xeon(R) CPU E5-2430 v2 @ 2.50GHz", "currstate": "shell", "groups": "uatprovision,ilo,AllRackA1", "ip": "10.18.16.25", "memory": "32010M
@samveen
samveen / Dumper.py
Last active October 7, 2016 06:15 — forked from karelin/Dumper.py
A Perl Dumper clone for python
# -*- coding: utf-8 -*-
"""
A perl Data.Dumper clone for Python
Author: simon@log4think.com
2011-07-08
"""
#!/bin/env python
import sys
from types import *
@samveen
samveen / Hybridized-Palm-3245ww-in-White-with-just-a-dot.kbd.json
Last active May 12, 2018 02:22
Hybridized Palm 3245ww in White with just a dot
[
{
"backcolor": "#ffffff",
"name": "Hybridized Palm 3245ww in White with just a dot",
"author": "Samveen"
},
[
{
"x": 1,
"a": 7,
@samveen
samveen / Hybridized-Palm-3245ww-in-White-with-dot.kbd.json
Last active May 12, 2018 04:42
Hybridized Palm 3245ww in White with dot
[
{
"name": "Hybridized Palm 3245ww in White with dot",
"author": "Samveen"
},
[
{
"x": 1,
"a": 7,
"f": 6,
@samveen
samveen / ctrl-backtick-to-esc.json.erb
Created May 27, 2018 01:26
Karabiner-Elements complex_modifications rule to map `ctrl+backtick` to `esc`
{
"title": "control grave accent (backtick) posts escape",
"rules": [
{
"description": "Post Escape if Left Ctrol + grave_accent_and_tilde (backtick) is pressed.",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "grave_accent_and_tilde",
@samveen
samveen / raw-colemak.kbd.json
Last active August 28, 2018 11:05
Raw Colemak
[
[
{
"a": 7
},
"Tab",
"Q",
"W",
"F",
"P",
====== Raspbian and Armbian based manual instructions ======
The prebuilt images are ArchLinux based, but for various reasons, it can be helpful to step to Armbian or Raspbian. These distributions do support other or sometimes better the different onechip computers. For CHIP, check out the [[other:chip|ChiPirate-BOX: the chipest and cheapest Pirate-BOX ever]] manual. It contains some additional hints.
After everything is correctly setup, the following parameters are valid:
* IP Address via wifi: 192.168.77.1 (use ssh)
* SSID: PirateBox - Share Freely
* IP Range: 192.168.77.10 - 192.168.77.250
* Hostname: piratebox.lan
@samveen
samveen / laravel-queue@.service
Last active January 12, 2022 06:10 — forked from thomasjsn/laravel-queue.service
Laravel queue worker unit template for systemd.
# Laravel systemd queue worker unit template
# ----------------------------------
#
# /etc/systemd/system/laravel-queue@.service
# Config at /etc/laravel-queue-${INSTANCE}.conf
#
# To enable an instance of this service:
# - Create a conf file /etc/-laravel-queue-SOME_NAME.conf which contains:
# - LARAVEL_USER= (required)
# - LARAVEL_GROUP= (required)
@samveen
samveen / setup-vpn.sh
Last active February 24, 2022 06:37
MicroHOWTO - NetworkManager controlled OpenVPN connections
#!/bin/bash
# {MicroHOWTO|Script} to setup a NetworkManager controlled openvpn connection
# OVPN Config file is the parameter to the script (no checks, blind faith)
OVPN_CONF="$1"
# Install the requirements if not available
# SUDO REQUIRED
sudo apt install -y openvpn network-manager-openvpn # Debian 10/*buntu 20.04 and later
# yum -y install openvpn NetworkManager-openvpn # RHEL 7/Rocky 7/Fedora ?? and later