Skip to content

Instantly share code, notes, and snippets.

@that0n3guy
that0n3guy / gist:9746673
Created March 24, 2014 18:53
openvpn no internet Nyr script
Mon Mar 24 13:43:38 2014 OpenVPN 2.3.2 x86_64-w64-mingw32 [SSL (OpenSSL)] [LZO] [PKCS11] [eurephia] [IPv6] built on Aug 22 2013
Enter Management Password:
Mon Mar 24 13:43:38 2014 MANAGEMENT: TCP Socket listening on [AF_INET]127.0.0.1:25340
Mon Mar 24 13:43:38 2014 Need hold release from management interface, waiting...
Mon Mar 24 13:43:38 2014 MANAGEMENT: Client connected from [AF_INET]127.0.0.1:25340
Mon Mar 24 13:43:38 2014 MANAGEMENT: CMD 'state on'
Mon Mar 24 13:43:38 2014 MANAGEMENT: CMD 'log all on'
Mon Mar 24 13:43:38 2014 MANAGEMENT: CMD 'hold off'
Mon Mar 24 13:43:38 2014 MANAGEMENT: CMD 'hold release'
Mon Mar 24 13:43:39 2014 Socket Buffers: R=[8192->8192] S=[8192->8192]
@that0n3guy
that0n3guy / gist:9747291
Created March 24, 2014 19:28
openvpn no internet Nyr script 2
C:\Users\polson>ipconfig /all
Windows IP Configuration
Host Name . . . . . . . . . . . . : polson-THINK
Primary Dns Suffix . . . . . . . : oca-domain.lan
Node Type . . . . . . . . . . . . : Hybrid
IP Routing Enabled. . . . . . . . : No
WINS Proxy Enabled. . . . . . . . : No
DNS Suffix Search List. . . . . . : oca-domain.lan
@that0n3guy
that0n3guy / gist:9754054
Created March 25, 2014 02:11
laptop openvpn log
Mon Mar 24 21:07:03 2014 OpenVPN 2.3.2 x86_64-w64-mingw32 [SSL (OpenSSL)] [LZO] [PKCS11] [eurephia] [IPv6] built on Aug 22 2013
Enter Management Password:
Mon Mar 24 21:07:03 2014 MANAGEMENT: TCP Socket listening on [AF_INET]127.0.0.1:25340
Mon Mar 24 21:07:03 2014 Need hold release from management interface, waiting...
Mon Mar 24 21:07:04 2014 MANAGEMENT: Client connected from [AF_INET]127.0.0.1:25340
Mon Mar 24 21:07:04 2014 MANAGEMENT: CMD 'state on'
Mon Mar 24 21:07:04 2014 MANAGEMENT: CMD 'log all on'
Mon Mar 24 21:07:04 2014 MANAGEMENT: CMD 'hold off'
Mon Mar 24 21:07:04 2014 MANAGEMENT: CMD 'hold release'
Mon Mar 24 21:07:04 2014 Socket Buffers: R=[8192->8192] S=[8192->8192]
@that0n3guy
that0n3guy / gist:e8c25b6146f5b5b896ed
Last active August 29, 2015 14:02
ocalist model and contact model
<?php namespace OCA\Blasts\Models;
use Model;
/**
* Contact Model
*/
class Contact extends Model
{
@that0n3guy
that0n3guy / gist:7479972eb4160f9eaf9e
Created June 2, 2014 19:50
ocalist and contact form yaml
# ===================================
# Form Field Definitions for Contact
# ===================================
fields:
firstname:
label: First Name
lastname:
label: First Name
name:
@that0n3guy
that0n3guy / gist:1dc690374767dceba3cb
Created June 2, 2014 19:52
contacts and lists update (migration) files
<?php namespace OCA\Blasts\Updates;
use Schema;
use October\Rain\Database\Updates\Migration;
class CreateContactsTable extends Migration
{
public function up()
{
@that0n3guy
that0n3guy / gist:151fc54f7e0db8893ab7
Last active August 29, 2015 14:05
bauhaus issues for #21
//----------------- error
Symfony\Component\Debug\Exception\FatalErrorException thrown with message "Class 'diquoterequests' not found"
Stacktrace:
#1 Symfony\Component\Debug\Exception\FatalErrorException in C:\xamppPHP5.4\htdocs\diqc-laravel\vendor\krafthaus\bauhaus\src\KraftHaus\Bauhaus\Field\HasManyField.php:36
#0 Illuminate\Exception\Handler:handleShutdown in <#unknown>:0
(copied from error)
Symfony \ Component \ Debug \ Exception \ FatalErrorException (E_ERROR)
Class 'diquoterequests' not found
@that0n3guy
that0n3guy / gist:e392d763df4b21c04fd3
Created February 27, 2015 18:04
dokku build with variables
#!/bin/bash
DOCKERFILE="/home/ubuntu/dockerfiletest/Dockerfile"
ENVFILE='/home/dokku/oca/ENV'
env_list='ENV'
# itterate through ENV file to make a single line for use in Dockerfile
while read line; do
# Remove the 'export ' at the beginning of each line
@that0n3guy
that0n3guy / console.php
Created September 29, 2016 18:15
x2crm from 5.0.4
<?php
// this file is in:
// custom/protected/config/console.php
// This file is to contain custom modifications to the $config array returned by
// protected/config/main.php via protected/config/console.php to construct the
// console application.
//Just use the web file... no need to have a different config for console at this point.
require('web.php');
unset($config['controllerMap']); // Fix weird error when running console commands. Some where proConfig.php is getting included.
@that0n3guy
that0n3guy / main.php
Created September 29, 2016 18:21
x2crm 5.0.4 main.php config file with rollbar, Dotenv, and composer autoload
<?php
// This file is to contain custom modifications to the $config array returned by
// protected/config/main.php via protected/config/web.php to construct the web
// application.
// this file is custom/protected/config/web.php
// this is for php composer integration
require_once dirname(__FILE__)."/../../../vendor/autoload.php";
// Use this to automagically load our .env file into the env for development environments