Skip to content

Instantly share code, notes, and snippets.

View fuzziebrain's full-sized avatar

Adrian Png fuzziebrain

View GitHub Profile
@fuzziebrain
fuzziebrain / rinkeby_address.txt
Last active September 24, 2017 22:31
Test Ethereum Wallet
0x850fF511968f259Ef7d82514a9B6db72A1A99cBF
@fuzziebrain
fuzziebrain / vsc-ext-list.md
Last active January 8, 2018 17:44
Visual Studio Code Extensions List
Extension Name Category Remarks
Language PL/SQL Oracle Development Core support for PL/SQL and SQL for Oracle.
Intellisense for the Oracle Developer Oracle Development Intellisense support for Oracle Database and Oracle Application Express APIs.
odb-task Oracle Development Task runner for compiling PL/SQL. Note that Language PL/SQL also has a task that does the same.
Markdown PDF Miscellaneous Convers Markdown files to PDF.
Insert Date String Miscellaneous Formats and insert current dates and times using keyboard shortcuts.
[Path Intellisense](https://marketplace.visualstudio.com/items?itemName=ch
@fuzziebrain
fuzziebrain / cockpitws.service
Last active January 7, 2018 00:10
Systemd Script for Cockpit WS adapted from Matthew Micene's blog post <http://www.projectatomic.io/blog/2015/06/running-cockpit-as-a-service/>.
[Unit]
Description=Cockpit Web Interface
Requires=docker.service
After=docker.service
[Service]
Restart=on-failure
RestartSec=10
ExecStart=/usr/bin/docker run --rm --privileged --pid host -v /:/host --name %p cockpit/ws /container/atomic-run --local-ssh
ExecStop=-/usr/bin/docker stop -t 2 %p
@fuzziebrain
fuzziebrain / sql.bat
Created January 8, 2018 15:48
Oracle SQLcl sql.bat fixed
@echo off
REM ########################################################################
REM # (@)sql.bat
REM #
REM # Copyright 2014 by Oracle Corporation,
REM # 500 Oracle Parkway, Redwood Shores, California, 94065, U.S.A.
REM # All rights reserved.
REM #
REM # This software is the confidential and proprietary information
REM # of Oracle Corporation.
@fuzziebrain
fuzziebrain / install.sh
Last active April 28, 2018 18:32
kscope18-truffle
#!/bin/bash
apt-get install -y \
apt-transport-https \
ca-certificates \
curl \
software-properties-common
add-apt-repository \
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \
@fuzziebrain
fuzziebrain / createBaseWallet.sh
Last active September 27, 2023 13:22
Load an Oracle Wallet with certificates contained in a bundle file.
#!/bin/bash
# PURPOSE:
# Load an Oracle Wallet with certificates contained in a bundle file
# e.g. https://pki.goog/roots.pem
#
# NOTES:
# * Run as oracle
# * Assumes ORAENV is set
#include <M5EPD.h>
#include <WiFi.h>
#include <HTTPClient.h>
#include <ArduinoJson.h>
M5EPD_Canvas canvas(&M5.EPD); // create the canvas
rtc_time_t RTCtime;
rtc_date_t RTCDate;
const char SSID[] = "mywifissid";
@fuzziebrain
fuzziebrain / generate_password.sh
Last active September 28, 2021 00:53
Password generator with Bash
# SC => special characters allowed
SC="_"
while
_password=$(openssl rand -base64 $(($RANDOM % 6 + 15)) | tr '[:punct:]' $SC)
[[
$(echo $_password | grep -o '['$SC']' | wc -l) -lt 2
|| $(echo $_password | grep -o '[0-9]' | wc -l) -lt 2
|| $(echo $_password | grep -o '[A-Z]' | wc -l) -lt 2
|| $(echo $_password | grep -o '[a-z]' | wc -l) -lt 2
]]