-
apt update
-
apt -y install curl
-
apt install wget git
-
apt install golang
-
go version
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
namespace SampleProject.QueryFilters | |
{ | |
public class QueryFilter | |
{ | |
public Sorting Sorting { get; set; } | |
public Pagination Pagination { get; set; } | |
public List<Filter> Filters { get; set; } | |
} | |
public class Sorting |
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
openssl req -newkey rsa:2048 -nodes -keyout key.pem -x509 -days 825 -out certificate.pem | |
openssl x509 -text -noout -in certificate.pem | |
openssl pkcs12 -inkey key.pem -in certificate.pem -export -out certificate.p12 | |
openssl pkcs12 -in certificate.p12 -noout -info | |
openssl base64 -in certificate.p12 -A -out certificate.base64 |
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
version: '3.4' | |
services: | |
elasticsearch: | |
image: docker.elastic.co/elasticsearch/elasticsearch:7.8.1 | |
container_name: elasticsearch | |
environment: | |
- "discovery.type=single-node" | |
- xpack.security.enabled=true | |
ports: |
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
module.exports = { | |
config: { | |
// default font size in pixels for all tabs | |
fontSize: 12, | |
// font family with optional fallbacks | |
fontFamily: 'Menlo, "DejaVu Sans Mono", Consolas, "Lucida Console", monospace', | |
// terminal cursor background color and opacity (hex, rgb, hsl, hsv, hwb or cmyk) | |
cursorColor: 'rgba(248,28,229,0.8)', |
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
"terminal.integrated.shell.windows": "C:\\Program Files\\Git\\bin\\bash.exe" |
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
git ls-files --ignored --exclude-standard -z | xargs -0 git rm --cached | |
git commit -am "Remove ignored files" |
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
## Ignore Visual Studio temporary files, build results, and | |
## files generated by popular Visual Studio add-ons. | |
## | |
## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore | |
# User-specific files | |
*.suo | |
*.user | |
*.userosscache | |
*.sln.docstates |
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
var myObjectAsJsonStringInCSharp = Newtonsoft.Json.JsonConvert.SerializeObject(myObj); |
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
function downloadBase64BlobFile(response) { | |
var blob = b64toBlob(response.data, 'application/vnd.ms-excel'); | |
if (blob != null && navigator.msSaveBlob) { | |
return navigator.msSaveBlob(blob, response.fileName); | |
} | |
var a = $('<a style=\'display: none;\'/>'); | |
var url = window.URL.createObjectURL(new Blob([blob], { | |
type: 'application/vnd.ms-excel', |
NewerOlder