Skip to content

Instantly share code, notes, and snippets.

View cyriltovena's full-sized avatar
🪵
🔥

Cyril Tovena cyriltovena

🪵
🔥
View GitHub Profile
@cyriltovena
cyriltovena / gist:60b76ba8ca0ce3d635f673dab18f67f2
Created September 28, 2019 02:55
dns util kubernetes run and delete
kubectl run --generator=run-pod/v1 dnsutil --image tutum/dnsutils -i --tty --rm
root@dnsutil:/# dig grafana.default.svc.us-central1.local
kubectl create clusterrolebinding cluster-admin-binding \
--clusterrole cluster-admin \
--user $(gcloud config get-value account)
<Grid Background="{StaticResource brushWatermarkBackground}">
<TextBlock Margin="5,2" Text="Type something..."
Foreground="{StaticResource brushForeground}"
Visibility="{Binding ElementName=txtUserEntry, Path=Text.IsEmpty,
Converter={StaticResource BooleanToVisibilityConverter}}" />
<TextBox Name="txtUserEntry" Background="Transparent"
BorderBrush="{StaticResource brushBorder}" />
</Grid>
@cyriltovena
cyriltovena / DisableCharmBar.cpp
Last active August 29, 2015 13:57
Blog Disable Charmbar
#include "stdafx.h"
#include "DisableCharmBar.h"
bool DisableCharmbar(HWND hWnd)
{
PROPVARIANT var;
var.vt = VT_BOOL;
var.boolVal = VARIANT_TRUE;
// Get window properties