Skip to content

Instantly share code, notes, and snippets.

View pedro-valentim's full-sized avatar

Pedro Valentim Silva Leite pedro-valentim

  • São José dos Campos, SP - Brasil
View GitHub Profile
@kjlubick
kjlubick / InstallingMeld
Last active November 2, 2023 02:49
How to install Meld on Windows and getting it set up with Git
After installing it http://sourceforge.net/projects/meld-installer/
I had to tell git where it was:
git config --global merge.tool meld
git config --global diff.tool meld
git config --global mergetool.meld.path “C:\Program Files (x86)\Meld\meld\meld.exe”
And that seems to work. Both merging and diffing with “git difftool” or “git mergetool”
@jiaaro
jiaaro / Generate WAV from MIDI.md
Last active July 17, 2024 21:40
Generate a wave file from a MIDI file with Pydub

Simple example of rendering a midi file with Pydub

Basically, this takes a MIDI input file (I just googled and grabbed one of Maroon 5's "Animal" – I know, I know) and generates a WAV file.

NOTE: This is the slowest midi rendering program I have ever seen!

Dependencies:

@bastman
bastman / docker-cleanup-resources.md
Created March 31, 2016 05:55
docker cleanup guide: containers, images, volumes, networks

Docker - How to cleanup (unused) resources

Once in a while, you may need to cleanup resources (containers, volumes, images, networks) ...

delete volumes

// see: https://github.com/chadoe/docker-cleanup-volumes

$ docker volume rm $(docker volume ls -qf dangling=true)

$ docker volume ls -qf dangling=true | xargs -r docker volume rm

@zokis
zokis / speed_test_csv.py
Created March 8, 2017 16:54
Runs an internet speed test every 1 hour; Throws the result into a csv file named speedtest_result.csv
# coding: utf-8
# pip install speedtest-cli
import subprocess
import time
def main():
c = 0
@Saissaken
Saissaken / Update git fork with tags.sh
Last active May 21, 2024 19:20
Update git fork with tags
# Repo: someuser/myframework
# Fork: superteam/myframework
# Track:
git clone https://github.com/superteam/myframework.git
cd myframework
git remote add upstream https://github.com/someuser/myframework.git
# Update:
git fetch upstream
@golonzovsky
golonzovsky / Dockerfile.build
Last active December 19, 2018 07:48
build and run angular-cli app in docker nginx via volume sharing
FROM node:7
ENV REFRESHED_AT 2017-06-26
RUN yarn global add @angular/cli
RUN ng set --global packageManager=yarn
COPY . /build
WORKDIR /build
@jesuino
jesuino / result1.txt
Last active October 27, 2017 13:14
Results from DeepLearning tests with a custom dataset - using a trained Resnet50 CNN
Epochs:20
--
Examples labeled as 0 classified by model as 0: 12 times
Examples labeled as 0 classified by model as 2: 7 times
Examples labeled as 1 classified by model as 1: 17 times
Examples labeled as 1 classified by model as 2: 2 times
Examples labeled as 2 classified by model as 2: 29 times
Examples labeled as 2 classified by model as 4: 4 times
Examples labeled as 3 classified by model as 3: 1 times
Examples labeled as 4 classified by model as 1: 1 times
@mikeboiko
mikeboiko / pagination.py
Last active November 22, 2020 14:07
Django Rest Framework Pagination integration with Vuetable-2
# =======================================================================
# === Description ...: Integrate DRF with VueTable-2
# === Author ........: Mike Boiko
# =======================================================================
# If you want to integrate Django Rest Pagination with VueTable, you must
# change the pagination as shown below:
# Then, in your views.py file, the pagination_class must be set to CustomPagination
# See example below:
# from rest_framework import pagination
Textit :
* RapidSMS is framework custom SMS systems.
UNICEF Innovation has been working with SMS systems since 2007,
when it created an open source platform called RapidSMS
* Add your own logic & you can trigger actions, such as sending an SMS, email or even calling an external API