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
| #!/usr/bin/ansible-playbook | |
| - name: resolvconf | |
| hosts: localhost | |
| any_errors_fatal: false | |
| #become: true | |
| gather_facts: false | |
| vars: | |
| dns_domain: False | |
| dns_rpi_server: False | |
| restart_wifi: False |
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
| #!/bin/sh | |
| # What is this | |
| # - script to easily set up wifi connection on terminal, using wpa_cli | |
| # | |
| # Installation | |
| # | |
| # - chmod +x wifi | |
| # - sudo mv wifi /usr/local/bin/ | |
| # | |
| # |
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
| #!/bin/sh | |
| # Should be added to local commands with: sudo mv `pwd`/ipdetailslist /usr/local/bin | |
| # sh ipdetailslist *ip list* | |
| # First argument is a file in the same path that has ips line by line | |
| # | |
| # Example: | |
| # rafael@computer: ~/path-to-ip-file/: ipdetailslist list_of_ips.txt |
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
| #!/bin/sh | |
| # 10 Jan 2016 | |
| # Rafael Galrito | |
| # | |
| # This is my (way more than) zsh and config installation file | |
| # requires sudo permissions | |
| # run with sh zsh_installer.sh | |
| # | |
| # @version 0.3 | |
| # --- |
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
| makezip() | |
| { | |
| zip -r "${1%%/}.zip" "$1"; | |
| } | |
| maketar() | |
| { | |
| tar cvzf "${1%%/}.tar.gz" "${1%%/}/"; | |
| } | |
| extract() | |
| { |
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
| # Path to your oh-my-zsh installation. | |
| # export TERM="xterm-256color" | |
| export ZSH=/home/rafael/.oh-my-zsh | |
| # Theme choosen from ~/.oh-my-zsh/themes/ | |
| ZSH_THEME="blinks" | |
| setopt menu_complete | |
| # Uncomment the following line to disable auto-setting terminal title. |
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
| ### BEGIN INIT INFO | |
| # Provides: automount | |
| # Required-Start: $remote_fs $syslog | |
| # Required-Stop: $remote_fs $syslog | |
| # Default-Start: 2 3 4 5 | |
| # Default-Stop: 0 1 6 | |
| # Short-Description: Start daemon at boot time | |
| # Description: Enable service provided by daemon. | |
| ### END INIT INFO |
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
| # shell script to connect to rasberrypi | |
| # client requires xtightvncviewer for GUI | |
| # One argument: ssh, gui or stop | |
| # ssh starts a command line on rpi | |
| # gui starts a vnc server and connects to it | |
| # stop stops vnc server | |
| # raspberry pi requires tightvncserver |