# for Linux:
find . -iname "*something*.ext" -exec mv {} another/dir/path \;
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| # Based on http://jswiki.lab-01.com/wiki/doku.php?id=install-couch | |
| echo "Downloading Linux build tools and Erlang" | |
| sudo apt-get install build-essential libicu-dev libcurl4-gnutls-dev libtool erlang-dev erlang zip -y | |
| # Work on tmp directory | |
| cd /tmp | |
| # Spidermonkey is required |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #Sources: | |
| # https://gorails.com/setup/ubuntu/14.04 | |
| # https://github.com/sstephenson/rbenv | |
| cd | |
| git clone git://github.com/sstephenson/rbenv.git .rbenv | |
| echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc | |
| echo 'eval "$(rbenv init -)"' >> ~/.bashrc | |
| exec $SHELL |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| # Installing python3.4-venv (just needed one time at first.) | |
| sudo apt-get install python3.4-venv | |
| # Creating a new virtual environment, change virtualenv_name with a prefered name | |
| python3 -m venv virtualenv_name | |
| # Activating the new virtual environment | |
| source virtualenv_name/bin/activate |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env ruby | |
| require 'rubygems' | |
| require 'twitter' | |
| require 'json' | |
| require 'faraday' | |
| # things you must configure | |
| PATH_TO_DROPBOX = "/Users/your_name/Dropbox/backup/tweets/" # you need to create this folder | |
| TWITTER_USER = "your_twitter_username" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| use std::io; // Es un módulo que permite que el programa realice ciertas operaciones de entrada y salida. | |
| fn main() { | |
| // Declaramos una variable para contener el nombre del usuario | |
| let mut nombre_usuario = String::new(); | |
| // Preguntamos al usuario su nombre | |
| println!("Escribe tu nombre:"); | |
| // Leemos el texto ingresado por el usuario y lo pasamos a la variable nombre_usuario |
You will need an open Terminal.
Note: If you don't have Homebrew go to https://brew.sh in order to install it. It's simple. Maybe something as:
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| defmodule Fibonacci do | |
| @moduledoc """ | |
| A Fibonacci series generator. | |
| """ | |
| @doc """ | |
| get_series/1 function. | |
| Returns a Fibonacci series in a list. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def fact(n): | |
| if n == 1: | |
| return 1 | |
| else: | |
| return n * fact(n - 1) |