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
| import os | |
| import json | |
| struct Signature { | |
| name string | |
| usage string | |
| extra_usage string | |
| required_positional []string | |
| optional_positional []string | |
| named []string |
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
| import net | |
| import flag | |
| import os | |
| enum Nagios { | |
| ok | |
| warning | |
| critical | |
| unknown | |
| } |
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
| [Core] | |
| Name = Pushover | |
| Module = err-pushover | |
| [Python] | |
| Version=2+ | |
| [Documentation] | |
| Description = Sends commands to mobile phones using the pushover.net API |
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
| // https://blogs.oracle.com/janp/entry/how_the_scp_protocol_works | |
| package main | |
| import ( | |
| "fmt" | |
| "golang.org/x/crypto/ssh" | |
| ) | |
| const privateKey = `content of id_rsa` |
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
| # use ctrl+a instead of ctrl+b | |
| unbind C-b | |
| set -g prefix C-a | |
| bind a send-prefix | |
| # allow tmux to be reloaded | |
| unbind r | |
| bind r source-file ~/.tmux.conf | |
| # set colours |
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
| (setq backup-directory-alist `(("." . "~/.saves"))) | |
| (require 'package) | |
| (add-to-list 'package-archives | |
| '("melpa" . "http://melpa.milkbox.net/packages/") t) | |
| (menu-bar-mode -1) | |
| (load-theme 'wombat) |
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
| ## Resolves known issue with Yubikey KSM and PHP >= 5.4 | |
| ## https://github.com/Yubico/yubikey-ksm/issues/1 | |
| cd /usr/share/ykksm | |
| curl -O https://raw.githubusercontent.com/Yubico/yubikey-ksm/master/ykksm-utils.php |
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
| include_path = "/etc/ykksm:/etc/ykval:/usr/share/ykksm:/usr/share/ykval" |
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
| <?php | |
| $baseParams = array (); | |
| $baseParams['__YKVAL_DB_DSN__'] = "mysql:dbname=ykval;host=localhost"; | |
| $baseParams['__YKVAL_DB_USER__'] = 'ykval_verifier'; | |
| $baseParams['__YKVAL_DB_PW__'] = 'secret'; | |
| $baseParams['__YKVAL_DB_OPTIONS__'] = array(); | |
| function otp2ksmurls ($otp, $client) { | |
| return array("http://localhost/wsapi/decrypt?otp=$otp"); | |
| } |
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
| ## /etc/httpd/conf.d/yubikey.conf | |
| <VirtualHost *:80> | |
| DocumentRoot /var/www/html/ | |
| ServerName yubikey.cygnetix.io | |
| ErrorLog logs/yubikey.cygnetix.io-error_log | |
| CustomLog logs/yubikey.cygnetix.io-access_log common | |
| RewriteEngine on | |
| RewriteRule ^(.*)$ $1.php [L] |
NewerOlder