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
| """ Per-Filetype Scripts | |
| " NOTE: These define autocmds, so they should come before any other autocmds. | |
| " That way, a later autocmd can override the result of one defined here. | |
| filetype on " Enable filetype detection, | |
| filetype indent on " use filetype-specific indenting where available, | |
| filetype plugin on " also allow for filetype-specific plugins, | |
| syntax on " and turn on per-filetype syntax highlighting. | |
| set numberwidth=1 " using only 1 column (and 1 space) while possible |
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
| # ======= | |
| # GLOBALS | |
| # ======= | |
| if [[ "$(uname)" == "Darwin" ]]; then | |
| platform="Darwin" | |
| elif [[ "$(expr substr $(uname -s) 1 5)" == "Linux" ]]; then | |
| platform="Linux" | |
| else | |
| platform="POSIX" |
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
| @post("/handler") | |
| def gitdeploy(): | |
| signature = request.headers.get("X-Hub-Signature", None) | |
| if not signature: | |
| abort(400, "Invalid Request") | |
| event = request.headers.get("X-GitHub-Event", None) | |
| if event == "push": | |
| hashed = "sha1=" + hmac.new(GITHUB_WEBHOOK_SECRET, request.body.read(), hashlib.sha1).hexdigest() | |
| if signature == hashed: | |
| # Do Stuff |
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
| set-option -g status-right "#(/home/pi/status.sh) %H:%M %d-%b-%y" |
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
| #r "Newtonsoft.Json" | |
| using System.Text; | |
| using System.Net; | |
| using System.Linq; | |
| using System.Data.SqlClient; | |
| using System.Data; | |
| using System.Configuration; | |
| using System.Collections.Generic; | |
| using System.Collections; |
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
| # in /etc/systemd/system | |
| [Unit] | |
| Description=Bluetooth Agent | |
| [Service] | |
| ExecStart=/usr/bin/bt-agent -c NoInputNoOutput | |
| Type=simple | |
| [Install] | |
| WantedBy=multi-user.target |
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/bash -e | |
| if [ "$(uname -s)" != "Darwin" ] | |
| then | |
| echo "This script is for building a Debian x86_64 image to use on MacOS" | |
| exit 1 | |
| fi | |
| TEMP="$(mktemp -d build.XXXXX)" | |
| cp preseed.cfg $TEMP |
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
| server=/.iptvpoc.alu/.discovery.iptv.microsoft.com/.iptv.vodafone.pt/.iptvdiscovery/.ims.vodafone.pt/192.168.1.1 |
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
| export SOURCE?=rcarmo@home.lan:~/.config/ | |
| export TARGET?=home.lan | |
| export TAG_DATE=`date -u +"%Y%m%d"` | |
| .PHONY: snapshot init | |
| init: | |
| mkdir -p $(TARGET) | |
| git init |
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/bash | |
| # instant-rsyncd lets you quickly set up and start a simple, unprivileged rsync | |
| # daemon with a single module in the current directory. I've found it | |
| # invaluable for quick testing, and I use it when writing a list of commands | |
| # that people can paste into a terminal to reproduce a daemon-related bug. | |
| # Sysadmins deploying an rsync daemon for the first time may find it helpful as | |
| # a starting point. | |
| # | |
| # Usage: instant-rsyncd MODULE PORT RSYNCD-USERNAME [RSYNC-PATH] |