Skip to content

Instantly share code, notes, and snippets.

Avatar

Corstiaan Corstiaan84

View GitHub Profile
View gist:0eba16d99c22b6378edd
<style>.email-octopus-form-wrapper h2{font-size:20px;margin:0 0 25px 0;}.email-octopus-form-row{margin-bottom:15px;}.email-octopus-form-row label{display:block;}.email-octopus-form-row input{width:400px;padding:8px;height:32px;border:1px solid #ccc;}.email-octopus-form-row-subscribe{margin-top:20px;}.email-octopus-form-row-subscribe button{background-color:#e0e0e0;padding:6px 12px;border:0;font-weight:bold;}.email-octopus-form-row-hp{position:absolute;left:-5000px;}.email-octopus-error-message{color:#e74c3c;}.email-octopus-referral{margin-top:20px;}</style>
<div class="email-octopus-form-wrapper">
<h2 class="email-octopus-heading" style="display: none;">Subscribe to Fluxmatix NL</h2>
<p class="email-octopus-success-message"></p>
<p class="email-octopus-error-message"></p>
<form method="post" action="https://emailoctopus.com/lists/34cea4d0-9b4d-11e5-a76d-0a4287b2e8c5/members/external-add" class="email-octopus-form">
<div class="email-octopus-form-row">
<label>Email address (required)</label>
<input type="email
View gist:425788ba32573384ed3e
Counting objects: 4, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (4/4), done.
Writing objects: 100% (4/4), 402 bytes | 0 bytes/s, done.
Total 4 (delta 3), reused 0 (delta 0)
remote: /home/dokku/.basher/bash: main: command not found
remote: Access denied
To dokku@dokku.com:appname
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'dokku@dokku.com:appname'
View gist:a2613abdbb8cc1899e35
total 92K
drwxr-xr-x 8 dokku dokku 4.0K Jan 24 07:57 .
drwxr-xr-x 10 dokku dokku 4.0K Jan 18 17:07 ..
drwxrwxr-x 2 dokku dokku 4.0K Nov 30 07:10 branches
-rw-rw-r-- 1 dokku dokku 0 Nov 30 07:19 .build.lock
drwxrwxr-x 3 21792 21792 4.0K Nov 30 07:20 cache
-rw-rw-r-- 1 dokku dokku 66 Nov 30 07:10 config
-rw-rw-r-- 1 dokku dokku 65 Jan 24 07:57 CONTAINER.web.1
-rw-rw-r-- 1 dokku dokku 73 Nov 30 07:10 description
-rw-r--r-- 1 dokku dokku 55 Nov 30 09:14 DOCKER_OPTIONS_BUILD
View gist:a30252eb9c5556c7f4be
command="FINGERPRINT=62:48:50:ba:5a:b1:4d:da:73:39:86:f2:2a:19:35:17 NAME=MacBookPro-Corstiaan `cat /home/dokku/.sshcommand` $SSH_ORIGINAL_COMMAND",no-agent-forwarding,no-user-rc,no-X11-forwarding,no-port-forwarding ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDOFWazEmMcODzEjF4J0LCAlABmdl+BtmjYs7cc+p9C5LHJ1OvhDHWdTZ3VXSP4QDSkUIFT0U7G5oCFqlRb3WtSiKVVh5qEB0BL7yC6JxblCRyRrATkVxaXDH/yZn+EzCnPWSQN43X4aUIWOTLmwFxlmKL2MX2/DaiaXHVLXXHtfXAped4bEV37PaQhuTbYPeQ7xw53qOdzedFhfbhRIbjUsQc/bpREVFg9X4L/ehliM41NF9vw+5Oqzm6BWI9hMUGOnCs2AA1vgKQ/rysDrMfmOUPGWuFahxvcvavVq0tso0q9+HNt/bkc0hAdoJj6b/cdryMtjc05cN704kR4Oy2J corstiaanhesselink@MBPvanCorstiaan.home
=============
- `uname -a`:
Linux dokku-test 3.13.0-57-generic #95-Ubuntu SMP Fri Jun 19 09:28:15 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
- `free -m`:
total used free shared buffers cached
Mem: 994 911 82 29 138 286
View controller.cs
public partial class DomLoadedExampleController : UIViewController
{
private UIWebView _webView;
private event EventHandler DomReady;
public override void ViewDidLoad ()
{
base.ViewDidLoad ();
//initialze UIWebView instance
View index.html
<html>
<body>
<script src="http://code.jquery.com/jquery-2.1.3.min.js"></script>
<script type="text/javascript">
$(function() {
document.location.href = '//action?name=domReady';
});
</script>
View gist:c70324d47c9fb129a512
streaming twitter client
/Users/user/.rvm/gems/ruby-2.2.1/gems/twitter-5.14.0/lib/twitter/rest/response/raise_error.rb:15:in `on_complete': Could not authenticate you. (Twitter::Error::Unauthorized)
from /Users/user/.rvm/gems/ruby-2.2.1/gems/faraday-0.9.2/lib/faraday/response.rb:9:in `block in call'
from /Users/user/.rvm/gems/ruby-2.2.1/gems/faraday-0.9.2/lib/faraday/response.rb:57:in `on_complete'
from /Users/user/.rvm/gems/ruby-2.2.1/gems/faraday-0.9.2/lib/faraday/response.rb:8:in `call'
from /Users/user/.rvm/gems/ruby-2.2.1/gems/faraday-0.9.2/lib/faraday/request/url_encoded.rb:15:in `call'
from /Users/user/.rvm/gems/ruby-2.2.1/gems/faraday-0.9.2/lib/faraday/request/multipart.rb:14:in `call'
from /Users/user/.rvm/gems/ruby-2.2.1/gems/twitter-5.14.0/lib/twitter/rest/request/multipart_with_file.rb:17:in `call'
from /Users/user/.rvm/gems/ruby-2.2.1/gems/faraday-0.9.2/lib/faraday/rack_builder.rb:139:in `build_response'
from /Users/user/.rvm/gems/ruby-2.2.1/gems/faraday-0.9.2/lib/faraday/connection.rb:37
View gist:df0ae20c7cbaf268f23a
Description of problem:
When adding a DOKKU_SCALE file to the root of my rails app the deploy fails as it cannot kill running containers
Output of the following commands
- `uname -a`:
Linux dokku-test 3.13.0-57-generic #95-Ubuntu SMP Fri Jun 19 09:28:15 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
- `docker version`:
Client:
View gist:ed67c470a81059b3bd73
+ parse_args git-receive-pack ''\''everseller'\'''
+ for arg in '"$@"'
+ case "$arg" in
+ for arg in '"$@"'
+ case "$arg" in
+ return 0
+ args=("$@")
+ [[ git-receive-pack =~ ^--.* ]]
+ has_tty
++ /usr/bin/tty
View gist:96336c8be29cdbde7c8f
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Text;
using System.Threading.Tasks;
using RestSharp;
namespace Fluxmatix.Authentication
{