This file contains 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 python | |
import csv, sys,os | |
try: | |
file = open(sys.argv[1], "rt") | |
reader = csv.DictReader(file) | |
# Function que adiciona os usuairos no samba e define para mudar a senha no proximo login | |
def add_user(username,senha,email,sobrenome,nome,descr,departamento,empresa,user_ou): | |
os.system("/usr/bin/samba-tool user add %s \ |
This file contains 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
# Custom Configurations for atom powered by sync-settings |
This file contains 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
#__Alias do git__# | |
git config --global alias.co checkout | |
git config --global alias.lg 'log --all --graph --decorate --oneline --abbrev-commit' | |
git config --global alias.hist 'log --graph --pretty=format:"%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset" --abbrev-commit' | |
git config --global alias.cm commit | |
git config --global alias.ac '!git add -A && git commit' | |
git config --global alias.st 'status -sb' | |
git config --global alias.tags 'tag -l' | |
git config --global alias.branches 'branch -a' | |
git config --global alias.remotes 'remote -v' |
This file contains 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/bash | |
############################################################################## | |
# Install system packages # | |
############################################################################## | |
# if apt-get exists, probably it's a Linux | |
if which apt-get > /dev/null; then | |
# update & clean up |
This file contains 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
############################################################################### | |
# Source .profile # | |
############################################################################### | |
source ~/.profile | |
source ~/.colors | |
############################################################################### | |
# Third party packages settings and configuration # | |
############################################################################### |
This file contains 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
[user] | |
name = Fernando Alves | |
email = [email protected] | |
[color] | |
diff = auto | |
status = auto | |
branch = auto | |
ui = true |
This file contains 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
.DS_Store | |
.python-version | |
.ropeproject | |
*.swp | |
*.pyc | |
*.sublime-project | |
*.sublime-workspace | |
readme.html |
This file contains 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
############################################################################### | |
# General settings and configuration # | |
############################################################################### | |
export PATH="/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin" | |
#source ~/.env | |
############################################################################### | |
# Third party packages settings and configuration # | |
############################################################################### |
This file contains 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
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | |
" Set leader key & Python bin (neovim only) " | |
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | |
let mapleader="\<Space>" | |
if has('nvim') | |
let g:python_host_prog = '/home/fNxONE/.virtualenvs/neovim3/bin/python' | |
endif | |
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" |
This file contains 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
# If you come from bash you might have to change your $PATH. | |
# export PATH=$HOME/bin:/usr/local/bin:$PATH | |
# Path to your oh-my-zsh installation. | |
export ZSH=/home/fnx01lv3/.oh-my-zsh | |
# Set name of the theme to load. Optionally, if you set this to "random" | |
# it'll load a random theme each time that oh-my-zsh is loaded. | |
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes | |
ZSH_THEME="robbyrussell" |
OlderNewer