Skip to content

Instantly share code, notes, and snippets.

@Spartelfant
Spartelfant / colors.js
Last active April 28, 2024 05:55
Bitburner ns2 script: a quick reference to all colors, printed to the terminal (at https://imgur.com/a/VtebvCM you can view a screenshot of the script in action)
/**
* Updated for game version 2.4.0
*/
/** @param {NS} ns */
export async function main(ns) {
ns.disableLog(`ALL`); // Failures are still logged, this just prevents unnecessary log spam.
ns.tprintf(`\x1b[1;35mUsing colors in script output with \x1b[1;36mtprint\x1b[1;35m & \x1b[36;1mtprintf\x1b[1;35m (terminal) and \x1b[36;1mprint\x1b[1;35m & \x1b[1;36mprintf\x1b[1;35m (log)`);
@vimagick
vimagick / imdb-top-1000.tsv
Last active April 28, 2024 05:53
IMDB Top 1000 (2024-03-30)
id title year rating votes genres
tt0111161 The Shawshank Redemption 1994 9.3 2876707 Drama
tt0068646 The Godfather 1972 9.2 2003607 Crime,Drama
tt0468569 The Dark Knight 2008 9 2859246 Action,Crime,Drama
tt0167260 The Lord of the Rings: The Return of the King 2003 9 1971304 Action,Adventure,Drama
tt0108052 Schindler's List 1993 9 1444788 Biography,Drama,History
tt0071562 The Godfather Part II 1974 9 1359206 Crime,Drama
tt0050083 12 Angry Men 1957 9 860703 Crime,Drama
tt23849204 12th Fail 2023 9 107043 Biography,Drama
tt0110912 Pulp Fiction 1994 8.9 2210023 Crime,Drama
.
├── books
│   ├── handlers.go
│   └── models.go
├── config
│   └── db.go
└── main.go
@lopestom
lopestom / Custom Recovery for MediaTek devices-0.md
Last active April 28, 2024 05:50
Make a Device Tree - Minimal Manifest

Preface

Before anything or any comments or ideas, this is a way I wanted to try to inform and update what a device tree is and what it has, and finally how Custom Recovery is created. So this is not a complete guide and it won't be! I never intended to do that.

The original idea

Please take a look and may you take a few minutes to read the original guide. I had written myself that I intended to update the information. I hope that after reading the original guide you can go back and have a few minutes of reading and mainly practice to gain experience.

This guide comes to complement or update some important information. All thanks to @rokibhasansagar about first guide Make A TWRP Tree For Your Device & Build

Certainly, given the breadth of the subject, it should have many more parts. But understand about "Minimal" thinking and that I didn't intend to extend it any further than necessary. So the guide has:

@ignamiranda
ignamiranda / Ironsworn Assets.md
Last active April 28, 2024 05:49
All the Ironsworn assets in screen-readable Markdown format

Ironsworn Assets

Here are all the Ironsworn assets in Markdown format for those who read from a screen or prefer to keep their character information in a text document. I've included the 3 New Official-ish Assets created by Shawn Tomkin that aren't in the main Ironsworn PDF.

License:

This work is based on Ironsworn (found at www.ironswornrpg.com), created by Shawn Tomkin, and licensed for our use under the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International license (creativecommons.org/licenses/by-nc-sa/4.0/).

Table of Contents

@oelbaga
oelbaga / 01 - Setup Nextjs site on Ubuntu Server - Terminal commands
Last active April 28, 2024 05:49
Setup NextJS app on Digital Ocean Ubuntu server Full Terminal Commands Step by Step
#Setup NextJS on Ubuntu server (Digital Ocean, EC2,...) Terminal Commands
#based on my YouTube video
#Recommended: An ubuntu server with at least 2 GB memory to handle npm run build
#login to server
ssh root@ip_address
#Upgrade Server - may take a few minutes
sudo apt update
sudo apt upgrade
@jordanwesthoff
jordanwesthoff / 3d_lut.sh
Created February 17, 2015 14:38
Applying 3D LUT's in FFMPEG
#!/bin/bash
ffmpeg -i input -vf lut3d=<lut file> -c:a copy output
Me:
I am looking to build a simple GUI site that allows me to paste in some text, click "rewrite", and get rewritten, cleaned-up text back. This input text is ran through the Claude API to rewrite it. The GUI should be very simple. I just want a text box for input and a text box for output. I also two sliders on the side with labels on the ends:
Tone: casual on the left, formal on the right. The middle instructs the model to keep the tone/voice the same.
Length: shorter on the left, longer on the right.
Above these sliders, I want a model selector dropdown that let's me pick which Claude model to use. I also want a copy text button under the output textbox. The three Claude models are:
claude-3-opus-20240229. Display name "Claude 3 Opus".
claude-3-sonnet-20240229. Display name "Claude 3 Sonnet".
claude-3-haiku-20240307. Display name "Claude 3 Haiku".
@PurpleVibe32
PurpleVibe32 / vmwk17key.txt
Last active April 28, 2024 05:43
Free VMware Workstation Pro 17 full license keys
Install VMWare Workstation PRO 17 (Read it right. PRO!)
Also, these keys might also work with VMWare Fusion 13 PRO. Just tested it.
Sub to me on youtube pls - PurpleVibe32
if you want more keys - call my bot on telegram. @purector_bot (THE BOT WONT REPLY ANYMORE) - Or: https://cdn.discordapp.com/attachments/1040615179894935645/1074016373228978277/keys.zip - the password in the zip is 102me.
---
This gist can get off at any time.
PLEASE, DONT COPY THIS. IF YOU FORK IT, DONT EDIT IT.
*If you have a problem comment and people will try to help you!
*No virus