Skip to content

Instantly share code, notes, and snippets.

View nickgs's full-sized avatar
🤪

Nick Selvaggio nickgs

🤪
  • Sego Solutions, LI Blockchain
  • Long Island
  • X @direct
View GitHub Profile
@nickgs
nickgs / gist:fbab8c9f78e186d83195db8b069601ab
Created February 20, 2024 16:13
Proxmox Docker LXC Script
#!/usr/bin/env bash
source <(curl -s https://raw.githubusercontent.com/tteck/Proxmox/main/misc/build.func)
# Copyright (c) 2021-2024 tteck
# Author: tteck (tteckster)
# License: MIT
# https://github.com/tteck/Proxmox/raw/main/LICENSE
function header_info {
clear
cat <<"EOF"
@nickgs
nickgs / gist:dced0ad7ed4f39dac110231a935375d2
Last active December 13, 2023 17:01
ShipShooter.js WIP
var xpos = 200
var ypos = 200
var speed = 10
var ship
var enemies = [] // Our array of enemies. This will store ALL the enemies.
function setup() {
createCanvas(windowWidth, windowHeight);
background("black");
<!DOCTYPE html>
<html>
<head>
<title>Playing with Images</title>
</head>
<body>
<header>
<img width="100px" src="images/googlelogo.png"></img>
</header>
<nav>
[
{
"inputs": [],
"stateMutability": "nonpayable",
"type": "constructor"
},
{
"anonymous": false,
"inputs": [
{
[
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "contract IERC20Upgradeable",
"name": "token",
"type": "address"
},
// Base Functions
function int Mandel(float x0, y0, z0; int imax) {
float x, y, z, xnew, ynew, znew;
int i;
x = x0;
y = y0;
z = z0;
@nickgs
nickgs / erc20.json
Created February 19, 2021 21:49
ERC20 ABI
[
{
"constant": true,
"inputs": [],
"name": "name",
"outputs": [
{
"name": "",
"type": "string"
}
pragma solidity ^0.4.19;
contract ERC20Basic {
string public constant name = "ERC20BasicName";
string public constant symbol = "BSC";
uint8 public constant decimals = 18;
event Approval(address indexed tokenOwner, address indexed spender, uint tokens);
@nickgs
nickgs / xbox_watcher.sh
Created December 15, 2020 20:41
Keep track of Best Buy console releases.
#!/bin/bash
# use this with the `watch` command to keep an eye on the xbox page and when it becomes available.
#ex. watch -n 5 ./xbox_watcher.sh
#Xbox
#https://www.bestbuy.com/site/microsoft-xbox-series-x-1tb-console-black/6428324.p?skuId=6428324
#Switch
@nickgs
nickgs / ShipShooter.js
Last active December 8, 2020 15:25
Ship Shooter
// Our Ship Shooter Game.
let ship;
function setup() {
createCanvas(windowWidth, windowHeight);
background("black");
// Build the ship and store it in our ship variable.
ship = new Ship();
}