Skip to content

Instantly share code, notes, and snippets.

View acrylic-style's full-sized avatar
💛

Acrylic Style acrylic-style

💛
View GitHub Profile
@acrylic-style
acrylic-style / z.cpp
Last active September 24, 2020 18:33
write code using z
#include <iostream>
#include <sys/socket.h>
#include <netdb.h>
#include <cstring>
#include <chrono>
#include <thread>
#define z ;
#define zz using
#define zzz namespace
@acrylic-style
acrylic-style / crazy.sh
Last active October 1, 2021 04:26
ffmpeg commands
# convert a mp4 into nightcore
ffmpeg -i input.mp4 -filter:a "atempo=1.06,asetrate=44100*1.25" -filter:v "setpts=0.815*PTS,fps=30" output.mp4
# convert a mp3 into nightcore
ffmpeg -i input.mp3 -filter:a "atempo=1.06,asetrate=44100*1.25" output.mp3
# Compress mp4
ffmpeg -i input.mp4 -vcodec h264 -b:v 1000k -acodec mp2 output.mp4
# Low bitrate (strips artwork)
@acrylic-style
acrylic-style / swagger.yml
Last active September 7, 2020 09:21
docs.mp4
paths:
'/gban':
post:
parameters:
- in: 'body'
name: 'body'
description: 'Global BANをするために必要なオブジェクト'
required: true
schema:
type: 'object'
const Discord = require('discord.js')
const { Command } = require('bot-framework')
module.exports = class extends Command {
constructor() {
const opts = {
args: ['<Message URL>'],
}
super('msg', opts)
}
const ytdl = require('ytdl-core-discord')
const logger = require('logger.js').LoggerFactory.getLogger('commands:music')
const isNumber = (n) => !isNaN(parseFloat(n)) && isFinite(n)
const f = require('string-format')
const { Command } = require('bot-framework')
const YouTube = require('youtube-node')
const youtube = new YouTube()
const util = require('util')
const queue = {}
const playing = {}