Skip to content

Instantly share code, notes, and snippets.

View saitodisse's full-sized avatar

Julio M Saito saitodisse

  • Linx
  • São Paulo, Brasil
  • 01:54 (UTC -03:00)
View GitHub Profile
@saitodisse
saitodisse / Azkfile.js
Last active August 29, 2015 14:06
AZK node example error
/**
* Documentation: http://docs.azk.io/Azkfile.js
*/
// Adds the systems that shape your system
systems({
'node-example': {
// Dependent systems
depends: [],
// More images: http://images.azk.io
'ruby19-postgres': {
// Dependent systems
depends: [],
// More images: http://images.azk.io
image: "postgres:9.3",
workdir: "/azk/#{manifest.dir}/ruby19",
mounts: {
'/azk/#{manifest.dir}': path("."),
// '/var/lib/postgresql' : persistent('postgresql'), // Volume nomed
// '/var/log/postgresql' : path('./log/postgresql'),
/**
* Documentation: http://docs.azk.io/Azkfile.js
*/
// Adds the systems that shape your system
systems({
node010: {
// Dependent systems
depends: [],
// More images: http://images.azk.io

Download only audio track

youtube-dl -f 141/140/139 --playlist-end 20 'https://www.youtube.com/user/videoscpflcultura/videos'

Convert m4a to mp3

for i in *.m4a; do avconv -i "${i}" -acodec libmp3lame "${i%.m4a}.mp3"; done
@saitodisse
saitodisse / 0_reuse_code.js
Last active August 29, 2015 14:14
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
// blabla
git filter-branch --force --index-filter 'git rm --cached --ignore-unmatch __FILE_TO_REMOVE__' --prune-empty --tag-name-filter cat -- --all
% npm start _git/cerebral-boilerplate (master ⚡) julio-P67A-UD3-B3
> [email protected] start /home/julio/_git/cerebral-boilerplate
> cross-env kotatsu serve app/main.js --index app/index.html --config webpack.config.js --devtool eval-source-map
[kotatsu] (v0.13.0)
[kotatsu] Compiling...
[kotatsu] Built in 2.7s.
[kotatsu] Done!
[kotatsu] Serving your app on port 3000...
@saitodisse
saitodisse / logcat.sh
Last active August 31, 2016 19:06
adb logcat flush, raw, filter, replace new lines, save to js file
# http://www.grymoire.com/Unix/Sed.html
adb -s 192.168.57.101:5555 logcat -c; adb -s 192.168.57.101:5555 logcat -v raw *:S ReactNative:V ReactNativeJS:V | sed -u -e $'s/\\\\n/\\n/g' | sed -u -e $'s/%\[cs\]/__/g' > /tmp/192-1.log.js
subl -n /tmp/192-1.log.js
adb -s f9azb600j154 logcat -c; adb -s f9azb600j154 logcat -v raw *:S ReactNative:V ReactNativeJS:V | sed -u -e $'s/\\\\n/\\n/g' | sed -u -e $'s/%\[cs\]/__/g' > /tmp/f9azb600j154.log.js
subl -n /tmp/f9azb600j154.log.js