Skip to content

Instantly share code, notes, and snippets.

@FlorSanders
FlorSanders / JetsonNano2GB_LlamaCpp_SetupGuide.md
Created April 11, 2024 15:17
Setup llama.cpp on a Nvidia Jetson Nano 2GB

Setup Guide for llama.cpp on Nvidia Jetson Nano 2GB

This is a full account of the steps I ran to get llama.cpp running on the Nvidia Jetson Nano 2GB. It accumulates multiple different fixes and tutorials, whose contributions are referenced at the bottom of this README.

Procedure

At a high level, the procedure to install llama.cpp on a Jetson Nano consists of 3 steps.

  1. Compile the gcc 8.5 compiler from source.
@mgd216
mgd216 / vue_nuxt_vuetify_migration.md
Last active May 7, 2024 14:00
Vue2 / Vuetify2 Migration to Vue3 / Nuxt3 / Vuetify3

Vue3 / Nuxt3 / Vuetify3 Migration Steps

  • The following notes are a 'checklist' for migrating a large Vue2 / Vuetify2 project to Vue3 / Nuxt3 / Vuetify3. It is NOT intended to be a step-by-step migration guide, they are rough notes our team used for migration
  • Our team decided to create a brand new Nuxt3 app, instead of tyring a 'bridge' or running Vue2/Vue3 side-by-side:
    • nuxi init our-new-app-v3
  • We also changed our store from Vuex to Pinia
  • We decided to use the experimental @vue/reactivity-transform. This provides the ability to use a ref in the script block without having to use .value everywhere
    • without reactivity-transform
      • let userName = ref<string>('')
      • userName.value = "John Doe"
  • with reactivity-transform
@almcarvalho
almcarvalho / gist:38eb6608441fdf68ab4edf7677f90e31
Created December 29, 2022 17:38
Bot Whatsapp - Venom - Lucas
//vocês vão comentar o que tá dentro do bloco if (!message.isGroupMsg) { } e colocar esse codigo aqui:
switch (message.text) {
case '1':
// client.sendText(message.from, "oi").then(() => {
// console.log('Message sent.');
// }).catch(error => console.error('Error when sending message', error));
client.sendVoice(message.from, './teste.mp3').then((result) => {
console.log('Result: ', result); //return object success
})
.catch((erro) => {
@aSemy
aSemy / kjs_type_union_properties.md
Last active May 7, 2024 13:59
Kotlin/JS TypeUnion properties

Hot new strat for defining type-union properties in Kotlin/JS

Demo

// SomeConfig is an external TypeScript interface
// it has a property with a type-union type, but don't implement it as a member...
external interface SomeConfig {
  // multiProp: number | string | Extension | ((string) => Extension | null)
}
@druska
druska / engine.c
Created September 17, 2018 15:18
Quant Cup 1's winning order book implementation
/*****************************************************************************
* QuantCup 1: Price-Time Matching Engine
*
* Submitted by: voyager
*
* Design Overview:
* In this implementation, the limit order book is represented using
* a flat linear array (pricePoints), indexed by the numeric price value.
* Each entry in this array corresponds to a specific price point and holds
* an instance of struct pricePoint. This data structure maintains a list
@joshbuchea
joshbuchea / semantic-commit-messages.md
Last active May 7, 2024 13:56
Semantic Commit Messages

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example

@idbrii
idbrii / botw-cedec2017.md
Last active May 7, 2024 13:54
An inline image version of Matt Walker's translation of CEDEC 2017 talks by Nintendo
@slykar
slykar / docker-compose-hackintosh.md
Last active May 7, 2024 13:53
Docker and Docker Compose on AMD OSX Hackintosh via Docker Machine

Introduction

Docker.app will complain about incompatible processor, so we will use Docker Machine.

Instalation

Download Docker for Mac (Docker.app). It contains some binaries that are necessary.

brew install virtualbox docker-machine
@NickMcSweeney
NickMcSweeney / postgresql_plus_arch-linux.md
Last active May 7, 2024 13:53
Getting postgresql running on Arch Linux

Setup Postgresql

run postgresql with systemctl

Install postgres

latest

sudo pacman -S postgresql

specific version

find version & build from source

@jasonpincin
jasonpincin / vmmv
Created February 13, 2013 16:42
Moves a SmartOS VM to a different SmartOS host
#!/usr/bin/bash
# Moves a SmartOS VM to a different host
# This script stops the VM, sends it to the target host,
# imports it on the target host, and starts it on the
# target host. It is your responsibility to remove it on
# the origin host after confirming the script worked as
# expected.
#
# Usage: