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 | |
# Fix Citrix error | |
# https://unix.stackexchange.com/questions/84175/create-a-symbolic-link-relative-to-the-current-directory | |
sudo mv /opt/Citrix/ICAClient/keystore/cacerts /tmp | |
sudo ln -s /etc/ssl/certs /opt/Citrix/ICAClient/keystore/cacerts |
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
au FileType xml setlocal equalprg=xmllint\ --format\ --recover\ -\ 2>/dev/null |
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 python3 | |
# -*- coding: utf-8 -*- | |
''' | |
Requires: Pandas | |
Cardapio do dia da Unicamp | |
@author: gomesar | |
2018 | |
''' |
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 | |
# Find 10 largest files in directory | |
# find /path/to/search/ -type f -printf '%s %p\n'| sort -nr | head -10 | |
find "${1}" -type f -printf '%s %p\n'| sort -nr | head -10 |
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 | |
# Scritp to list tmux windows and respectives layouts inputs to tmuxinator | |
# shows windows number, name and TmuxinatorLayout | |
tmux list-windows | sed -r 's/([0-9]+: .*) \([0-9]+ panes\).*layout (.*)] @.*/\1:\n layout: \2/g' | |
# tmux: https://github.com/tmux/tmux/wiki | |
# tmuxinator: https://github.com/tmuxinator/tmuxinator | |
# quick profile config guide: https://fabianfranke.de/2013/11/19/use-tmuxinator-to-recreate-tmux-panes-and-windows/ |
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 | |
# If you get permission denied error while using gem 'install tmuxinator' | |
# install tmuxinator in user environment | |
sudo -E gem install tmuxinator | |
# The -E part keeps your users environment intact. | |
# Else it would install it for the user root | |
# Thread: https://github.com/tmuxinator/tmuxinator/issues/27 | |
# Credits: https://github.com/Chinggis6 |