Skip to content

Instantly share code, notes, and snippets.

View fredcamps's full-sized avatar

Fred Campos fredcamps

  • myself
  • Ubatuba SP, Brazil
View GitHub Profile
@fredcamps
fredcamps / xorg.conf
Last active June 21, 2016 16:31
/etc/X11/xorg.conf Dual Heads Examples
Section "Monitor"
Identifier "DVI"
VendorName "DELL"
EndSection
Section "Monitor"
Identifier "VGA"
VendorName "DELL"
Option "RightOf" "DVI-0"
EndSection
@fredcamps
fredcamps / pylama.ini
Created December 16, 2016 21:01
My linter config
[pylama]
format = pycodestyle
linters = radon,pycodestyle,pydocstyle,pyflakes,pylint
ignore = D203,D212,D213,D404
skip = */.tox/*,*/.env/*
[pylama:pyflakes]
builtins = _
[pylama:pylint]
@fredcamps
fredcamps / config
Created August 12, 2017 15:12
~/.ssh/config
Host bitbucket.org
IdentityFile ~/.ssh/id_rsa
@fredcamps
fredcamps / emacs-xfce4-hotkeys
Created April 5, 2018 04:50
~/.local/bin/emacs-xfce4-hotkeys
#!/bin/bash
# ~/.local/bin/emacs-xfce4-hotkeys
#
#
OPTION=/Gtk/KeyThemeName
function run_command {
xfconf-query -c xsettings -p "${OPTION}" -s "$1"
}
@fredcamps
fredcamps / worker.py
Last active April 11, 2018 20:35
celery dinamic queue bootstrap
from celery import Celery
from kombu import Queue, Exchange
PREFIX = 'baz'
EXCHANGE = 'exchange'
def get_task_names():
return (
'%s.foo.bar' % PREFIX,
'celery',
@fredcamps
fredcamps / terminalrc
Last active March 19, 2019 21:49
~/.config/xfce4/terminal/terminalrc
[Configuration]
CommandLoginShell=TRUE
ShortcutsNoMenukey=TRUE
ShortcutsNoMnemonics=TRUE
BackgroundMode=TERMINAL_BACKGROUND_TRANSPARENT
BackgroundDarkness=1,000000
FontName=Ubuntu Mono 14
MiscAlwaysShowTabs=TRUE
MiscBell=FALSE
MiscBellUrgent=FALSE
@fredcamps
fredcamps / .profile_proxy
Last active May 9, 2019 14:47
Proxy dot config
# #######
# include these lines of code at your .profile file
# [ -f "${HOME}/.profile_proxy" ] && source "${HOME}/.profile_proxy"
#
# Configure cntlm proxy client (installation needed)
# run cntlm -H for generate password hash
# put these lines at /etc/cntlm.conf
# Username fred
# Domain someproxy.com
# Proxy 10.0.0.41:8080
@fredcamps
fredcamps / teamviewer
Last active October 9, 2019 15:11
Teamviewer docker container
xhost +local:docker && docker run --rm -it -e DISPLAY=$DISPLAY -e XAUTHORITY=$XAUTHORITY -v /etc/machine-id:/etc/machine-id:ro -v $HOME/.Xauthority:/root/.Xauthority:ro -v /tmp/.X11-unix:/tmp/.X11-unix:ro -v $HOME/teamviewer/config/:/opt/teamviewer/config/ -v $HOME/teamviewer/profile/:/opt/teamviewer/profile/ albertalvarezbruned/teamviewer:12
@fredcamps
fredcamps / poetry.fish
Created May 1, 2020 02:35
~/.config/fish/completions
function __fish_poetry_b6c543db761696cb_complete_no_subcommand
for i in (commandline -opc)
if contains -- $i about add build cache check config debug env export help init install lock new publish remove run search self shell show update version
return 1
end
end
return 0
end
# global options
@fredcamps
fredcamps / audio.sh
Last active May 2, 2020 03:35
# Office/Multimedia Production environment
#!/bin/bash
# gave permissions to user
sudo usermod -a -G audio "${USER}"
# add audio repositories
wget https://launchpad.net/~kxstudio-debian/+archive/kxstudio/+files/kxstudio-repos_10.0.3_all.deb
# low latency kernel
sudo apt-get install -y linux-lowlatency