Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
I'm building the future

Camilo Nova camilonova

💭
I'm building the future
View GitHub Profile
@camilonova
camilonova / script.sh
Created Apr 1, 2020
Update every repository in the current directory
View script.sh
ls | xargs -P10 -I{} git -C {} pull
@camilonova
camilonova / create_webp_files.sh
Created Oct 30, 2019
This script creates web files in the current directory
View create_webp_files.sh
#!/bin/bash
# converting JPEG images
find . -type f -and \( -iname "*.jpg" -o -iname "*.jpeg" \) -exec bash -c '
for result; do
webp_path=$(sed '\''s/\.[^.]*$/.webp/'\'' <<< "$result");
if [ ! -f "$webp_path" ]; then
cwebp "$result" -o "$webp_path";
fi;
done
View .hyper.js
module.exports = {
config: {
updateChannel: 'stable',
fontSize: 13,
fontFamily: '"Source Code Pro", Menlo, "DejaVu Sans Mono", Consolas, "Lucida Console", monospace',
fontWeight: 'normal',
fontWeightBold: 'bold',
lineHeight: 1,
letterSpacing: 0,
cursorColor: '#d5d5d5',
View .vimrc
syntax on
if has("autocmd")
au BufReadPost * if line("'\"") > 0 && line("'\"") <= line("$") | exe "normal! g`\"" | endif
endif
View .gitconfig
alias.lg=log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)%Creset' --abbrev-commit
push.default=matching
core.pager=diff-so-fancy | less --tabs=4 -RFX
color.diff-highlight.oldnormal=red bold
color.diff-highlight.oldhighlight=red bold 52
color.diff-highlight.newnormal=green bold
color.diff-highlight.newhighlight=green bold 22
color.diff.meta=yellow
color.diff.frag=magenta bold
color.diff.commit=yellow bold
@camilonova
camilonova / extensions.txt
Last active Jan 25, 2019
vscode settings
View extensions.txt
Django Template
EditorConfig
ESLint
Python
Sass
Sass Lint
Spacegray VSCode
View gist:d2a82989327b2353485aeb32aaf77f6c
sudo apt-get install metricbeat -y
# Add you domain
sudo vim /etc/metricbeat/metricbeat.yml
sudo systemctl enable metricbeat
sudo systemctl start metricbeat
@camilonova
camilonova / gist:8c44139b1f632fff54cf92af27c5e735
Created Sep 8, 2018
setup visual studio for python development
View gist:8c44139b1f632fff54cf92af27c5e735
$ brew install python3
$ python3.7 get-pip.py
at vscode:
Install Python extension
Configure flake8 linter
Install code command in path
Install Spacegray extension
set Source Code Pro font at 13px
@camilonova
camilonova / README.md
Last active Apr 26, 2018
Enable WAL replication on postgres 10
View README.md

Setup master server:

Create a user for the replication:

$ psql postgres
postgres=# CREATE USER replica REPLICATION LOGIN ENCRYPTED PASSWORD 'so-secret';

Change your postgres.conf:

@camilonova
camilonova / README.md
Last active Apr 18, 2018
Create a video using Gource
View README.md
  1. Generar video:

gource -1920x1080 --title "Osaki" --logo axiacore-logo-small.png --user-image-dir .git/avatar/ --font-size 18 --seconds-per-day 0.3 --auto-skip-seconds 0.1 --disable-progress --stop-at-end -output-ppm-stream - | ffmpeg -y -r 60 -f image2pipe -vcodec ppm -i - -vcodec libx264 -preset ultrafast -pix_fmt yuv420p -crf 1 -threads 0 -bf 0 video.mp4

gource -1920x1080 --title "Osaki" --logo axiacore-logo-small.png --user-image-dir .git/avatar/ --auto-skip-seconds 1 --seconds-per-day 0.5 --hide mouse,progress -o - | ffmpeg -y -r 60 -f image2pipe -vcodec ppm -i - -vcodec libx264 -preset ultrafast -pix_fmt yuv420p -crf 1 -threads 0 -bf 0 gource.mp4

  1. Pista de audio

Editar audio en audacity y exportarlo a mp3 con la misma duración del video (maximo 90 segundos)

You can’t perform that action at this time.