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 / game.sh
Last active April 19, 2024 02:23
# Gaming environment (Linux Ubuntu)
#!/bin/bash
#
# Script for setup gaming environment on linux
#
DIR=/tmp
cd "${DIR}" || exit -1
# GX Drivers
# sudo add-apt-repository ppa:graphics-drivers/ppa # nvidia
@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 / 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 / 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 / emacsd.service
Last active September 23, 2020 18:13
~/.config/systemd/user/emacsd.service (run $systemctl --user enable emacsd && systemctl --user start emacsd && systemctl --user status emacsd.service) - it runs emacs as server
[Unit]
Description=Emacs: the extensible, self-documenting text editor
Documentation=man:emacs(1) info:Emacs
[Service]
Type=forking
ExecStart=/usr/bin/emacs --daemon
ExecStop=/usr/bin/emacsclient --eval "(progn (setq kill-emacs-hook nil) (kill-emacs))"
Restart=on-failure
@fredcamps
fredcamps / config
Created August 12, 2017 15:12
~/.ssh/config
Host bitbucket.org
IdentityFile ~/.ssh/id_rsa
@fredcamps
fredcamps / .Xresources
Last active April 19, 2024 04:31
my dot files *main*.... run 'tic -x -o .terminfo ~/.xterm-24bit-terminfo.src' for load 24bit terminal colors
!font settings
xscreensaver.Dialog.headingFont: -*-dina-bold-r-*-*-12-*-*-*-*-*-*-*
xscreensaver.Dialog.bodyFont: -*-dina-medium-r-*-*-12-*-*-*-*-*-*-*
xscreensaver.Dialog.labelFont: -*-dina-medium-r-*-*-12-*-*-*-*-*-*-*
xscreensaver.Dialog.unameFont: -*-dina-medium-r-*-*-12-*-*-*-*-*-*-*
xscreensaver.Dialog.buttonFont: -*-dina-bold-r-*-*-12-*-*-*-*-*-*-*
xscreensaver.Dialog.dateFont: -*-dina-medium-r-*-*-12-*-*-*-*-*-*-*
xscreensaver.passwd.passwdFont: -*-dina-bold-r-*-*-12-*-*-*-*-*-*-*
!general dialog box (affects main hostname, username, password text)
@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 / 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 / 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