Skip to content

Instantly share code, notes, and snippets.

@nathansamson
nathansamson / main.rs
Created August 10, 2019 13:51
Basic form handing in Rocket
#![feature(proc_macro_hygiene, decl_macro)]
#[macro_use] extern crate rocket;
use rocket::request::{Form, FromFormValue};
use rocket::http::RawStr;
use rocket_contrib::serve::StaticFiles;
use rocket_contrib::templates::Template;
use serde::Serialize;
@nathansamson
nathansamson / main.dart
Last active July 21, 2018 21:49
BottomNavigationBar issue
import 'dart:async';
import 'package:flutter/material.dart';
void main() => runApp(new MyApp());
typedef void ThemeChangeCallback(ThemeData theme);
class MyApp extends StatefulWidget {
@override
# This file contains the fastlane.tools configuration
# You can find the documentation at https://docs.fastlane.tools
#
# For a list of all available actions, check out
#
# https://docs.fastlane.tools/actions
#
# For a list of all available plugins, check out
#
# https://docs.fastlane.tools/plugins/available-plugins
begin
require "bundler/inline"
rescue LoadError => e
$stderr.puts "Bundler version 1.10 or later is required. Please update your Bundler"
raise e
end
gemfile(true) do
source "https://rubygems.org"
# Activate the gem you are reporting the issue against.
begin
require 'bundler/inline'
rescue LoadError => e
$stderr.puts 'Bundler version 1.10 or later is required. Please update your Bundler'
raise e
end
gemfile(true) do
source 'https://rubygems.org'
# Activate the gem you are reporting the issue against.
begin
require 'bundler/inline'
rescue LoadError => e
$stderr.puts 'Bundler version 1.10 or later is required. Please update your Bundler'
raise e
end
gemfile(true) do
source 'https://rubygems.org'
gem 'rails', github: 'rails/rails'
cat << EOF > "$CERT_PATH/$(basename $etcd_path).cert"
-----BEGIN CERTIFICATE-----
MIIFTzCCBDegAwIBAgIRANJNHV5VKfWUAwkGtZV5Nf4wDQYJKoZIhvcNAQELBQAw
...
cat << EOF > "$KEY_PATH/$(basename $etcd_path).key"
-----BEGIN PRIVATE KEY-----
MIIEvgIBADANBgkqhkiG9w0BAQEFAASCBKgwggSkAgEAAoIBAQDhvvHOREjOUrGJ
2014-02-05 03:41:32 [90] [DEBUG] POST /api/apps
INFO myjettyapp: Config myjettyapp-v1 updated
INFO myjettyapp: Build myjettyapp- created
INFO myjettyapp: Release myjettyapp-v1 created
2014-02-05 03:42:30 [91] [DEBUG] POST /api/hooks/push
2014-02-05 03:47:03 [91] [DEBUG] POST /api/hooks/build
INFO myjettyapp: Build myjettyapp-e420c8b created
INFO myjettyapp: Release myjettyapp-v2 created
ERROR Internal Server Error: /api/hooks/build
Traceback (most recent call last):
Accepted publickey for git from 192.168.61.1 port 39506 ssh2
2014/02/05 09:39:01 POST /v1.8/containers/create
[/var/lib/docker|804c7eba] +job create()
[/var/lib/docker|804c7eba] -job create() = OK (0)
2014/02/05 09:39:01 POST /v1.8/containers/f5bb9199942d7ecc98df8ad76261b11fdbb7da99935eef7ae6a1b4b73750a5d3/attach?stdin=1&stream=1
2014/02/05 09:39:01 POST /v1.8/containers/f5bb9199942d7ecc98df8ad76261b11fdbb7da99935eef7ae6a1b4b73750a5d3/start
[/var/lib/docker|804c7eba] +job start(f5bb9199942d7ecc98df8ad76261b11fdbb7da99935eef7ae6a1b4b73750a5d3)
[/var/lib/docker|804c7eba] -job start(f5bb9199942d7ecc98df8ad76261b11fdbb7da99935eef7ae6a1b4b73750a5d3) = OK (0)
2014/02/05 09:39:01 GET /v1.8/containers/f5bb9199942d7ecc98df8ad76261b11fdbb7da99935eef7ae6a1b4b73750a5d3/json
2014/02/05 09:39:01 POST /v1.8/containers/f5bb9199942d7ecc98df8ad76261b11fdbb7da99935eef7ae6a1b4b73750a5d3/attach?stderr=1&stdin=1&stdout=1&stream=1
[nathan@omega example-php]$ git push deis master
+ GITUSER=git
+ GITHOME=/home/git
++ which /usr/local/bin/gitreceive
+ SELF=/usr/local/bin/gitreceive
+ case "$1" in
+ export RECEIVE_USER=dev
+ RECEIVE_USER=dev
+ export RECEIVE_FINGERPRINT=f5:4d:10:e1:1e:29:56:00:a7:3d:80:75:f4:f6:ad:14
+ RECEIVE_FINGERPRINT=f5:4d:10:e1:1e:29:56:00:a7:3d:80:75:f4:f6:ad:14