Skip to content

Instantly share code, notes, and snippets.

View JimLynchCodes's full-sized avatar
🍍
🧑‍💻

Jim JimLynchCodes

🍍
🧑‍💻
View GitHub Profile
@JimLynchCodes
JimLynchCodes / aerospike-debian-12-x86-spin-up.sh
Last active September 6, 2023 03:00
Installs & starts an aerospike database on a fresh server instance running debian linux.
# First, decide which version of aerospike [community, federal, and enterprise] you want to use,
# and which linux + computer architecture you will be running- this code is meant to run on Debian 12 on x86 machines.
# Check here to browse aerospike package versions: https://download.aerospike.com/artifacts/
# 1) Get the aerospike tools package
wget -O aerospike-tools.tgz https://download.aerospike.com/artifacts/aerospike-server-community/latest/aerospike-server-community_6.4.0.2_tools-9.0.0_debian12_x86_64.tgz
## TODO - verify the file downloaded properly
# 2) Open the compressed tar file
@JimLynchCodes
JimLynchCodes / Chainlink-RNG.sol
Last active November 13, 2021 16:08
An example that demonstrates how to get random numbers from chainlink
// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.7.0 <0.9.0;
import "@openzeppelin/contracts/access/Ownable.sol";
// Created by Jimbo - use at your own risk! 😜
/**
* A game where there are some face down cards (boardWidth * boardHeight)
*
@JimLynchCodes
JimLynchCodes / blockly.xml
Created August 14, 2021 22:15
New Project
?contract
// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.7.0 <0.9.0;
import "@openzeppelin/contracts/access/Ownable.sol";
contract EthMover is Ownable {
uint public totalDonations;
@JimLynchCodes
JimLynchCodes / npm-start.sh
Created May 9, 2020 18:31
Run this bash script with arbitrary arguments, and it will call "npm start" with those arguments. If no arguments passed in it just runs "npm start".
#!/usr/bin/env bash
npm_parameters=""
if [ "$#" -eq "0" ]; then
npm start
exit
fi
for i in $@
@JimLynchCodes
JimLynchCodes / Installing-Tailwind-In-React.md
Last active March 26, 2020 03:20
Installing Tailwind In React

Step 0) Create a new React project:

npx create-react-app tw-app

Step 1) Create tailwind config file:

npx tailwindcss init --full
@JimLynchCodes
JimLynchCodes / DynamoDbManager.js
Created June 15, 2018 19:40
An example of working with dynamodb from nodejs.
/**
* Helper class that interacts with DynamoDB to read and write data.
*/
class DynamoDbManager {
constructor() {
const AWS = require("aws-sdk")
AWS.config.update({
region: "us-east-2",

Jim's CI Robot Idea

Have a robot that hooks into different points of the continuous integration pipeline (of some other software project), and have the robot react accordingly as things are happening in your pipeline.

For example:

  • when a commit has been pushed to the maain branch the robot raises hit arm , jumps up, and plays a mario coin sound.
  • all the tests pass a "tests done" sound is played, some lights flash, and the robots head moves.
  • when the deployment finishes successfully, play a build finished sound and move robots arms around.