Skip to content

Instantly share code, notes, and snippets.

@aamiaa
aamiaa / CompleteDiscordQuest.md
Last active May 9, 2024 01:14
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
@aperfect
aperfect / CloudKit.swift
Created April 13, 2023 08:52
CloudKit server-to-server Swift authentication example
// Swift example for Apple CloudKit server-to-server token authentication
// See: https://developer.apple.com/library/archive/documentation/DataManagement/Conceptual/CloudKitWebServicesReference/SettingUpWebServices.html#//apple_ref/doc/uid/TP40015240-CH24-SW6
import Foundation
import CryptoKit
import Network
// Set up your body JSON
@smching
smching / app_mqtt_mysql_completed.js
Last active May 9, 2024 01:12
Node.js application: Store messages from Mosquitto MQTT broker into SQL Database (completed)
var mqtt = require('mqtt'); //https://www.npmjs.com/package/mqtt
var Topic = '#'; //subscribe to all topics
var Broker_URL = 'mqtt://192.168.1.123';
var Database_URL = '192.168.1.123';
var options = {
clientId: 'MyMQTT',
port: 1883,
//username: 'mqtt_user',
//password: 'mqtt_password',
@Danga1963
Danga1963 / WRP IPTV.m3u
Last active May 9, 2024 01:12
WRP IPTV.m3u
#EXTM3U
#EXTINF:-1 tvg-id="" tvg-name="BigBrotherBrasil 2018" tvg-logo="http://bbb2018.net/wp-content/uploads/2017/08/bbb-2018.png" group-title="VARIEDADES",BigBrotherBrasil 2018
http://painel.iptvmove.com:25461/live/danga07/1963/1116.m3u8
#EXTINF:-1 tvg-id="" tvg-name="BigBrotherBrasil 2018 [Alter]" tvg-logo="http://bbb2018.net/wp-content/uploads/2017/08/bbb-2018.png" group-title="VARIEDADES",BigBrotherBrasil 2018 [Alter]
http://painel.iptvmove.com:25461/live/danga07/1963/3128.m3u8
#EXTINF:-1 tvg-id="A&E [Brazil]" tvg-name="A&E" tvg-logo="http://i.imgur.com/7NKeRuh.png" group-title="DOCUMENTARIOS",A&E
http://painel.iptvmove.com:25461/live/danga07/1963/1354.m3u8
#EXTINF:-1 tvg-id="" tvg-name="ALL Sports HD" tvg-logo="https://i0.wp.com/www.simpletvbrasil.tv/cliente/logo/4366c67d4d4be3381abe034e7c15b80e.png" group-title="CANAIS ESPORTE",ALL Sports HD
http://painel.iptvmove.com:25461/live/danga07/1963/1215.m3u8
#EXTINF:-1 tvg-id="" tvg-name="AMC" tvg-logo="http://i.imgur.com/JYislkb.png" group-title="FILMES/SERI
@martijnvermaat
martijnvermaat / nixos.md
Last active May 9, 2024 01:11
Installation of NixOS with encrypted root
@muendelezaji
muendelezaji / bash-to-zsh-hist.py
Created October 5, 2016 14:18 — forked from op/bash-history-to-zsh-history.py
Convert Bash history to Zsh history
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# This is how I used it:
# $ cat ~/.bash_history | python bash-to-zsh-hist.py >> ~/.zsh_history
import sys
import time
@jonilsonds9
jonilsonds9 / Instalar-zsh-e-componentes-ubuntu-22.04.md
Last active May 9, 2024 01:11
ZSH + Oh My Zsh + powerlevel10k + Fonts no Ubuntu 22.04

ZSH + Oh My Zsh + powerlevel10k + Fonts no Ubuntu 22.04

1. Instalar ZSH:

sudo apt-get install zsh

2. Instalar via curl, instale o mesmo se não tiver:

sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
@Jo0001
Jo0001 / 1.16 & older on 1.18+ servers.md
Last active May 9, 2024 01:07
1.16 & older on 1.18+ servers

1.16 & older on 1.18+ servers

[00:00:00 WARN]: [ViaBackwards] Custom worlds heights are NOT SUPPORTED for 1.16 players and older and may lead to errors! [00:00:00 WARN]: [ViaBackwards] You have min/max set to -64/384

Those messages sound familar to you?

Then you have 3 options:

  1. Only allow 1.17.x players
  2. Use 1.17 as server version (instead of 1.18)
  3. Use a datapack (thats why you're probably here)
@OrionReed
OrionReed / dom3d.js
Last active May 9, 2024 01:07
3D DOM viewer, copy-paste this into your console to visualise the DOM topographically.
// 3D Dom viewer, copy-paste this into your console to visualise the DOM as a stack of solid blocks.
// You can also minify and save it as a bookmarklet (https://www.freecodecamp.org/news/what-are-bookmarklets/)
(() => {
const SHOW_SIDES = false; // color sides of DOM nodes?
const COLOR_SURFACE = true; // color tops of DOM nodes?
const COLOR_RANDOM = false; // randomise color?
const COLOR_HUE = 190; // hue in HSL (https://hslpicker.com)
const MAX_ROTATION = 180; // set to 360 to rotate all the way round
const THICKNESS = 20; // thickness of layers
const DISTANCE = 10000; // ¯\\_(ツ)_/¯