Skip to content

Instantly share code, notes, and snippets.

View ahmedig's full-sized avatar
🎯
Focusing

Ahmed Elsayed ahmedig

🎯
Focusing
View GitHub Profile
@geekyfox90
geekyfox90 / prometheus-adapter-linkerd.yaml
Created March 9, 2020 18:36
Prometheus adapter configuration for Linkerd
prometheus:
url: http://linkerd-prometheus.linkerd.svc
rules:
default: false
custom:
- seriesQuery: 'response_latency_ms_bucket{namespace!="",pod!=""}'
resources:
template: <<.Resource>>
name:
@rwaal
rwaal / azurediagsettings-resources.json
Last active September 16, 2021 15:15
Configure multiple Azure diagnostic settings with ARM templates
"resources": [
{
"type": "Microsoft.Logic/workflows",
"name": "[parameters('logicAppName')]",
"apiVersion": "2016-10-01",
"location": "[resourceGroup().location]",
"properties": {
"definition": "[parameters('logicAppDefinition')]",
"parameters": {},
"state": "Enabled"
@pascals-msft
pascals-msft / azure-cli-install.txt
Created January 26, 2017 06:58
How to install Azure CLI on Ubuntu or Ubuntu on Windows
Source:
https://nodejs.org/en/download/package-manager/
curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -
sudo apt-get install -y nodejs
sudo npm install -g azure-cli
@markheath
markheath / MainWindow.xaml
Created April 18, 2015 15:30
WPF Button Styles
<Window x:Class="WpfButtonStyles.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="WPF Example Button Styles" Height="350" Width="525">
<Window.Resources>
<Style
TargetType="Button" x:Key="NewGameButtonStyle">
<Setter Property="FontFamily" Value="Resources/teen bd.ttf#Teen" />
<Setter Property="FontSize" Value="18" />
<Setter Property="Template">
@niksumeiko
niksumeiko / git.migrate
Last active April 30, 2024 12:54
Moving git repository and all its branches, tags to a new remote repository keeping commits history
#!/bin/bash
# Sometimes you need to move your existing git repository
# to a new remote repository (/new remote origin).
# Here are a simple and quick steps that does exactly this.
#
# Let's assume we call "old repo" the repository you wish
# to move, and "new repo" the one you wish to move to.
#
### Step 1. Make sure you have a local copy of all "old repo"
### branches and tags.