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 | |
| # | |
| # /etc/rc.d/init.d/supervisord | |
| # supervisord This shell script takes care of starting and stopping | |
| # supervisord. | |
| # Tested with Centos 6.X and supervisord installed with pip. | |
| # | |
| # Author: Brian Bouterse bmbouter@gmail.com | |
| # Author: Haukur Kristinsson haukur@hauxi.is 2014 | |
| # |
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
| // Exercise 25: Loops and Functions | |
| /////////////////////////////////////// | |
| package main | |
| import ( | |
| "fmt" | |
| "math" | |
| ) |
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/ksh | |
| #################################################################################### | |
| # This script was created for Samskip, by Haukur Kristinsson <haukur@hauxi.is> 2014. | |
| # It purpose is to ease the task of cleaning after restarting the PKMS backend. | |
| # | |
| # If you have problems with it please contact Haukur. | |
| # | |
| # Revs: | |
| # 13 Oct 2014 - First Rev. | |
| # |
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
| <script type="text/javascript"> | |
| $(document).ready(function() { | |
| // Fix placeholder for stupid IE8 | |
| $('input, textarea').placeholder(); | |
| var agentStr = navigator.userAgent; | |
| var mode; | |
| var isCompatON = false; | |
| if (agentStr.indexOf("Trident/5.0") > -1) { | |
| if (agentStr.indexOf("MSIE 7.0") > -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
| # Install PostgreSQL 9.3 server from the PGDG repository | |
| class {'postgresql::globals': | |
| version => '9.3', | |
| manage_package_repo => true, | |
| encoding => 'UTF8', | |
| locale => 'it_IT.utf8', | |
| }-> | |
| class { 'postgresql::server': | |
| ensure => 'present', | |
| listen_addresses => '*', |
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
| input { | |
| syslog { | |
| type => "cisco-asa" | |
| port => "5561" | |
| } | |
| } | |
| filter { | |
| # Set tags for ASAs |
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
| class { 'nginx': } | |
| nginx::resource::vhost { "public.hauxi.is": | |
| ensure => present, | |
| proxy => 'http://localhost:3100' | |
| } |
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
| REQ.IP.SOURCEIP == 5.23.64.0 -netmask 255.255.224.0 | |
| REQ.IP.SOURCEIP == 31.15.112.0 -netmask 255.255.248.0 | |
| REQ.IP.SOURCEIP == 31.209.136.0 -netmask 255.255.248.0 | |
| REQ.IP.SOURCEIP == 31.209.144.0 -netmask 255.255.240.0 | |
| REQ.IP.SOURCEIP == 31.209.192.0 -netmask 255.255.192.0 | |
| REQ.IP.SOURCEIP == 37.152.64.0 -netmask 255.255.248.0 | |
| REQ.IP.SOURCEIP == 37.205.32.0 -netmask 255.255.248.0 | |
| REQ.IP.SOURCEIP == 37.235.49.0 -netmask 255.255.255.0 | |
| REQ.IP.SOURCEIP == 46.22.96.0 -netmask 255.255.240.0 | |
| REQ.IP.SOURCEIP == 46.28.152.0 -netmask 255.255.248.0 |
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 | |
| service nginx stop # or whatever your webserver is | |
| if ! /root/letsencrypt/letsencrypt-auto certonly --standalone --email haukur@hauxi.is -d farcore.farapp.io -d farcore-test.farapp.io > /var/log/letsencrypt/renew.log 2>&1 ; then | |
| echo Automated renewal failed: | |
| cat /var/log/letsencrypt/renew.log | |
| exit 1 | |
| fi | |
| service nginx start # or whatever your webserver is |
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
| angular.module('far.core.social', []) | |
| .factory('$facebook', function(LoopBackAuth, $rootScope, FARAuthService, $raven, $ionicLoading) { | |
| // This is the success callback from the login method | |
| var fbLoginSuccess = function(response) { | |
| if (!response.authResponse){ | |
| fbLoginError("Cannot find the authResponse"); | |
| return; | |
| } |
OlderNewer