Skip to content

Instantly share code, notes, and snippets.

View sgdc3's full-sized avatar

Gabriele C. sgdc3

View GitHub Profile

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 / .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 / xrdpMac.sh
Created December 2, 2016 12:47
Xrdp install script for OSX
#!/bin/sh
echo Controllo stato csrutil....
SIP_status=`/usr/bin/csrutil status | awk '/status/ {print $5}' | sed 's/\.$//'`
if [ $SIP_status = "enabled" ]; then
echo Devo disabilitare il CSR dalla recovery mode per continuare!
echo Adesso si riavviera'' il sistema, premere simultaneamente i tasti Mac e R
echo Una volta avviata la recovery mode aprire il terminale e scrivere
@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 / jsontomidi.js
Last active May 7, 2024 17:06
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