Skip to content

Instantly share code, notes, and snippets.

View Kaisarion's full-sized avatar

Krim Kaisarion

View GitHub Profile
@Kaisarion
Kaisarion / CopyScreenshots.scpt
Created July 18, 2022 05:01
Copy Screenshots that are added to a specific folder with AppleScript and Mac
on run {input, parameters}
set thisFile to item 1 of input
set the clipboard to (read thisFile as TIFF picture)
return thisFile
end run
@Kaisarion
Kaisarion / timeout.js
Created March 18, 2022 16:30
THIS IS BEA AFTER SHE KNOWS HOW TO WORK OPTIONS ON DJS!!!
const { SlashCommandBuilder } = require("@discordjs/builders");
const { MessageEmbed, Permissions } = require("discord.js");
const DatabaseManager = require("../../handlers/DatabaseManager.js");
module.exports = {
data: new SlashCommandBuilder()
.setName("timeout")
.setDescription("Timeout a mentioned user in the server.")
.addUserOption((option) =>
option
@Kaisarion
Kaisarion / timeout.js
Created March 18, 2022 15:34
THIS IS BEA BEFORE SHE DISCOVERED DISCORD.JS CHOICES IN OPTIONS
const { SlashCommandBuilder } = require("@discordjs/builders");
const { MessageEmbed, Permissions } = require("discord.js");
const DatabaseManager = require("../../handlers/DatabaseManager.js");
module.exports = {
data: new SlashCommandBuilder()
.setName("timeout")
.setDescription("Timeout a mentioned user in the server.")
.addUserOption((option) =>
option
@Kaisarion
Kaisarion / main.css
Created March 7, 2022 19:31
Replace Discord Home Button in Powercord
#app-mount .guilds-2JjMmN .tutorialContainer-1pL9QS .listItem-3SmSlK:first-child .wrapper-3kah-n:before {
content: "";
border-radius: 50%;
position: absolute;
background: var(--home-button-image, url("https://i.imgur.com/EN2OZ5V.png"));
background-size: var(--home-button-size, cover);
background-position: var(--home-button-position, center);
height: 100%;
width: 100%;
transition: 0.2s ease;
@Kaisarion
Kaisarion / gpgsetup.md
Last active October 15, 2022 17:04
Make your Commits Verified on GitHub

How to set up GPG keys into GitHub on any device

gpgterminalprocess

Supported GPG key algorithms

GitHub supports several GPG key algorithms. If you try to add a key generated with an unsupported algorithm, you may encounter an error.

  • RSA
  • ElGamal
  • DSA
@Kaisarion
Kaisarion / langOptions.js
Created March 13, 2021 18:21
A simple language map in JavaScript.
module.exports = lng = [
{ "name": "afrikaans", "abrv": "af" },
{ "name": "albanian", "abrv": "sq", },
{ "name": "arabic", "abrv": "ar", },
{ "name": "armenian", "abrv": "hy" },
{ "name": "bengali", "abrv": "bn", },
{ "name": "bulgarian", "abrv": "bg", },
{ "name": "catalan", "abrv": "ca", },
{ "name": "chinese (simplified)", "abrv": "zh-cn", },
{ "name": "chinese (traditional)", "abrv": "zh-tw", },