Skip to content

Instantly share code, notes, and snippets.

View ThatOneCalculator's full-sized avatar
🌊
Vibing

Kainoa Kanter ThatOneCalculator

🌊
Vibing
View GitHub Profile
@TrillCyborg
TrillCyborg / mastodon-docker-setup.md
Last active February 13, 2024 17:15
Mastodon Docker Setup

Mastodon Docker Setup

Setting up

Clone Mastodon's repository.

# Clone mastodon to ~/live directory
git clone https://github.com/tootsuite/mastodon.git live
# Change directory to ~/live

cd ~/live

@MPThLee
MPThLee / enableDiscordExperiments.js
Last active April 25, 2024 05:50
This code doesn't work anymore. I just decided to remove this code. You can check working code on comments.
/**
* !!!! This code doesn't work anymore !!!!
*
* - You can check working code on comments. I won't update this code anymore.
*
* Also, I just decided to remove this code. You can check revisions for old code.
* Since this code was made for discord client that almost 5 years ago, It seems like doesn't work anymore.
* I don't want people keep arguing in the comments, i decided to remove this code.
*
* Note: This code is now fulfilled with Javascript comments. This code won't work even if you pasted to console. doesn't do anything.
@aqua-lzma
aqua-lzma / owoify.js
Last active January 2, 2023 18:36
OwO'ify discowd hehe makes it vewy funny :3 (Check comments for usage)
(function () {
// OwO whats this vewsion 6.9.?c ~ :3
// I h-hope you l-like it...
let stutterChance = 0.1
let prefixChance = 0.05
let suffixChance = 0.15
let words = {
love: 'wuv',
mr: 'mistuh',
@sawaYch
sawaYch / Determination.txt
Last active January 15, 2024 10:46
+ You are filled with Determination +
┏━━━━━━━━━━━━━━┓
┃ ┃
┃ ❤️ |
| |
┗━━━━━━━━━━━━━━┛
@soygul
soygul / youtube-upload.js
Last active April 14, 2024 19:52
YouTube video uploader using JavaScript and Node.js
// YouTube API video uploader using JavaScript/Node.js
// You can find the full visual guide at: https://www.youtube.com/watch?v=gncPwSEzq1s
// You can find the brief written guide at: https://quanticdev.com/articles/automating-my-youtube-uploads-using-nodejs
//
// Upload code is adapted from: https://developers.google.com/youtube/v3/quickstart/nodejs
const fs = require('fs');
const readline = require('readline');
const assert = require('assert')
const {google} = require('googleapis');
@arnvgh
arnvgh / screensht
Created April 13, 2023 08:01
Screenshot go brrrr
#!/bin/bash
set -o pipefail
# Directory
_SCREENSHOT_DIR_=$HOME/Pictures/Screenshots
_ORIGINAL_DIR_=$_SCREENSHOT_DIR_/Original
_LOG_FILE_="$_SCREENSHOT_DIR_/.screensht.log"
# Color
_FG_COLOR_='#cdd6f4'
@bagder
bagder / curl-in-two-hours-agenda.md
Last active February 17, 2024 12:08
Master curl in two hours. A video course by Daniel

The idea is to make a two and a half hour (give or take) video course explaining and detailing curl, the command line tool. How it works, how to use it, from the basics to some more advanced uses. This will be done by Daniel Stenberg, founder and lead developer of the curl project.

The recording and live-stream is scheduled for August 31, 2023. In the US morning and Euro evening.

See blog post for details.

The project (10 min)

@ThatOneCalculator
ThatOneCalculator / import_ggufs.sh
Created January 7, 2024 22:48
A dead simple batch gguf importing script. Just place/run it in the same directory as your ggufs.
#!/usr/bin/env bash
for gguf_file in ./*.gguf; do
base_name=$(basename "$gguf_file" .gguf)
echo "Making modelfile for $base_name"
model_file="./Modelfile_$base_name"
echo "FROM ./$gguf_file" > "$model_file"
ollama create "$base_name" -f "$model_file"
rm "$gguf_file"
rm "$model_file"