This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# == Git repo == | |
repo=my_awesome_repo | |
# === Artisan ==== | |
p=8000 | |
# ===== DB ======= | |
db_username=user | |
db_password=password | |
db_name=laravel | |
db_file=my_db.sql | |
# === Server connection ===== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# | |
# Shell script to automate the backup of Microsoft SQL Server vNEXT backups on Linux. | |
# Written by Bobby Allen <ballen@bobbyallen.me>, 26/04/2017 | |
# | |
# Download this script and put into your servers' /usr/bin directory (or symlink) then make it executable (chmod +x) | |
# | |
# Usage example (backup databases into /var/backups, keep backups for 5 days, connect to server "localhost" with the account "sa" and a password of "P455w0RD"): | |
# mssqlbackup "/var/dbbackups" 5 "localhost" "sa" "P455w0rD" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static string DegreesToCardinal(double degrees) | |
{ | |
string[] caridnals = { "N", "NE", "E", "SE", "S", "SW", "W", "NW", "N" }; | |
return caridnals[ (int)Math.Round(((double)degrees % 360) / 45) ]; | |
} | |
public static string DegreesToCardinalDetailed(double degrees) | |
{ | |
string[] caridnals = { "N", "NNE", "NE", "ENE", "E", "ESE", "SE", "SSE", "S", "SSW", "SW", "WSW", "W", "WNW", "NW", "NNW", "N" }; | |
return caridnals[ (int)Math.Round(((double)degrees*10 % 3600) / 225) ]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pipeline { | |
agent any | |
stages { | |
stage('Checkout') { | |
steps { | |
git(url: 'https://github.com/allebb/jenkdock-demo.git', branch: 'master') | |
} | |
} | |
stage('Test') { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#/usr/bin/env bash | |
sudo apt-get update && sudo apt-get install -y dotnet-runtime-6.0 wget | |
sudo mkdir -p /opt/sdt | |
sudo wget -O /opt/sdt/sdt https://blog.bobbyallen.me/sdt_v107 | |
sudo rm -f /usr/bin/sdt | |
sudo chmod +x /opt/sdt/sdt |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<configuration> | |
<system.webServer> | |
<urlCompression doDynamicCompression="true" doStaticCompression="true" dynamicCompressionBeforeCache="true"/> | |
<staticContent> | |
<remove fileExtension=".svg" /> | |
<mimeMap fileExtension=".svg" mimeType="image/svg+xml" /> | |
<mimeMap fileExtension=".woff" mimeType="application/font-woff" /> | |
<clientCache httpExpires="Sun, 29 Mar 2020 00:00:00 GMT" cacheControlMode="UseExpires" /> | |
</staticContent> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# @author: Seb Dangerfield | |
# http://www.sebdangerfield.me.uk/?p=513 | |
# Created: 11/08/2011 | |
# Modified: 07/01/2012 | |
# Modified: 17/05/2012 | |
# Modify the following to match your system | |
NGINX_CONFIG='/etc/nginx/sites-available' | |
NGINX_SITES_ENABLED='/etc/nginx/sites-enabled' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Autogenerated configuration file template | |
################################# | |
# allow-axfr-ips If enabled, restrict zonetransfers to originate from these | |
# IP addresses | |
# | |
allow-axfr-ips=10.0.0.2 | |
################################# | |
# allow-recursion List of netmasks that are allowed to recurse | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Autogenerated configuration file template | |
################################# | |
# allow-axfr-ips If enabled, restrict zonetransfers to originate from these | |
# IP addresses | |
# | |
# allow-axfr-ips= | |
################################# | |
# allow-recursion List of netmasks that are allowed to recurse | |
# |
NewerOlder