Skip to content

Instantly share code, notes, and snippets.

@uborzz
uborzz / tmux-cheatsheet.markdown
Created September 22, 2017 13:05 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet
View tmux-cheatsheet.markdown
@uborzz
uborzz / raspi-daemon-example.md
Last active October 28, 2018 08:34
raspi-daemon-example
View raspi-daemon-example.md

Script

#!/bin/sh
# /etc/init.d/livestream.sh
### BEGIN INIT INFO
# Provides:          livestream.sh
# Required-Start:    $network
# Required-Stop:     $network
# Default-Start:     2 3 4 5
@uborzz
uborzz / keras-opencv.md
Last active May 15, 2019 07:53
keras-opencv conda env
View keras-opencv.md

With python 3.6 create conda env called keras-cv (GUI...)

On the prompt: Activate your new environment by typing the following in Terminal.

  • source activate keras-cv //// (Windows) activate keras-cv

Install packages

  • pip install --upgrade pip
  • pip install tensorflow
  • pip install keras
View vagrant-cheat-sheet.md

Typing vagrant from the command line will display a list of all available commands.

Be sure that you are in the same directory as the Vagrantfile when running these commands!

Creating a VM

  • vagrant init -- Initialize Vagrant with a Vagrantfile and ./.vagrant directory, using no specified base image. Before you can do vagrant up, you'll need to specify a base image in the Vagrantfile.
  • vagrant init <boxpath> -- Initialize Vagrant with a specific box. To find a box, go to the public Vagrant box catalog. When you find one you like, just replace it's name with boxpath. For example, vagrant init ubuntu/trusty64.

Starting a VM

  • vagrant up -- starts vagrant environment (also provisions only on the FIRST vagrant up)
@uborzz
uborzz / pack-unpack.md
Last active April 28, 2020 17:35
pack - unpack dictionaries
View pack-unpack.md

For instance, check this out:

function(**{"key": "value"})

It is the same as the following:

function(key="value")
@uborzz
uborzz / git-orphan-branch.md
Last active April 8, 2021 08:32
Rama por proyecto en repo único
View git-orphan-branch.md
@uborzz
uborzz / cursos-iniciacion-programacion.md
Last active April 16, 2021 20:16
Cursos Iniciación
View cursos-iniciacion-programacion.md

recomendación cursos

cursos recomendados para iniciación en programación y desarrollo

Nota

Existen cantidad de cursos gratuitos en portales como coursera, edx o udacity. Basta con hacer una búsqueda y leer algunos de los comentarios, mirar contenido o la puntuación para hacerte una idea de si está bien montado y se ajusta a lo que quieres aprender. Aunque conseguir un certificado o diploma puede tener un coste en estos portales, seguir el curso y obtener los conocimientos es totalmente gratuito ;)

Linux

Curso básico de linux. Tiene capítulos interesantes. Hay que ser crítico y echar un ojo con cariño a los capítulos más útiles ya que hay varios de poca utilidad que se pueden pasar con menos atención: el de aplicaciones gráficas, printing, o editores de texto resultan poco interesantes.

@uborzz
uborzz / git-basic-commands.md
Last active June 18, 2022 10:25
Git commands easy & fast!
View git-basic-commands.md

Basic: Add, commit and push!

  • git add .
  • git commit -m "yummie! bananas!"
  • git push origin master
    • -u (set upstream to use only git push)

Checks

  • git status
  • git diff HEAD / git diff --staged
  • git log