Skip to content

Instantly share code, notes, and snippets.

View niculistana's full-sized avatar
👋

Nicu Listana niculistana

👋
View GitHub Profile
@niculistana
niculistana / rice-arima.json
Created March 30, 2026 03:53
ARIMA sample code for Notebook
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# Rice Price Prediction - Philippines\n",
"This notebook uses an **ARIMA** model to forecast retail rice prices for the next 6 months."
]
},
@niculistana
niculistana / microgpt.py
Created February 17, 2026 20:12 — forked from karpathy/microgpt.py
microgpt
"""
The most atomic way to train and run inference for a GPT in pure, dependency-free Python.
This file is the complete algorithm.
Everything else is just efficiency.
@karpathy
"""
import os # os.path.exists
import math # math.log, math.exp
- Table
- Grill (for the meat, sorry vegetarians/vegans)
- Speakers
- Sports things: football, soccer, volleyball + net, etc.
- More firewood
- Cooler
- Playing cards (preferrably Exploding Kittens, or CAH)
- Blankets/mats
- Meat (if and only if there's a grill confirmed)
- Food
@niculistana
niculistana / systemProps.snippet
Created August 7, 2018 21:55
Print all java system properties
Properties p = System.getProperties();
Enumeration keys = p.keys();
while (keys.hasMoreElements()) {
String key = (String)keys.nextElement();
String value = (String)p.get(key);
System.out.println(key + ": " + value);
}

Building apps w/o code w/ Tara Reed From Apps w/o Code 🙅💻

  • Imagine what your life looks like when:
    • 1000 users
    • Thought leader for your idea
    • Team of people helping you
    • $300,000/year in revenue
  • In 2014, Tara accomplished these for her first year in Kolecto w/o writing code 😯💯
  • Previously, she led marketing Initiatives Google, Foursquare, Microsoft
  • Her secrets:
  • #1 Use code-free tools that use logic (Choose the best 1 or 2)

DevOps tidbit — Check connections using Netcat

Scan for listening daemons at a given port for any website to check if a client’s connection succeeds.

  1. In your shell, run the command for a website you are looking to probe a connection:nc -vz wikipedia.com 443
  2. See other commonly open server ports over here: https://www.speedguide.net/ports_common.php
  3. See ports and the network applications they are associated with: http://www.bctes.com/network-applications-tcp-udp-port-numbers.html

See all DevOps tidbits here: https://gist.github.com/niculistana/aae77fd4da955e7db410ba59e6bfb99b

sudo systemctl start tomcat
sudo systemctl restart tomcat
sudo systemctl stop tomcat
{
"swagger": "2.0",
"info": {
"description": "Working version of Example docs",
"version": "1.0",
"title": "Example docs",
"contact": {
"name": "Foo bar",
"url": "example.com",
"email": "[email protected]"

Installing

  • sudo dpkg -i {path-to-deb-file}
  • sudo apt-get install -f
activemq start
open http://localhost:8161/admin/