Skip to content

Instantly share code, notes, and snippets.

View andrewiankidd's full-sized avatar
🤠

Andrew Kidd andrewiankidd

🤠
View GitHub Profile
function Get-SoftwareUpdateConfigurations {
[CmdletBinding(DefaultParameterSetName = 'list')]
param (
[Parameter(Mandatory)]
[ValidateNotNullOrEmpty()]
[string] $ResourceGroupName,
[Parameter(Mandatory)]
[ValidateNotNullOrEmpty()]
[string] $AutomationAccountName,
@moufmouf
moufmouf / .gitlab-ci.yml
Created February 22, 2017 17:53
Files from "A practical guide to continuous integration in PHP"
image: tetraweb/php:7.0
services:
- mysql:5.6
variables:
MYSQL_ROOT_PASSWORD: root_password
MYSQL_DATABASE: my_db
before_script:
@RIKIKU
RIKIKU / AzureExpiredCertCleaner.ps1
Created January 30, 2017 03:12
Remove expired SSL certificates
Login-AzureRmAccount -TenantId "InsertTennantIdHere"
Get-AzureRmSubscription -SubscriptionId "InsertSubscriptionIdHere" | Select-AzureRmSubscription
$certificates = Get-AzureRmResource -ExpandProperties | where ResourceType -EQ Microsoft.Web/certificates #This part takes ages to run.
foreach ($certificate in $certificates)
{
if((get-date $certificate.Properties.expirationDate) -le (Get-Date) )
{
Remove-AzureRmResource -ResourceName $certificate.ResourceName -ResourceType $certificate.ResourceType -ResourceGroupName $certificate.ResourceGroupName -Verbose -Confirm:$false -Force
@gokulkrishh
gokulkrishh / media-query.css
Last active May 17, 2024 04:45
CSS Media Queries for Desktop, Tablet, Mobile.
/*
##Device = Desktops
##Screen = 1281px to higher resolution desktops
*/
@media (min-width: 1281px) {
/* CSS */
@amolk
amolk / remove-rubber-band-web-apps-ios
Last active May 8, 2024 17:47
Remove rubberband scrolling from web apps on mobile safari (iOS)
<!DOCTYPE html>
<html>
<head>
<title>Remove rubberband scrolling from web apps on mobile safari (iOS)</title>
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-touch-fullscreen" content="yes">
<meta id="extViewportMeta" name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no">
<script type="text/javascript" src="http://code.jquery.com/jquery-1.6.4.min.js"></script>
<style>
html, body {margin: 0; padding: 0; overflow: hidden}