Skip to content

Instantly share code, notes, and snippets.

View martinhbramwell's full-sized avatar
🏠
Creating a serverless, offline-first, single page progressive web app with VueJS

Martin H. Bramwell martinhbramwell

🏠
Creating a serverless, offline-first, single page progressive web app with VueJS
View GitHub Profile
@martinhbramwell
martinhbramwell / Exchanger.txt
Last active September 14, 2023 16:36
Exchanger
https://discord.com/channels/907722916697878559/1088742675097858099
https://www.blobomatic.2dmedia.co.uk/images/gallery/0c85891e5ff21b5f2f8febe4edac9bb9.png
!Lex7w6rRyzqec3E
https://mailfence.com/flatx/index.jsp#tool=mail&folderoid=96405144
ReadyForExtras2304241600
apt202304241145
#!/bin/bash
#
# #############################################################################
# Create new SSH user (Ubuntu)
# I use this script whenever I need to add a new SSH user to an Ubuntu machine.
# Usage:
# 1) Download the "raw" with - wget -O createNewSSHUser.sh https://gist.github.com/raw/4223476
# 2) Make it executable with - chmod a+x createNewSSHUser.sh
# 3) Uncomment the last line and edit the user & pwd values
# 4) Execute it with : sudo ./createNewSSHUser.sh
@martinhbramwell
martinhbramwell / ErpNextQikInstall_0.sh
Last active June 15, 2022 22:31
Install ERPNext on Ubuntu Bionic 18.04 LTS and Focal 20.04 LTS
#!/usr/bin/env bash
#
export MYPWD=""; # MySQL password
export ADMPWD=""; # Administrator password
export THESITE="my site"; # Site name
export USERCTX=".profile";
source ${HOME}/${USERCTX};
if [ "${BASH_SOURCE[0]}" -ef "$0" ]
@martinhbramwell
martinhbramwell / gist:2cc31570c5a5a490d0983cfdf9eb8acb
Last active April 17, 2022 16:01
Full log of `bench migrate` error
# -----------------------------------------------------------------------
# Alias configuration: 'erpls' «begins»
# Alias 'erpls' binds to remote user 'erpadm@erp.logichem.solutions'
Host erpls
User erpadm
HostName erp.logichem.solutions
ServerAliveInterval 120
ServerAliveCountMax 20
IdentityFile /home/hasan/.ssh/erpadm_logichem_solutions
# Alias configuration: 'erpls' «ends»
@martinhbramwell
martinhbramwell / FirstPage.md
Last active February 20, 2022 23:26
A liittle toolkit for testing AWK scripts

.left-column[

Left Title




No manual input required here.

.footnote[.red.bold[] Table of Contents]

]

.right-column[ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ - o 0 o - ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~

Friendly Title

@martinhbramwell
martinhbramwell / KRKN Private.postman_collection.json
Created July 31, 2021 22:43
Postman Collection for Kraken Rest API
{
"info": {
"_postman_id": "d7e3ee8c-fc3b-4aca-bc0b-3f4afc890eb6",
"name": "Kraken",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
},
"item": [
{
"name": "Private",
"item": [
@martinhbramwell
martinhbramwell / getRowCounts.sh
Created December 30, 2012 14:55
A bash script to compare row counts of tables in two databases on separate machines
#!/bin/bash
#
DROP_ROWCOUNTS="\"DROP TABLE IF EXISTS rowcounts;\""
MAKE_ROWCOUNTS="\"CREATE TABLE rowcounts
(
name_server character varying(64) NOT NULL
, name_table character varying(64) NOT NULL
, count integer
);\""
#
snyk wizard --debug
snyk wizard { _: [ [Circular] ], debug: true } +0ms
snyk ~~~~ LIVE RUN ~~~~ +0ms
snyk sending request to: https://snyk.io/api/v1/verify/token +0ms
snyk request body size: 2 +0ms
snyk gzipped request body size: 22 +0ms
snyk not using proxy +1ms
snyk not using proxy +2s
Snyk's wizard will:
@martinhbramwell
martinhbramwell / BucardoDemoBuilder.sh
Last active August 3, 2018 09:03
OpenERP Database Mirroring with Bucardo :: You can use this bash script to learn how to prepare a pair of Ubuntu 12.04 Postgres hosts for master-master replication with Bucardo. * * * Caution : Work In Progress. IT DOES NOT WORK YET * * *
#!/bin/bash
#
# ################### ################### ###################
#
# OpenERP admins can use this bash script to learn how to
# prepare a pair of Ubuntu 12.04 Postgres hosts for
# master-master replication with Bucardo.
#
# * * * Caution : Work In Progress. * * *
# IT DOES NOT WORK YET
@martinhbramwell
martinhbramwell / initialTrivialMiningScript.js
Last active September 29, 2017 11:38
Trivial mining script for a private block chain to create some initial pseudo-ether for testing purposes.
primary = eth.accounts[0];
balance = web3.fromWei(eth.getBalance(primary), "ether");
miner.setEtherbase(primary)
console.log(" -Starting mining.");
miner.start(8); admin.sleepBlocks(3); miner.stop() ;
console.log(" - Mined 3 blocks ");
balance = web3.fromWei(eth.getBalance(primary), "ether");