Skip to content

Instantly share code, notes, and snippets.

View sgdc3's full-sized avatar

Gabriele C. sgdc3

View GitHub Profile
@sgdc3
sgdc3 / codemc-style.css
Created February 28, 2018 08:13
codemc-style.css
@import url(https://fonts.googleapis.com/css?family=Roboto:400,700,500,300);@import url(https://fonts.googleapis.com/css?family=Roboto+Mono:400,700,500,300);@keyframes a{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}@keyframes b{0%{opacity:1}50%{opacity:0}to{opacity:1}}[src$="blue.png"]{background-image:url(data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9IjE4IiB2aWV3Qm94PSIwIDAgMjQgMjQiIHdpZHRoPSIxOCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBmaWxsPSIjMDA5Njg4IiBkPSJNMTIgMkM2LjQ4IDIgMiA2LjQ4IDIgMTJzNC40OCAxMCAxMCAxMCAxMC00LjQ4IDEwLTEwUzE3LjUyIDIgMTIgMnptLTIgMTVsLTUtNSAxLjQxLTEuNDFMMTAgMTQuMTdsNy41OS03LjU5TDE5IDhsLTkgOXoiLz48L3N2Zz4=)}[src$="red.png"]{background-image:url(data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9IjE4IiB2aWV3Qm94PSIwIDAgMjQgMjQiIHdpZHRoPSIxOCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBmaWxsPSIjRjQ0MzM2IiBkPSJNMTIgMkM2LjQ4IDIgMiA2LjQ4IDIgMTJzNC40OCAxMCAxMCAxMCAxMC00LjQ4IDEwLTEwUzE3LjUyIDIgMTIgMnptMSAxNWgtMnYtMmgydjJ6bTAtNGgtMlY3aDJ2NnoiLz48L3N2Zz4=)}[src$="yellow.png

Keybase proof

I hereby claim:

  • I am sgdc3 on github.
  • I am sgdc3 (https://keybase.io/sgdc3) on keybase.
  • I have a public key ASA01E_2ixq30AgDSbsDFwXj1aG7TeoMwzXOiTQiUcDy-Ao

To claim this, I am signing this object:

@sgdc3
sgdc3 / restream.sh
Last active September 21, 2022 03:09
Restream: a simple bash script to split an rtmp video stream by using ffmpeg.
#!/bin/bash
LISTEN_URL='rtmp://0.0.0.0:5555'
# Youtube stream
YT_URL='rtmp://a.rtmp.youtube.com/live2'
YT_VIDEO_ARGS='-c:v copy'
YT_AUDIO_ARGS='-c:a copy'
# Keys
@sgdc3
sgdc3 / .gitignore
Created August 22, 2018 17:05
Gitignore for maven java projects
# Git
*.orig
!.gitignore
# Windows
Thumbs.db
ehthumbs.db
ehthumbs_vista.db
*.stackdump
[Dd]esktop.ini
@sgdc3
sgdc3 / main.js
Last active January 15, 2019 18:37
TwitchNotificationBot
// Include Telegraf module
const Telegraf = require('telegraf');
const twitch = require('twitch-api-v5');
twitch.clientID = '';
const bot = new Telegraf('');
const channelName = '';
const telegramGroupId = -1;
const pinNotification = true;
configurations {
deployerJars
}
dependencies {
deployerJars "org.apache.maven.wagon:wagon-ssh:2.10"
}
apply plugin: 'maven'
# C/C++ development environment setup script for Windows + WSL
# Author: sgdc3
$defaultApps = @(
"Microsoft.BingFinance"
"Microsoft.3DBuilder"
"Microsoft.BingFinance"
"Microsoft.BingNews"
"Microsoft.BingSports"
"Microsoft.BingWeather"
@sgdc3
sgdc3 / custom.maven.gradle
Last active June 3, 2019 15:37
Deploy for codemc
publishing {
repositories {
maven {
credentials {
username = project.getProperty('deployUser')
password = project.getProperty('deployPass')
}
name = "codemc"
url = version.endsWith('SNAPSHOT') ? 'https://repo.codemc.org/repository/maven-snapshots/' :
'https://repo.codemc.org/repository/maven-releases/'
@sgdc3
sgdc3 / jsontomidi.js
Last active May 11, 2024 16:24
LittleBigPlanet Music Sequencer MIDI Dumper
/*
* LittleBigPlanet Music Sequencer MIDI Dumper
* NodeJS script that extracts music sequencer data from LBP levels in JSON format (jsoninator format)
*
* Author: @sgdc3
* Version: 0.2
* Latest Update: 07 May 2024
*
* HINT: You can obtain the JSON level data using https://github.com/ennuo/toolkit/tree/main/tools/jsoninator
* Output Format: ./out/{Level ID}/{Sequencer UID}/{Sequence Name}/{Sequence Name}-{Track Id}.mid