Skip to content

Instantly share code, notes, and snippets.

View iamacarpet's full-sized avatar

Samuel iamacarpet

View GitHub Profile
@iamacarpet
iamacarpet / SoapClientGuzzle.php
Created July 4, 2017 14:10
SoapClientGuzzle extends \SoapClient
<?php
namespace App;
use GuzzleHttp\Psr7;
use GuzzleHttp\Client;
use GuzzleHttp\Exception\ClientException;
use GuzzleHttp\Exception\RequestException;
class SoapClientGuzzle extends \SoapClient
@iamacarpet
iamacarpet / listen_default.go
Created July 4, 2017 13:39
GoLang Multicast Listen for SSDP (Solaris)
package main
import (
"golang.org/x/net/ipv4"
"net"
)
func main() {
e1000g0, err := net.InterfaceByName("aggr1")
if err != nil {
diff --git a/letsencrypt/plugins/webroot.py b/letsencrypt/plugins/webroot.py
index 42bfe31..d42c3a5 100644
--- a/letsencrypt/plugins/webroot.py
+++ b/letsencrypt/plugins/webroot.py
@@ -41,6 +41,7 @@ and reload your daemon.
import errno
import logging
import os
+import sys
@iamacarpet
iamacarpet / gist:6869643
Created October 7, 2013 15:13
FuelPHP Database Config Driver
<?php
namespace Fuel\Core;
/**
* JSON Config file parser
*/
class Config_Db extends \Config_File
{
protected $ext = '.db';
_____ ________
_/ ____\_ _ __ \_____ \
\ __\\ \/ \/ / ______ / ____/
| | \ / /_____/ / \
|__| \/\_/ \_______ \
\/
_____ ____
_/ ____\_ _ __ /_ |
\ __\\ \/ \/ / ______ | |
| | \ / /_____/ | |
|__| \/\_/ |___|
" Vim syntax file
" Language: YAML (YAML Ain't Markup Language) 1.2
" Maintainer: Nikolai Pavlov <zyx.vim@gmail.com>
" First author: Nikolai Weibull <now@bitwi.se>
" Latest Revision: 2010-10-08
if exists('b:current_syntax')
finish
endif