Setup
bin/kafka-topics.sh \
--zookeeper zookeeper.example.com:2181 \
--create \
var interval = 30; //minutes interval | |
var times = []; // time array | |
var start = 0; // start time | |
var end = 24; // start time | |
var meridiem = ['AM', 'PM']; // AM-PM | |
function formatHour(hour) { | |
return [0, 12].includes(hour) ? 12 : ("0" + (hour % 12)).slice(-2); | |
} |
<# | |
.SYNOPSIS | |
Installs a given package name on all Node versions installed through NVM | |
.DESCRIPTION | |
Lists all available node versions, switches to each one and installs the informed package globably. | |
.PARAMETER packageName | |
The package to be installed |
$baseReposPath = 'C:\src' | |
$repoMap = @{ | |
fe = 'front-end'; | |
be = 'back-end'; | |
scripts = 'devops/scripts' | |
} | |
$repoMap.keys.ForEach({ New-Variable -Name $_ -Value (Join-Path $baseReposPath $repoMap[$_]) }) |
Function Get-GitConfigUserEmail { | |
git config --get user.email | |
} | |
Set-Alias gitemail Get-GitConfigUserEmail | |
Function Get-GitLog { git log --oneline --graph --color } | |
Set-Alias glog Get-GitLog | |
Function Set-DevelopBranch { | |
stash |
data:text/html, <html><head><title>Markdown Editor</title></head><body style="margin:0px;overflow: hidden;"><div id="container" style="width: 100%; height:100%;margin: 0px;border:1px solid grey"></div><script src="https://microsoft.github.io/monaco-editor/node_modules/monaco-editor/min/vs/loader.js"></script><script type="text/javascript"> %09require.config({ paths: { 'vs': 'https://microsoft.github.io/monaco-editor/node_modules/monaco-editor/min/vs/' }});%09require(['vs/editor/editor.main'], function() {var editor = monaco.editor.create(document.getElementById('container'), {value: '', language: 'markdown'});});</script></body></html> |
Windows Registry Editor Version 5.00 | |
[HKEY_CLASSES_ROOT\Applications\photoviewer.dll] | |
[HKEY_CLASSES_ROOT\Applications\photoviewer.dll\shell] | |
[HKEY_CLASSES_ROOT\Applications\photoviewer.dll\shell\open] | |
"MuiVerb"="@photoviewer.dll,-3043" | |
[HKEY_CLASSES_ROOT\Applications\photoviewer.dll\shell\open\command] |
aws ec2 describe-instances --filter Name=instance-state-name,Values=pending,running | jq ".Reservations[] | .Instances[] | { name: (.Tags[] |select(.Key == \"Name\") | .Value ), id:.InstanceId, ip:.PrivateIpAddress, state:.State.Name }" |