This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <sys/socket.h> | |
#include <netdb.h> | |
#include <cstring> | |
#include <chrono> | |
#include <thread> | |
#define z ; | |
#define zz using | |
#define zzz namespace |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
paths: | |
'/gban': | |
post: | |
parameters: | |
- in: 'body' | |
name: 'body' | |
description: 'Global BANをするために必要なオブジェクト' | |
required: true | |
schema: | |
type: 'object' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const Discord = require('discord.js') | |
const { Command } = require('bot-framework') | |
module.exports = class extends Command { | |
constructor() { | |
const opts = { | |
args: ['<Message URL>'], | |
} | |
super('msg', opts) | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 = {} |
NewerOlder