Skip to content

Instantly share code, notes, and snippets.

Michele Adduci madduci

Block or report user

Report or block madduci

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@madduci
madduci / sorting.sh
Last active Sep 17, 2019
Sorting files in folders
View sorting.sh
#!/bin/bash
readonly INPUT_FOLDER="${1}"
cd ${INPUT_FOLDER}
find . -type f -print0 | while read -d $'\0' file
do
information=$(ls -lt --time-style=+%b-%Y "${file}")
filedate=$(echo "${information}" | awk '{print $6}')
filename=$(echo "${information}" | awk '{print $7}' )
@madduci
madduci / install_tools.ps1
Last active Aug 15, 2019
C++ tools for Windows
View install_tools.ps1
############################################
#
# Author; Michele Adduci
# Copyright 2019. All rights reserved
#
############################################
####################################
# Define Variables
####################################
@madduci
madduci / tutorial.md
Created Jul 17, 2018 — forked from swalkinshaw/tutorial.md
Designing a GraphQL API
View tutorial.md

Tutorial: Designing a GraphQL API

This tutorial was created by Shopify for internal purposes. We've created a public version of it since we think it's useful to anyone creating a GraphQL API.

It's based on lessons learned from creating and evolving production schemas at Shopify over almost 3 years. The tutorial has evolved and will continue to change in the future so nothing is set in stone.

@madduci
madduci / custom_launcher
Created Apr 21, 2018
bumblebee optirun steam launcher
View custom_launcher
LD_PRELOAD="libpthread.so.0 libGL.so.1" __GL_THREADED_OPTIMIZATIONS=1 optirun %command%
@madduci
madduci / sign.sh
Created Apr 18, 2018 — forked from ezimuel/sign.sh
Sign and verify a file using OpenSSL command line tool. It exports the digital signature in Base64 format.
View sign.sh
#!/bin/bash
# Sign a file with a private key using OpenSSL
# Encode the signature in Base64 format
#
# Usage: sign <file> <private_key>
#
# NOTE: to generate a public/private key use the following commands:
#
# openssl genrsa -aes128 -passout pass:<passphrase> -out private.pem 2048
# openssl rsa -in private.pem -passin pass:<passphrase> -pubout -out public.pem
@madduci
madduci / introrx.md
Created Feb 2, 2018 — forked from staltz/introrx.md
The introduction to Reactive Programming you've been missing
View introrx.md
@madduci
madduci / packages.ps1
Created Dec 13, 2017
Common used packages for Windows
View packages.ps1
Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
choco install -y flashplayerplugin firefox 7zip.install vlc notepadplusplus.install paint.net malwarebytes teamviewer foxitreader
@madduci
madduci / usc_parser.py
Created Oct 21, 2017
Conversion of Ground Truth data for the USC dataset
View usc_parser.py
import sys
import glob
import os
import argparse
import xml.etree.ElementTree
# dlib output format: <image file='*.jpg'><box top='' left='' width='' height=''/> </image>
# USC format: <Object><Rect x="142" y="22" width="28" height="73"/></Object>
View rocket.chat
version: '3.3'
services:
db:
image: mongo:latest
container_name: mongo
expose:
- "27017"
chat:
image: rocket.chat:latest
container_name: rocket
@madduci
madduci / server.py
Last active Nov 12, 2017
Python3 HTTPS Server
View server.py
from http.server import HTTPServer, SimpleHTTPRequestHandler
import ssl
if __name__ == '__main__':
httpd = HTTPServer(('localhost', 4443), SimpleHTTPRequestHandler)
httpd.socket = ssl.wrap_socket(httpd.socket,
keyfile="ssl/server-key.pem",
certfile="ssl/server-cert.pem",
server_side=True,
ca_certs="ssl/client-cert.pem",
You can’t perform that action at this time.