Skip to content

Instantly share code, notes, and snippets.

View mstaack's full-sized avatar
🎯
Focusing

Max mstaack

🎯
Focusing
View GitHub Profile
@mstaack
mstaack / gist:7adfbd09df70b65017547d80d7b38f54
Created August 11, 2018 18:37 — forked from krisnod/gist:56ff894f400cce7c742fb11fb2fde9cf
RancherOS on Hetzner using software RAID (RAID 1)
Install:
----------
* Activate Hetzner Rescue System (Debian)
* Connect to Hetzner Rescue System using SSH and live boot RancherOS
(thanks goes to William Fleurant for showing how this can be done: https://github.com/wfleurant/boot-rancheros-hetzner/)
* apt-get update
* apt-get install kexec-tools aria2
  1. ownload mojave installer -> app store
  2. formatting usb: diskutil partitionDisk /dev/disk1 2 MBR FAT32 "CLOVER EFI" 200Mi HFS+J "install_osx" R

install https://bitbucket.org/RehabMan/clover/downloads/Clover_v2.4k_r4701.RM-4963.ca6cca7c.zip to CLOVER Partition

For Clover UEFI, run the Clover Installer package:

  • if using MBR, select the target of the install to "CLOVER EFI" using "Change Install Location"
  • select "Customize" (the default is a legacy install -- we need to change it)
@mstaack
mstaack / BinaryFileResponse.php
Created November 17, 2018 22:30 — forked from stealth35/BinaryFileResponse.php
BinaryFileResponse with X-SendFile and Date Range
<?php
/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
@mstaack
mstaack / .gitignore
Created November 27, 2018 22:50 — forked from jbergler/.gitignore
Acestream on Mac
.vagrant
@mstaack
mstaack / proxvm.sh
Created December 14, 2018 12:53 — forked from huksley/proxvm.sh
Get list of all virtual machines on proxmox 4+, both LXC and QEMU and detect IP addresses
#!/bin/bash
# proxvm
# Output in specifed format (default csv) all virtual machines on proxmox 4+
SERVER=localhost
USERNAME=apiread@pve
PASSWORD=123456
FORMAT=csv
while [[ $# > 0 ]]; do
key="$1"
@mstaack
mstaack / Adapter.php
Created January 24, 2019 17:19
flysystem encryption adapter
<?php
namespace MStaack\EncryptedAdapter;
use League\Flysystem\AdapterDecorator\DecoratorTrait;
use League\Flysystem\AdapterInterface;
use League\Flysystem\Config;
use phpseclib\Crypt\AES;
/**
* Class EncryptionDecorator
quasar git:(dev) yarn build
yarn run v1.13.0
$ node build/script.build.js
💥 Cleaned build artifacts.
📦 Building Quasar v1.0.0-beta.2... [multi-threaded]
[js] dist/babel-transforms/imports.js 7.98kb
[json] dist/api/QBadge.json 1.21kb
@mstaack
mstaack / packages
Created February 27, 2019 08:57
composer packages
atlas/pdo 1.1.0 Provides a PDO instance decorator with convenience methods, and a connection manager.
atlas/query 1.2.0 Object-oriented query builders for MySQL, Postgres, SQLite, and SQLServer.
christianbarkowsky/rel-canonical 3.3.5 Avoiding Duplicate Content. Extension for Contao Open Source CMS
clue/stream-filter v1.4.0 A simple and modern approach to stream filtering in PHP
codefog/contao-haste 4.21.2 haste extension for Contao Open Source CMS
codefog/contao-news_categories 3.0.15 News Categories bundle for Contao Open Source CMS
codefog/contao-widget_tree_picker dev-master 7755787 widget_tree_picker extension for Contao Open Source CMS
composer/ca-bundle 1.1.3 Lets you find a path to the system CA bundle, and includes a fallback to the Mozi
@mstaack
mstaack / UFW_ban_country.md
Created April 28, 2019 23:29 — forked from jasonruyle/UFW_ban_country.md
UFW to block countries
@mstaack
mstaack / index.html
Created July 10, 2019 17:58
Quasar Framework v1
<div id="q-app">
<div class="q-ma-md">
Fork and make your own!
Do NOT use self-closing tags here on Codepen.
</div>
<div class="q-ma-md">
<q-btn label="Notify" color="primary" @click="notify"></q-btn>
</div>