Skip to content

Instantly share code, notes, and snippets.

View fwartner's full-sized avatar
😻
Doing cool stuff

Florian Wartner fwartner

😻
Doing cool stuff
View GitHub Profile
@fwartner
fwartner / web.php
Created December 13, 2017 09:56 — forked from mpociot/web.php
Using link buttons and deep linking for a seamless flow between your service and Slack with BotMan Studio
<?php
use BotMan\Drivers\Slack\SlackDriver;
Route::get('/', function () {
$task_id = uniqid();
// Send the message to the channel
$result = app('botman')->say('example', '#botman-tests', SlackDriver::class, [
'attachments' => json_encode([
@fwartner
fwartner / install.sh
Created December 15, 2017 09:26
install-homstead
#!/usr/bin/env bash
vagrant box add laravel/homestead
cd ~
git clone https://github.com/laravel/homestead.git Homestead
cd Homestead
git checkout v7.0.1
bash init.sh
@fwartner
fwartner / Brewfile
Created December 19, 2017 21:50
My personal Brewfile
tap "eddieantonio/eddieantonio"
tap "homebrew/dupes"
tap "homebrew/core"
tap "homebrew/bundle"
tap "homebrew/services"
tap "caskroom/fonts"
tap "caskroom/versions"
tap "caskroom/cask"
cask "java"
cask "xquartz"
/**
* @param $amount
* @param $token
* @param $destinationAccountId
* @param $applicationFee
* @return mixed|void
*/
public function charge($amount, $token, $destinationAccountId, $applicationFee)
{
try {
@fwartner
fwartner / haproxy-www.tf
Created September 19, 2018 13:20 — forked from mvasilenko/haproxy-www.tf
How To Use Terraform with DigitalOcean
resource "digitalocean_droplet" "haproxy-www" {
image = "ubuntu-14-04-x64"
name = "haproxy-www"
region = "nyc2"
size = "512mb"
private_networking = true
ssh_keys = [
"${var.ssh_fingerprint}"
]
connection {
<?php
return [
/*
|--------------------------------------------------------------------------
| Searchable Attributes
|--------------------------------------------------------------------------
|
| Limits the scope of a search to the attributes listed in this setting. Defining
{
"basics": {
"name": "Florian Wartner",
"label": "Backend-Engineer",
"picture": "https://avatars1.githubusercontent.com/u/6692500?s=460",
"email": "[email protected]",
"phone": "+49 (0) 17624200553",
"website": "https://wartner.io",
"summary": "A backend-developer from Lübeck, germany. Also a hobby-cook, blogger and hobbyist photograph.",
"location": {
@fwartner
fwartner / vscode-extensions
Created April 24, 2020 09:47
vscode-extensions
vscode-extensions
@fwartner
fwartner / Caddyfile
Created May 5, 2020 13:46
Codeteach.io Custom Domains
{
        on_demand_tls {
                ask https://caddy.codeteach.io/allowed-domain
        }
}
http {
        redir http:// https://{host}{uri}
}
[
{
"id": 1,
"name": "Schröder Bauzentrum",
"color": "#736d52",
"created_at": "2020-01-17 09:43:50",
"updated_at": "2020-01-17 09:43:50"
},
{
"id": 2,