dir
├folder
│ ├code.c
│ └text.txt
├anotherfolder
│ └subfolder
│ └document.doc
├somefile.txt
└.config.conf
sudo apt-get -y install git && mkdir -p ~/bin/post_install && git clone https://github.com/mamiu/ubuntu-post-install.git ~/bin/post_install && /bin/bash ~/bin/post_install/post-install.sh |
#!/usr/bin/env python | |
import os | |
import time | |
import subprocess | |
time.sleep(0.1) | |
rows, cols = subprocess.check_output(["stty", "size"]).split() | |
rows = int(rows) | |
cols = int(cols) |
dir
├folder
│ ├code.c
│ └text.txt
├anotherfolder
│ └subfolder
│ └document.doc
├somefile.txt
└.config.conf
sudo apt-get update && sudo apt-get -y upgrade && sudo apt-get autoremove && sudo apt-get update | |
sudo apt-get -y install git ruby rubygems-integration | |
sudo gem install homesick | |
homesick clone mamiu/dotfiles | |
bash ~/.homesick/repos/dotfiles/install.sh |
#!/bin/bash | |
find . -type f -name '*' -print0 | while IFS= read -r -d '' file | |
do | |
name=$(basename "$file") | |
path=$(dirname "$file") | |
full_path=$(readlink -f "$file") | |
extension=${name##*.} | |
size_in_bytes=$(stat -c%s "$file") | |
size_human_readable=$(ls -lh "$file" | awk -F' ' '{print $5}') |
#!/bin/bash | |
find . -type f -name '*' -print0 | while IFS= read -r -d '' file | |
do | |
name=$(basename "$file") | |
path=$(dirname "$file") | |
# full_path=$(readlink -f "$file") # This only works on Linux | |
full_path=$(echo "$PWD/${file#./}") | |
extension=${name##*.} | |
size_human_readable=$(ls -lh "$file" | awk -F' ' '{print $5}') |
var contactForm = function(){ | |
var submit = function(email, name, message, callback){ | |
validateForm(email, name, message, function(isValid){ | |
if(isValid){ | |
sendContent(email, name, message, function(succeeded){ | |
if(succeeded){ | |
showInfo(function(){ | |
callback("Message sent successfully"); | |
}); | |
} |
var contactForm = function(){ | |
EventEmitter.call(this); | |
var submit = function(email, name, message){ | |
this.emit("submitContactForm", email, name, message); | |
} | |
var validateForm = function(email, name, message){ | |
//check if all required fields are filled and the text is valid (no attacks) | |
this.emit("validated", email, name, message); |
# to use this script you need the latest fish version (2.1.x) | |
begin | |
########## USER CONFIG ########## | |
# enable or disable the different parts of promptline with yes or no | |
set show_only_left_prompt no | |
set show_hostname no | |
set show_virtual_env yes | |
set show_username yes | |
set show_current_working_directory yes | |
set show_git_branch yes |