-
apt update
-
apt -y install curl
-
apt install wget git
-
apt install golang
-
go version
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
#!/bin/bash | |
set -e | |
# Function to check if a package is installed | |
is_installed() { | |
dpkg -s "$1" &> /dev/null | |
} | |
echo "🔄 Updating package list..." | |
sudo apt-get update |
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
#!/bin/bash | |
set -e | |
echo "Installing prerequisites..." | |
sudo apt-get update | |
sudo apt-get install -y gnupg curl wget | |
echo "Importing MongoDB public GPG key..." | |
curl -fsSL https://www.mongodb.org/static/pgp/server-8.0.asc | \ |
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
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 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
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 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
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 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
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 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
"terminal.integrated.shell.windows": "C:\\Program Files\\Git\\bin\\bash.exe" |
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
git ls-files --ignored --exclude-standard -z | xargs -0 git rm --cached | |
git commit -am "Remove ignored files" |
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
## 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 |
NewerOlder