Skip to content

Instantly share code, notes, and snippets.

View mgiugliano's full-sized avatar
😀
Hello world!

Michele GIUGLIANO mgiugliano

😀
Hello world!
View GitHub Profile
@mgiugliano
mgiugliano / gist:5ff75474c64f3a2a97a9f4147b6044c8
Created October 1, 2018 21:28
Dark theme in Slack - add the following lines at the bottom of /Applications/Slack.app/Contents/Resources/app.asar.unpacked/src/static/ssb-interop.js
document.addEventListener('DOMContentLoaded', function() {
$.ajax({
url: 'https://raw.githubusercontent.com/laCour/slack-night-mode/master/css/raw/black.css',
success: function(css) {
$("<style></style>").appendTo('head').html(css);
}
});
});
@mgiugliano
mgiugliano / it_IT.json
Created December 28, 2018 15:10
Translation JSON file (for Italian) for Zettlr 1.0
{
"localise": {
"thousand_delimiter": ",",
"decimal_delimiter": "."
},
"gui": {
"no_recent_docs": "Nessun documento recente",
"words": "%s parole",
"words_last_month": "parole nell'ultimo mese",
"file_words": "parole",

Keybase proof

I hereby claim:

  • I am mgiugliano on github.
  • I am mgiugliano (https://keybase.io/mgiugliano) on keybase.
  • I have a public key ASDtdt_3ZTyQ0Gfy2MxCahfC-JYG8JxEAmvNW3a8m211yAo

To claim this, I am signing this object:

@mgiugliano
mgiugliano / functions_of_one_variable.ipynb
Last active October 1, 2022 19:21
functions_of_one_variable.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mgiugliano
mgiugliano / audioTest.py
Created November 16, 2022 12:43
Minimal Python3 code example (for Discord.py BOT library) for playing an audio file in a voice channel
#
# Minimal code for an audio file player BOT in a voice channel
#
# Entirely based on the example from Rapptz (that was NOT working for me)
# https://github.com/Rapptz/discord.py/blob/master/examples/basic_voice.py
#
# Nov 15 2022
import asyncio
import discord
@mgiugliano
mgiugliano / sync.py
Created May 10, 2023 20:21
Quick and dirty (python and bash) sync script between a radio (CAT controlled) and SDR++
#!/usr/bin/env bash
#
# Demo of how to bidirectionally synchronize SDR++ (running with a hardware or
# remote SDR hardware) with a physical radio connected to the computer by
# CAT control.
# This requires to install the following software:
# - hamlib (https://hamlib.github.io/hamlib/), which is used to control the radio with CAT commands, by
# . rigctld (https://hamlib.github.io/hamlib/rigctld.1.html)