Skip to content

Instantly share code, notes, and snippets.

View rafaelnp's full-sized avatar
🔬
NVLLIVS IN VERBA

Rafael do Nascimento Pereira rafaelnp

🔬
NVLLIVS IN VERBA
View GitHub Profile
@rafaelnp
rafaelnp / python-regex.py
Last active February 26, 2020 12:12
List of useful python regular expressions
# Python RegEx list
# Rafael do Nascimento Pereira <[email protected]>
#
#
# References
#
# 1 - Pytho RegEx (with examples)
# https://www.programiz.com/python-programming/regex
#
# 2 - online regex tester and debugger
@rafaelnp
rafaelnp / custom-policy.json
Created November 8, 2019 23:51
Disable chromium history systemwide
{
"SavingBrowserHistoryDisabled" : true
}
@rafaelnp
rafaelnp / vivado-path.sh
Created October 25, 2019 13:06
enviroment variables to add vivado to PATH
# variables for vivado tools
VERSION=2018.3
XILINX=$HOME/opt/Xilinx
VIVADO=$XILINX/Vivado/$VERSION/bin
SDK=$XILINX/SDK/$VERSION/bin
DOCNAV=$XILINX/DocNav
XIC=$XILINX/xic
export PATH="$PATH:$VIVADO:$SDK:$DOCNAV:$XIC"
@rafaelnp
rafaelnp / exec_ntimes.py
Created October 20, 2019 15:54
execute a desired commend N times, useful for quick tests and automations
#!/usr/bin/env python3
"""
execute a command N times
"""
import os
import time
x = 10
@rafaelnp
rafaelnp / vivado.gitignore
Created May 31, 2019 15:55
Xilinx Vivado .gitignore file
#########################################################################################################
## This is an example .gitignore file for Vivado, please treat it as an example as
## it might not be complete. In addition, XAPP 1165 should be followed.
## source: (1) https://www.xilinx.com/support/answers/61232.html
## (2) https://www.xilinx.com/Attachment/ar61232.txt
#########################################################################################################
#########
#Exclude all
#########
*
@rafaelnp
rafaelnp / cpufreqmon.sh
Created June 2, 2015 00:31
cpufreqmon.sh
#!/bin/sh
# show cpu fequency, updating every 2 seconds
watch -p -n 2 grep \"cpu MHz\" /proc/cpuinfo
@rafaelnp
rafaelnp / userconfig.vim
Last active August 29, 2015 14:22
Vim userconfig file
"
" Local user config file
"
" last update: 2015.06.01
"========
" General
"========
let g:usercolorscheme="harlequin"