Skip to content

Instantly share code, notes, and snippets.

@axyiee
axyiee / record.sh
Created February 10, 2022 05:45
Record videos using FFMPEG on Linux, with high performance and almost no quality loss.
#!/bin/sh
export LIBVA_DRIVER_NAME=radeonsi
RESOLUTION_W=1920
RESOLUTION_H=1080
FPS=60
FILENAME=~/Videos/recording-$(date +"%d-%m-%Y-%H-%M")
DEVICE=/dev/dri/card0
VAAPI_DEVICE=/dev/dri/renderD128
THREAD_QUEUE_SIZE=140048
AUDIO_DEVICE=alsa_card.usb-C-Media_Electronics_Inc._USB_PnP_Sound_Device-00 # You can list your audio devices by using the 'pactl list' command.
@axyiee
axyiee / twitter-remove-retweets.js
Created January 25, 2022 00:15 — forked from antlionguard/twitter-remove-retweets.js
With this script, you can remove all retweets you are retweeted on Twitter.
const timer = ms => new Promise(res => setTimeout(res, ms));
// Unretweet normally
const unretweetTweet = async (tweet) => {
await tweet.querySelector('div[data-testid="unretweet"]').click();
await timer(250);
await document.querySelector('div[data-testid="unretweetConfirm"]').click();
console.log('****// Unretweeted Successfully //****')
}
@axyiee
axyiee / Optimizations_Artix.md
Created January 9, 2022 16:48 — forked from themagicalmammal/Optimizations_Artix.md
Set of optimizations, I use on my Artix Setup
@axyiee
axyiee / bot.go
Created November 29, 2021 18:26
A discord.go example written obviously in Go.
package main
import (
"flag"
"fmt"
"github.com/bwmarrin/discordgo"
"github.com/joho/godotenv"
"github.com/manifoldco/promptui"
"os"
"os/signal"
@axyiee
axyiee / .md
Last active May 28, 2021 16:58
How to create an Android VM on Linux
@axyiee
axyiee / .minified.js
Last active May 11, 2021 14:08
Black theme for Discord
!function(){const e=document.createElement("style");(document.head||document.getElementsByTagName("head")[0]).appendChild(e),e.appendChild(document.createTextNode(` .theme-dark{--background-tertiary:#040405;--background-secondary:#040405;--background-primary:#040405;--deprecated-panel-background:#040405;--deprecated-card-bg:#040405;--deprecated-card-editable-bg:#040405;--channeltextarea-background:#18191c;--background-modifier-selected:#040405;--background-modifier-hover:#040405;--deprecated-store-bg:#040405;--background-floating:#040405;--background-accent:#040405;--background-secondary-alt:#040405;--header-primary:#dcddde;--text-normal:#dcddde;--text-muted:#dcddde;--interactive-active:#4fdc7b;--info-help-foreground:#4fdc7b;--main-color:#4fdc7b;--text-link:#4fdc7b;--header-secondary:#dcddde}.theme-dark .body-3iLsc4,.theme-dark .footer-1fjuF6,.css-15ejc46-control,.theme-dark .searchBox-3Y2Vi7,.theme-dark .searchResultsContainer-1ma_dc,.theme-dark .root-1gCeng,.theme-dark .perksModal-fSYqOq,.theme-dark .perk-2
@axyiee
axyiee / improving_gaming_performance_on_linux.md
Last active May 29, 2021 15:25
Improving Gaming Performance on Linux

This article is under construction.

Improving Gaming Performance on Linux

Since I started using an AMD GPU months ago, I have been looking for ways to increase its performance under Linux. I got good results and will share the same way I did until then. Most of the steps can serve even if you don't have an AMD GPU, as I will leave the AMD-only steps last.

Frankly, the gaming performance on Linux is already good on its own without additional configurations. But if you want to go further, this guide can help you.

package kodya.gateway.utils
import java.lang.ref.*
import kotlin.reflect.KProperty
enum class ReferenceType {
Weak, Soft;
}
fun <T> reference(
#!/bin/bash
#Variables and utility.
REPOSITORY="https://github.com/nekkan/nodejs-es11-template.git"
ITALICCYAN="\e[3;36m"
GREEN="\e[0;32m"
PURPLE="\e[0;35m"
GRAY="\e[0;37m"
YELLOW="\e[0;33m"
CYAN="\e[0;36m"
package br.com.nekkan.kotlin4bukkit.dsl.scoreboard.impl
import br.com.nekkan.kotlin4bukkit.architecture.KotlinPlugin
import br.com.nekkan.kotlin4bukkit.dsl.scoreboard.BaseScoreboard
import br.com.nekkan.kotlin4bukkit.extension.DSL
import br.com.nekkan.kotlin4bukkit.extension.board.getTeamOrCreate
import org.bukkit.Bukkit
import org.bukkit.ChatColor
import org.bukkit.entity.Player
import org.bukkit.scoreboard.DisplaySlot