Skip to content

Instantly share code, notes, and snippets.

View luizbafilho's full-sized avatar

Luiz Filho luizbafilho

View GitHub Profile
@himbosatsu
himbosatsu / ankiconnect.patch
Created February 10, 2022 22:22
mining sentences to jpdb using yomichan via ankiconnect
save this to the folder for the ankiconnect plugin — you can
get that by hitting "view files" in the list of addons — and
run
patch __init__.py < ankiconnnect.patch
--- __init__.py 2022-02-11 03:47:57.262335097 +0530
+++ __init__.py 2022-02-10 22:06:13.383091229 +0530
@@ -667,6 +667,14 @@
@root-hal9000
root-hal9000 / removecompletedtorrents.sh
Created September 29, 2019 19:38 — forked from bulljit/removecompletedtorrents.sh
Transmission-Daemon: Remove Completed Torrents
#!/bin/bash
# script to check for complete torrents in transmission folder, then stop and move them
# either hard-code the MOVEDIR variable here…
MOVEDIR=/data/complete
USER=YOUR_USER_NAME
PASS=YOUR_PASS
# use transmission-remote to get torrent list from transmission-remote list
# use sed to delete first / last line of output, and remove leading spaces
# use cut to get first field from each line
TORRENTLIST=`transmission-remote -n $USER:$PASS --list | sed -e '1d;$d;s/^ *//' | cut --only-delimited -d ' ' --fields=1`

This is a proposal for a lightning talk at the Reactive 2016 conference. If you like this, star the Gist.


Thinking metrics on React applications

In regular websites, it is common to send multiple events to track user clicks. Single Page Applications change the way you look at metrics. This is a talk about a simple pattern we created at Globo.com to manage a metrics layer for http://globoplay.globo.com. The talk will cover how to track user flow using Google Analytics and other services. We solved the challenge of tying metrics and components, keeping information across pages and having global data. Also some React, React Router and React Side Effects concepts like context, higher order components, history state will be covered.

# Hello, and welcome to makefile basics.
#
# You will learn why `make` is so great, and why, despite its "weird" syntax,
# it is actually a highly expressive, efficient, and powerful way to build
# programs.
#
# Once you're done here, go to
# http://www.gnu.org/software/make/manual/make.html
# to learn SOOOO much more.
@huberflores
huberflores / tsungconf.as
Last active August 26, 2018 11:51
Tsung installation and Cluster Configuration
/*
* author Huber Flores
*/
# Install on each Node
$ su
# Perl Templating-Toolkit and the Gnu plotting utility to create HTML and graphical reports with the result data set.
$ apt-get install gnuplot-nox libtemplate-perl libhtml-template-perl libhtml-template-expr-perl