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 / del_cluster.sh
Last active July 23, 2023 00:24 — forked from ianchen06/del_cluster.sh
delete proxmox cluster
# source: https://forum.proxmox.com/threads/removing-deleting-a-created-cluster.18887/
#/bin/sh
# stop service
systemctl stop pvestatd.service
systemctl stop pvedaemon.service
systemctl stop pve-cluster.service
systemctl stop corosync
systemctl stop pve-cluster
# edit through sqlite, check, delete, verify
@fwartner
fwartner / hosts
Created December 13, 2022 22:39 — forked from Aidan647/hosts
personal block list for pi-hole
0.0.0.0 zen.yandex.ru
0.0.0.0 www.yandex.ru
0.0.0.0 yandex.ru
0.0.0.0 yandex.org
0.0.0.0 yandex.net
0.0.0.0 yandex.net.ru
0.0.0.0 yandex.com.ru
0.0.0.0 yandex.ua
0.0.0.0 yandex.com.ua
0.0.0.0 yandex.by
@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 {
@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([

##Rotating Pricing Table for Laravel Spark

Can be placed anywhere, try it out on welcome.blade.php


Laravel Spark Pricing Table ###If you're using team plans just swap out $sparkPlans = Spark::plans(); with $sparkPlans = Spark::teamPlans();


@fwartner
fwartner / widget-bootstrap.html
Created October 29, 2015 13:20 — forked from alfg/widget-bootstrap.html
Bootstrap files for creating embedded widgets for your site
<html>
<head>
<title>Sample Widget Page</title>
</head>
<body>
<h1>Sample Widget Page</h1>
<script type="text/javascript" src="http://localhost:81/widget-bootstrap.js"></script>
<div id="widget-container"></div>
<?php
/**
* This exemple shows how to parse base64 encoded images (submitted using Summernote), save them locally
* and replace the 'src' attribute in the submited HTML content
*
**/
use Intervention\Image\ImageManagerStatic as Image;
class PostController {
public function edit(){
#!/bin/bash
apt-get update
apt-get -y dist-upgrade
# Install dokku
# Has to be ran twice for success, not sure why
wget -qO- https://raw.github.com/progrium/dokku/v0.2.3/bootstrap.sh | sudo DOKKU_TAG=v0.2.3 bash
wget -qO- https://raw.github.com/progrium/dokku/v0.2.3/bootstrap.sh | sudo DOKKU_TAG=v0.2.3 bash
<?php if (!defined('BASEPATH')) exit('No direct script access allowed');
if (!function_exists('include_css')) {
function include_css($uri = assets_url($data)) {
return "<link rel='stylesheet' type='text/css' href='" . $uri . "'>";
}
}