Clone Mastodon's repository.
# Clone mastodon to ~/live directory
git clone https://github.com/tootsuite/mastodon.git live
# Change directory to ~/live
cd ~/live
/** | |
* !!!! 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. |
(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', |
┏━━━━━━━━━━━━━━┓ | |
┃ ┃ | |
┃ ❤️ | | |
| | | |
┗━━━━━━━━━━━━━━┛ |
// 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'); |
#!/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' |
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.
Share your contact information in a fun way with a NFC tag.
The resulting NFC tag is compatible with both iOS and Android, see the notes for additional information.
This process will probably take you about 5-10m to create a vCard, about 5-10m to host your .vcf file, and 5m to write the vCard to your NFC tag.
If you encounter a problem where you cannot commit changes in Git – neither through the terminal nor via the GitHub Desktop application – the issue might be a freeze during the Git commit process. This is often caused by GPG lock issues. Below is a concise and step-by-step guide to resolve this problem.
Open your terminal and try to perform a GPG operation (like signing a test message). If you see repeated messages like gpg: waiting for lock (held by [process_id]) ...
, it indicates a lock issue.
#!/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" |