Please visit https://asistencia.in/blogs/1-mysql-5-5-installation-guide
Thank you
| using System; | |
| using System.Threading; | |
| using System.Threading.Tasks; | |
| namespace ValidateJWTConsoleApp | |
| { | |
| class Helper | |
| { | |
| internal static class AsyncHelper | |
| { |
Please visit https://asistencia.in/blogs/1-mysql-5-5-installation-guide
Thank you
| import re | |
| import os,sys | |
| import pefile | |
| import struct | |
| import zipfile | |
| import hashlib | |
| import StringIO | |
| from Crypto import Random | |
| from Crypto.PublicKey import RSA | |
| from Crypto.Cipher import PKCS1_v1_5,AES |
I work as a full-stack developer at work. We are a Windows & Azure shop, so we are using Windows as our development platform, hence this customization.
For my console needs, I am using Cmder which is based on ConEmu with PowerShell as my shell of choice.
Yes, yes, I know nowadays you can use the Linux subsystem on Windows 10 which allow you to run Ubuntu on Windows. If you are looking for customization of the Ubuntu bash shell, check out this article by Scott Hanselman.
| #!/bin/bash | |
| APIKEY="From Here https://api.slack.com/custom-integrations/legacy-tokens" | |
| SONG=$(osascript -e 'tell application "Spotify" to name of current track as string') | |
| URLSONG=$(echo "$SONG" | perl -MURI::Escape -ne 'chomp;print uri_escape($_),"\n"') | |
| while true | |
| do | |
| curl -s -d "payload=$json" "https://slack.com/api/users.profile.set?token="$APIKEY"&profile=%7B%22status_text%22%3A%22"$URLSONG"%22%2C%22status_emoji%22%3A%22%3Amusical_note%3A%22%7D" > /dev/null | |
| sleep 60 | |
| done |
| # Add nix-like touch command | |
| function touch | |
| { | |
| $file = $args[0] | |
| if($file -eq $null) | |
| { | |
| throw "No filename supplied" | |
| } |
Once in a while, you may need to cleanup resources (containers, volumes, images, networks) ...
// see: https://github.com/chadoe/docker-cleanup-volumes
$ docker volume rm $(docker volume ls -qf dangling=true)
$ docker volume ls -qf dangling=true | xargs -r docker volume rm
| #!/bin/bash | |
| export vault=/usr/local/bin/vault | |
| export VAULT_TOKEN=$(cat /root/.vault-token) | |
| vault_cacert='-ca-cert=/path/to/your/ca.pem' | |
| local_vault="-address=https://$(hostname -f):8200" | |
| unsealed_vault="-address=https://$(getent hosts $(dig +short vault.service.consul | tail -n 1) | awk '{ print $2 }'):8200" | |
| leader_vault="-address=https://$($vault status $vault_cacert $unsealed_vault 2> /dev/null | grep Leader | awk '{ print $2 }' | sed 's/^http\(\|s\):\/\///g'):8200" | |
| vault_read="$vault read $vault_cacert $leader_vault" | |
| vault_unseal="$vault unseal $vault_cacert $local_vault" |