- Create certificates
- Edit Docker options
- Restart Docker
- Copy client certificates from host
- (optional) Add remote endpoint in Portainer
Tested on a standard $5/mo DigitalOcean VPS running Ubuntu 16.04.
| CREATE proc [dbo].[sp_MSforeachtable] | |
| @command1 nvarchar(2000), @replacechar nchar(1) = N'?', @command2 nvarchar(2000) = null, | |
| @command3 nvarchar(2000) = null, @whereand nvarchar(2000) = null, | |
| @precommand nvarchar(2000) = null, @postcommand nvarchar(2000) = null | |
| AS | |
| declare @mscat nvarchar(12) | |
| select @mscat = ltrim(str(convert(int, 0x0002))) | |
| if (@precommand is not null) | |
| exec(@precommand) | 
| <?php | |
| /** | |
| * A helper file for Laravel 5, to provide autocomplete information to your IDE | |
| * Generated for Laravel 5.5.13 on 2017-09-28. | |
| * | |
| * @author Barry vd. Heuvel <[email protected]> | |
| * @see https://github.com/barryvdh/laravel-ide-helper | |
| */ | |
| namespace { | |
| exit("This file should not be included, only analyzed by your IDE"); | 
| ; The purpose of this script is to start Need for Speed: Underground 2 (NFSU2) from TexMod, after loading a | |
| ; texture replacement package (TPF). This script also sets CPU Affinity of NFSU2's SPEED2.EXE, because SPEED2.EXE | |
| ; is not happy with a multicore processor; it wants to stay on one core and one core only. | |
| #Include <Affinity_Set> | |
| ; Affinity_Set() is a function from affinity.ahk, which should be placed in | |
| ; a lib/ subdirectory (from where this script is located) | |
| ; My version was from https://github.com/dufferzafar/Autohotkey-Scripts/blob/master/lib/Affinity.ahk | |
| ; ===== TUNABLES ===== | 
| { | |
| "variables": [], | |
| "info": { | |
| "name": "ADFS Public", | |
| "_postman_id": "3d8a90ce-eb38-fedf-8bfe-b75578dd0810", | |
| "description": "Auth code flow.", | |
| "schema": "https://schema.getpostman.com/json/collection/v2.0.0/collection.json" | |
| }, | |
| "item": [ | |
| { | 
| #!/usr/bin/env bash | |
| git branch -r | grep -v '\->' | while read remote; do git branch --track "${remote#origin/}" "$remote"; done | |
| git fetch --all | |
| git pull --all | 
Tested on a standard $5/mo DigitalOcean VPS running Ubuntu 16.04.
| ##################### | |
| # | |
| # Use this with or without the .gitattributes snippet with this Gist | |
| # create a fixle.sh file, paste this in and run it. | |
| # Why do you want this ? Because Git will see diffs between files shared between Linux and Windows due to differences in line ending handling ( Windows uses CRLF and Unix LF) | |
| # This Gist normalizes handling by forcing everything to use Unix style. | |
| ##################### | |
| # Fix Line Endings - Force All Line Endings to LF and Not Windows Default CR or CRLF | 
| $userPath = $env:USERPROFILE | |
| $pathExclusions = New-Object System.Collections.ArrayList | |
| $processExclusions = New-Object System.Collections.ArrayList | |
| $pathExclusions.Add('C:\Windows\Microsoft.NET') > $null | |
| $pathExclusions.Add('C:\Windows\assembly') > $null | |
| $pathExclusions.Add($userPath + '\AppData\Local\Microsoft\VisualStudio') > $null | |
| $pathExclusions.Add('C:\ProgramData\Microsoft\VisualStudio\Packages') > $null | |
| $pathExclusions.Add('C:\Program Files (x86)\MSBuild') > $null | |
| $pathExclusions.Add('C:\Program Files (x86)\Microsoft Visual Studio 14.0') > $null | 
In this section, we are going to show how to run a python script as a systemd service, allowing you to boot it at the start of a Linux machine and to maintain it alive.
We are going to use a very basic Telegram bot in order to test that our script will:
| <?php | |
| namespace App\Http\Middleware; | |
| use Closure; | |
| use Illuminate\Http\Request; | |
| class DuskConfigOverride | |
| { | |
| /** |