Skip to content

Instantly share code, notes, and snippets.

@aamiaa
aamiaa / CompleteDiscordQuest.md
Last active May 14, 2024 18:07
Complete Recent Discord Quest

Complete Recent Discord Quest

Note

This no longer works in browser!

Note

This no longer works if you're alone in vc! Somebody else has to join you!

How to use this script:

  1. Accept the quest under User Settings -> Gift Inventory
@andersevenrud
andersevenrud / alacritty-tmux-vim_truecolor.md
Last active May 14, 2024 18:04
True Color (24-bit) and italics with alacritty + tmux + vim (neovim)

True Color (24-bit) and italics with alacritty + tmux + vim (neovim)

This should make True Color (24-bit) and italics work in your tmux session and vim/neovim when using Alacritty (and should be compatible with any other terminal emulator, including Kitty).

Testing colors

Running this script should look the same in tmux as without.

curl -s https://gist.githubusercontent.com/lifepillar/09a44b8cf0f9397465614e622979107f/raw/24-bit-color.sh >24-bit-color.sh
@ghoneycutt
ghoneycutt / hosts.md
Created May 2, 2018 21:13
default /etc/hosts

macos

##
# Host Database
#
# localhost is used to configure the loopback interface
# when the system is booting.  Do not change this entry.
##
127.0.0.1	localhost
@XDelta
XDelta / PSTailF.ps1
Created August 19, 2022 21:24
Watch Latest Neos Log
#Change to NeosVR Log folder
cd "R:\SteamLibrary\steamapps\common\NeosVR\Logs"
#Finds the last written to file
$logfile = (Get-ChildItem . | Sort-Object LastWriteTime -Descending)[0].FullName
#Gets the last 10 lines and follows for any new lines
Get-Content -Path $logfile -Tail 10 -Wait

Screen Quick Reference

Basic

Description Command
Start a new session with session name screen -S <session_name>
List running sessions / screens screen -ls
Attach to a running session screen -x
Attach to a running session with name screen -r
@ih2502mk
ih2502mk / list.md
Last active May 14, 2024 18:03
Quantopian Lectures Saved
@thesamesam
thesamesam / xz-backdoor.md
Last active May 14, 2024 18:02
xz-utils backdoor situation (CVE-2024-3094)

FAQ on the xz-utils backdoor (CVE-2024-3094)

This is a living document. Everything in this document is made in good faith of being accurate, but like I just said; we don't yet know everything about what's going on.

Background

On March 29th, 2024, a backdoor was discovered in xz-utils, a suite of software that

@brandonb927
brandonb927 / osx-for-hackers.sh
Last active May 14, 2024 18:00
OSX for Hackers: Yosemite/El Capitan Edition. This script tries not to be *too* opinionated and any major changes to your system require a prompt. You've been warned.
#!/bin/sh
###
# SOME COMMANDS WILL NOT WORK ON macOS (Sierra or newer)
# For Sierra or newer, see https://github.com/mathiasbynens/dotfiles/blob/master/.macos
###
# Alot of these configs have been taken from the various places
# on the web, most from here
# https://github.com/mathiasbynens/dotfiles/blob/5b3c8418ed42d93af2e647dc9d122f25cc034871/.osx
@hawkapparel
hawkapparel / sql_departamentos_provincia_distrito_peru.sql
Last active May 14, 2024 17:57
Departamentos, distritos y provincias de peru en SQL
DROP TABLE IF EXISTS departamento;
CREATE TABLE departamento(
id_departamento varchar(2) NOT NULL,
descripcion varchar(30)
);
INSERT INTO departamento (id_departamento, descripcion) VALUES('01', 'Amazonas');
INSERT INTO departamento (id_departamento, descripcion) VALUES('02', 'Áncash');
INSERT INTO departamento (id_departamento, descripcion) VALUES('03', 'Apurímac');
// Restify Server CheatSheet.
// More about the API: http://mcavage.me/node-restify/#server-api
// Install restify with npm install restify
// 1.1. Creating a Server.
// http://mcavage.me/node-restify/#Creating-a-Server
var restify = require('restify');