Skip to content

Instantly share code, notes, and snippets.

View joe-nano's full-sized avatar
💦
Just Stay Safe

Joe joe-nano

💦
Just Stay Safe
View GitHub Profile
@joe-nano
joe-nano / code-editor-rules.md
Created February 16, 2025 02:23 — forked from yifanzz/code-editor-rules.md
EP12 - The One File to Rule Them All

[Project Name]

Every time you choose to apply a rule(s), explicitly state the rule(s) in the output. You can abbreviate the rule description to a single word or phrase.

Project Context

[Brief description ]

  • [more description]
  • [more description]
  • [more description]
@joe-nano
joe-nano / constants
Created December 5, 2023 11:48 — forked from adrianhajdin/constants
Build and Deploy a Web3 Crowdfunding Platform (Kickstarter) As Your First Blockchain Application
import { createCampaign, dashboard, logout, payment, profile, withdraw } from '../assets';
export const navlinks = [
{
name: 'dashboard',
imgUrl: dashboard,
link: '/',
},
{
name: 'campaign',
@joe-nano
joe-nano / distributed.bib
Created April 24, 2022 17:39 — forked from jptalusan/distributed.bib
Distributed IoT references
@INPROCEEDINGS{nearcloud,
author={J. P. Talusan and Y. Nakamura and T. Mizumoto and K. Yasumoto},
booktitle={2018 IEEE 42nd Annual Computer Software and Applications Conference (COMPSAC)},
title={Near Cloud: Low-cost Low-Power Cloud Implementation for Rural Area Connectivity and Data Processing},
year={2018},
volume={02},
number={},
pages={622-627},
abstract={Information and communication technologies (ICTs) has enabled growth in developed countries and urban cities through improvements in communication systems, devices and applications. In rural areas, especially in developing countries, ICT penetration is not as high, often due to lack of available infrastructure and funding. With the increasing availability of Internet-of-Things (IoT) devices, low-cost large-scale deployments have become possible even in rural areas. We design, develop and implement, Near Cloud, a cloud-less platform that allows users and IoT devices to communicate and share information. This is built on top of a wireless mesh netw
@joe-nano
joe-nano / Google Colab SSH
Created April 2, 2022 14:14 — forked from yashkumaratri/Google Colab SSH
SSH into google colab
#CODE
#Generate root password
import random, string
password = ''.join(random.choice(string.ascii_letters + string.digits) for i in range(20))
#Download ngrok
! wget -q -c -nc https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-amd64.zip
! unzip -qq -n ngrok-stable-linux-amd64.zip
#Setup sshd
@joe-nano
joe-nano / docker.md
Created March 25, 2022 16:28 — forked from FreddieOliveira/docker.md
This tutorial shows how to run docker natively on Android, without VMs and chroot.

Docker on Android 🐋📱

Edit 🎉

All packages, except for Tini have been added to termux-root. To install them, simply pkg install root-repo && pkg install docker. This will install the whole docker suite, left only Tini to be compiled manually.


Summary

@joe-nano
joe-nano / radix_trie.js
Created October 2, 2021 11:53 — forked from samuelclay/radix_trie.js
A Radix Trie (aka PATRICIA trie) implemented in JavaScript. Play with it at this interactive JS fiddle: http://jsfiddle.net/jCYAw/
var RadixTrie = function(words) {
this.T = {};
this.initialize(words);
};
RadixTrie.prototype = {
initialize: function(words) {
var self = this;
words = words || [];
@joe-nano
joe-nano / Vagrantfile
Created August 24, 2021 14:53 — forked from martinkr/Vagrantfile
Vagrant: a simple setup with ngnix and php
# -*- mode: ruby -*-
# vi: set ft=ruby :
# "./Vagrantfile"
Vagrant.configure(2) do |config|
config.vm.box = "ubuntu/trusty64"
# set ports: according to your ngnix configuration
config.vm.network :forwarded_port, guest: 8080, host: 8080
@joe-nano
joe-nano / live_sharpe_sortino.ipynb
Created August 17, 2021 11:33 — forked from degerhan/live_sharpe_sortino.ipynb
live_sharpe_sortino.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@joe-nano
joe-nano / ec2-create-ubuntu-ami.sh
Created August 9, 2021 21:30 — forked from matrey/ec2-create-ubuntu-ami.sh
ec2-create-ubuntu-ami.sh
#!/bin/bash
set -euo pipefail
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
# Thanks:
# * https://github.com/alestic/alestic-git/blob/master/bin/alestic-git-build-ami for the overall approach and ec2 commands
# * https://github.com/kickstarter/build-ubuntu-ami/blob/master/data/user_data.sh.erb for the user script run in chroot
# * https://blog.tinned-software.net/mount-raw-image-of-entire-disc/ for how to mount the raw image with losetup
@joe-nano
joe-nano / stuns
Created July 20, 2021 12:47 — forked from pabloviera15/stuns
STUN server list
# source : http://code.google.com/p/natvpn/source/browse/trunk/stun_server_list
# A list of available STUN server.
stun.l.google.com:19302
stun1.l.google.com:19302
stun2.l.google.com:19302
stun3.l.google.com:19302
stun4.l.google.com:19302
stun01.sipphone.com
stun.ekiga.net