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
$substringInName = "myservice-rc" | |
$exclusions = @("myservice-rc-tests", "myservice-rc-primary") | |
# Start watching for the pod | |
Watch-Pod -substringInName $substringInName -exclusions $exclusions |
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
using System; | |
using System.Diagnostics; | |
using System.Globalization; | |
using System.Windows.Data; | |
/// <summary> | |
/// This converter does nothing except breaking the | |
/// debugger into the convert method | |
/// </summary> | |
public class DatabindingDebugConverter : IValueConverter |
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
DECLARE @table_name NVARCHAR(255); | |
DECLARE @sql NVARCHAR(MAX); | |
DECLARE @sep NVARCHAR(10); | |
DECLARE @md5_hash NVARCHAR(32); | |
DECLARE table_cursor CURSOR FOR | |
SELECT name FROM sys.tables; | |
OPEN table_cursor; |
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/sh | |
ROTATION=$(shuf -n 1 -e '-' '')$(shuf -n 1 -e $(seq 0.05 .5)) | |
convert -density 150 $1 \ | |
-linear-stretch '1.5%x2%' \ | |
-rotate ${ROTATION} \ | |
-attenuate '0.01' \ | |
+noise Multiplicative \ | |
-colorspace 'gray' $2 |
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
; IMPORTANT INFO ABOUT GETTING STARTED: Lines that start with a semicolon, such as this one, are comments. They are not executed. | |
; Help: | |
; # Win | |
; ! Alt | |
; ^ Ctrl | |
; + Shift | |
; < Izquiero del siguiente | |
; > Derecho del siguiente | |
:*:]d:: ; This hotstring replaces "]d" with the current date and time via the commands below. |
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
{ | |
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json", | |
"blocks": [ | |
{ | |
"alignment": "left", | |
"segments": [ | |
{ | |
"leading_diamond": "\ue0b6", | |
"background": "#4da0e0", | |
"foreground": "#ffffff", |
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
body { | |
@media (max-width: 900px) { | |
div.atcb_list { | |
width: 100% !important; | |
left: 0 !important; | |
border-radius: 0 !important; | |
bottom: 0 !important; | |
top: unset !important; | |
div.atcb_list_item { |
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
// From <https://dev.to/dailydevtips1/react-cleaner-use-of-settimeout-105m> | |
import { useCallback, useEffect, useRef, useMemo } from 'react'; | |
/** | |
* To use the hook | |
* ``` | |
* import useTimeout from './useTimeout'; | |
* | |
* const [timeout] = useTimeout(() => { | |
* setShow(false); |
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
/* (320x480) iPhone (Original, 3G, 3GS) */ | |
@media only screen and (min-device-width: 320px) and (max-device-width: 480px) { | |
/* insert styles here */ | |
} | |
/* (320x480) Smartphone, Portrait */ | |
@media only screen and (device-width: 320px) and (orientation: portrait) { | |
/* insert styles here */ | |
} | |
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
javascript:function iptxt(){var d=document;try{if(!d.body)throw(0);window.location='http://www.instapaper.com/text?u=%27+encodeURIComponent(d.location.href);}catch(e){alert(%27Please wait until the page has loaded.%27);}}iptxt();void(0) |
NewerOlder