Skip to content

Instantly share code, notes, and snippets.

@sn123
sn123 / Docker Cheatsheet.md
Created August 23, 2023 14:46
Docker Cheatsheet

Docker Cheatsheet

Get Running Container Id

  • bash
$ docker ps | grep <container-tag> | cut -f1 -d" "
  • Powershell
:\> docker ps | findstr "nginx" | ForEach {$_.split(" ")[0]}
<template>
<div class="center you-tube">
<div id="yt-player"></div>
</div>
</template>
<script lang="ts">
import { Component, Prop, Vue } from "vue-property-decorator";
import { scriptLoader } from "../script-loader";
@Component
@sn123
sn123 / NumberWidget.vue
Last active September 30, 2020 07:38
An animated number widget for mustard
<template>
<div class="center number">
<h4>{{ title }}</h4>
<AnimatedNumberComponent v-bind:value="model.value" />
</div>
</template>
<script lang="ts">
import { Component, Prop, Vue } from "vue-property-decorator";
import { getStoreItem, State } from "../store";
@sn123
sn123 / MopidyClient.vue
Last active April 13, 2020 08:48
A #Mopidy client for Mustard. Displays the currently playing tracks along with album art & tags from last.fm
<template>
<div class="center mopidy">
<h4>Now Playing</h4>
<div :v-if="model.name">
<img :src="model.albumArt" />
<div>
<h4>{{ model.artist }}</h4>
<h3>{{ model.name }}</h3>
<p>{{ model.tags }}</p>
</div>
@sn123
sn123 / kudu-php.sh
Last active August 25, 2017 07:21
A kudu deployment script for a WordPress site using bower and gulp for front-end
#!/bin/bash
# ----------------------
# KUDU Deployment Script
# Version: 1.0.15
# ----------------------
# Helpers
# -------
@sn123
sn123 / Set-AzureSearchReplica.ps1
Created October 20, 2016 12:32
Scale up/down Azure Search Replicaset using Runbooks
<#
.SYNOPSIS
Vertically scale (up or down) an Azure SQL Database
.DESCRIPTION
This runbook enables one to vertically scale (up or down) Azure Search ReplicaSet using Azure Automation.
.PARAMETER resourceGroupName
Name of the Azure Search Resource Group