-
Use Onion architecture
- Dependencies go inwards. That is, the Core domain doesn't know about outside layers
-
Use pipeline model to implement workflows/use-cases/stories
- Business logic makes decisions
- IO does storage with minimal logic
- Keep Business logic and IO separate
-
Keep IO at edges
This file contains hidden or 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.ServiceModel; | |
| public class Proxy<T> | |
| { | |
| public ChannelFactory<T> Factory { get; set; } | |
| public Proxy() | |
| { | |
| Factory = new ChannelFactory<T>("endpoint"); |
This file contains hidden or 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
| kubectl exec name-of-the-pod -- dmesg > C:\Path\To\Dump\File.txt |
This file contains hidden or 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
| kubectl get secrets -o json | ConvertFrom-Json | select -ExpandProperty items | ? data | select -ExpandProperty data | % { $_.PSObject.Properties | % { $_.Name + [System.Environment]::NewLine + [System.Text.Encoding]::UTF8.GetString([System.Convert]::FromBase64String($_.Value)) + [System.Environment]::NewLine + [System.Environment]::NewLine } } |
This file contains hidden or 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
| // For dotnet core | |
| // Put this inside the Proxy client constructor | |
| this.ClientCredentials.ServiceCertificate.SslCertificateAuthentication = new System.ServiceModel.Security.X509ServiceCertificateAuthentication() | |
| { | |
| CertificateValidationMode = System.ServiceModel.Security.X509CertificateValidationMode.None, | |
| RevocationMode = System.Security.Cryptography.X509Certificates.X509RevocationMode.NoCheck | |
| }; | |
| // For .NET Framework | |
| // Place this anywhere in the program so that it's run before initializing the Proxy client |
This file contains hidden or 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
| sudo apt update | |
| sudo apt upgrade | |
| sudo apt install fish | |
| chsh -s /usr/bin/fish | |
| mkdir -p ~/.config/fish | |
| echo "set -g -x fish_greeting ''" >> ~/.config/fish/config.fish |
This file contains hidden or 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
| class PubSub { | |
| constructor() { | |
| this.events = [] | |
| } | |
| on(name, handler) { | |
| this.events[name] = this.events[name] || [] | |
| this.events[name].push(handler) | |
| } |
This file contains hidden or 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
| jmails.info | |
| sacustomerdelight.co.in | |
| extrobuzzapp.com | |
| ixigo.info | |
| offer4uhub.com | |
| netecart.com | |
| 101coupon.in | |
| freedealcode.in | |
| bankmarket.in | |
| hotoffers.co.in |
This file contains hidden or 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
| REM Setup Hosted Network | |
| netsh wlan stop hostednetwork | |
| netsh wlan set hostednetwork mode=allow ssid=RidersHub key=GiveMeInternet | |
| netsh wlan start hostednetwork | |
| #pause | |
| REM Start Hosted Network | |
| netsh wlan start hostednetwork | |
| REM Stop Hosted Network |
This file contains hidden or 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
| Object.defineProperties(Number.prototype, { | |
| add: { | |
| value: function (num, digitPrecision = 2) { | |
| return parseFloat((this + num).toFixed(digitPrecision)) | |
| } | |
| }, | |
| sub: { | |
| value: function (num, digitPrecision = 2) { | |
| return parseFloat((this - num).toFixed(digitPrecision)) | |
| } |
NewerOlder