Skip to content

Instantly share code, notes, and snippets.

View 7coil's full-sized avatar
🔋
love batter-iiieeeeeeeeeeee

Leondro Lio 7coil

🔋
love batter-iiieeeeeeeeeeee
View GitHub Profile
@7coil
7coil / index.lua
Last active July 13, 2021 03:21
test
--[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
local ____modules = {}
local ____moduleCache = {}
local ____originalRequire = require
local function require(file)
if ____moduleCache[file] then
return ____moduleCache[file]
end
if ____modules[file] then
# Update your APT repositories
sudo apt update
# Install some things needed to run the following commands
sudo apt install apt-transport-https ca-certificates curl gnupg-agent software-properties-common
# Add the docker pub key
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
# Add the Docker repository to your machine
@7coil
7coil / help.md
Last active July 30, 2019 00:01
Discord Video Chats

How to Video Chat

Setting up (for server admins)

  1. Create a new Category
  2. Create a new voice channel
  3. Create a new text channel
  4. Click User Settings > Appearance > Developer Mode, and turn it on
  5. Right click the voice channel, and copy the ID.
  6. In the following link, replace the [PLACEHOLDER] with the ID you just copied
  • https://discordapp.com/channels/310279910264406017/[PLACEHOLDER]
  1. With the newly created link, set the text channel description to be that link
-- How to use this script:
-- 1. Install the Logitech Gaming Software: http://support.logitech.com/en_us/software/lgs
-- 2. Launch it, and right click on your profile (the gear icon) and then click on "Scripts".
-- 3. Add the following code into the Script window, save it, and close it. Enjoy.
-- Now G1 is bound to F13, G2 to G14, ... G12 to F24.
function OnEvent(event, arg)
OutputLogMessage("event = %s, arg = %s\n", event, arg)
:hi1::hi2::hi3::hi4:
:hi5::hi6::hi7::hi8:
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Note that some keys may be used by iterating over an array.
In such instance, the keys are not directly used.
categories.fun
categories.games
categories.entertainment
categories.productivity
categories.education
categories.image
@7coil
7coil / AddAnAsterisk.qml
Last active February 8, 2019 00:56
Thanks Mazda
/**
* \file AddAnAsterisk.qml
* Thanks to Mazda's in car entertainment system using GraceNote,
* your tags you put in each MP3 are wasted.
*
* This script adds an asterisk to the front of each artist,
* which throws GraceNote off it's guard, falling back onto
* the metadata within the MP3 file.
*
* \b Project: Kid3
@7coil
7coil / application.js
Created January 24, 2019 01:28
This application turns numbered pictures in a `frames` folder into the `project` folder as hashed files, and creates the corresponding JSON to insert into the project.
const fs = require('fs');
const path = require('path');
const crypto = require('crypto');
const compare = (a, b) => parseInt(a.replace(/\D/g, ''), 10) - parseInt(b.replace(/\D/g, ''), 10);
const data = fs.readdirSync('./frames')
.sort(compare)
.map((file, index) => {
const hash = crypto.createHash('md5').update(fs.readFileSync(`./frames/${file}`)).digest('hex');