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
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCx8n0vrVo6UbKcWt4fvpsks5sxRRwm5gbf/EybbuvF5Iy+QJs6ckC93f/ArGLMwA4tr4v6wauLb3ygsJ6LOESA9dGvk6+xRLcpHcWhbu+FUa9aAGbJkH7zbDk93U/gueXMRQKbEYjnzTBhkIV8MK7i1uoHfW0p5TvsP8JMslbMKxB7Ax583o4AuCwBzQnUp1c+5WCSv+GekIjIExje0wawnWuuls2ZSXrp30B4R9YU7SW9SCw/d/K6jL9bC5UWs3s1stfqjrZzJnJrfdWsMfq9ouLVrnjLOpR51/b/qgXsDiCPheQhY18PpXusOWJ0hopZxPQDmjrPylBVcKZtKfAR ssh-key-2023-05-29 |
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
ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEApNKj0rPNjw3ztgWqcbKuVtvLAm4Xren0xTejlonNhxuaXW9h+LMDh5S8vZE5YifbhFQC2HRCSP5GabvGPMTs3miUyxi0enCFbNPw9OAvN7BwnHhZ3CIP2k58A6/p7tepXiNkD7emUcaBmmrMl+PBvd+b540strLIvrAGJCaKAQZAWnl3tR9I3I3ZqZ2T+wlxHXJDTbXRDa1cZ4D9rYwvjVd3dpVJMMB8BV5uyf6d7SxMoyDoF5PWsrGF4jXN53+z5EJPajfetYVusFMR6tUHIQ4wiC8YAXSSVig9ulE3P+CAtVnuVHQuEm5zcmwF01fCD/ZgKruYgQJjjdMsGsks0Q== marcus@aniru |
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
# vim:ft=make:ts=8:sts=8:sw=8:noet:tw=80:nowrap:list | |
### | |
### Reference Makefile for Python stuff | |
### | |
### Mv: ferreira.mv[ at ]gmail.com | |
### 2019-07 | |
### | |
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
# List unique values in a DataFrame column | |
pd.unique(df.column_name.ravel()) | |
# Convert Series datatype to numeric, getting rid of any non-numeric values | |
df['col'] = df['col'].astype(str).convert_objects(convert_numeric=True) | |
# Grab DataFrame rows where column has certain values | |
valuelist = ['value1', 'value2', 'value3'] | |
df = df[df.column.isin(valuelist)] |
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
cat > /etc/skel/.bashrc <<'EOF' | |
# .bashrc | |
[ -f /etc/.env-verbose ] && echo "# Inside ~/.bashrc: [$0]" | |
# Source global definitions | |
if [ -f /etc/bashrc ] | |
then . /etc/bashrc | |
fi | |
# Uncomment the following line if you don't like systemctl's auto-paging feature: |
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
cat > /etc/vimrc <<'EOF' | |
syntax on | |
filetype indent plugin on | |
set nocompatible " Use Vim defaults (much better!) | |
set bs=indent,eol,start " allow backspacing over everything in insert mode | |
set viminfo='20,\"50 " read/write a .viminfo file, don't store more than 50 lines of registers | |
set history=50 " keep 50 lines of command line history | |
set fileencodings=utf-8,latin1 | |
" Only do this part when compiled with support for autocommands |
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
cat > /etc/profile.d/aliases.sh <<'EOF' | |
#!/bin/bash | |
# | |
# /etc/profile.d/aliases.sh | |
# | |
alias ls='ls -hAF --color=auto --time-style=long-iso' | |
alias ll='ls -l' | |
alias la='ls -a' | |
alias lr='ls -ltr' |
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
cat > /etc/profile.d/ps1.sh <<'EOF' | |
#!/bin/bash | |
# Ref: http://tldp.org/HOWTO/Bash-Prompt-HOWTO/x329.html | |
# Attribute codes: | |
# 00=none 01=bold 04=underscore 05=blink 07=reverse 08=concealed | |
# Text color codes: | |
# 30=black 31=red 32=green 33=yellow 34=blue 35=magenta 36=cyan 37=white | |
# Background color codes: |
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
cat > /etc/bashrc <<'EOF' | |
# /etc/bashrc | |
# System wide functions and aliases | |
# (environment variables goes in /etc/profile) | |
## | |
## [email protected]: | |
## | |
## /etc/bashrc does the following: |
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
cat > /etc/profile <<'EOF' | |
# /etc/profile | |
# System wide environment and startup programs, for login setup | |
# (look for functions and aliases in /etc/bashrc) | |
## | |
## [email protected]: | |
## | |
## /etc/profile does only the following: |
NewerOlder