Description | Command |
---|---|
Start a new session with session name | screen -S <session_name> |
List running sessions / screens | screen -ls |
Attach to a running session | screen -x |
Attach to a running session with name | screen -r |
Download postgresql from https://www.enterprisedb.com/download-postgresql-binaries;
Unzip it;
Open a cmd;
Enter into the ‘bin’ directory;
You can limit docker-windows memory usage by adjusting some parameters in wsl2 configuration.
First, close any instances of Docker Windows currently running and create a new file named .wslconfig in your user home directory, like C:\Users<username>:
[wsl2]
memory=4GB
processors=5
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 Settings (WGET, Apt e etc.) | |
export http_proxy=http://localhost:3128 | |
export https_proxy=$http_proxy | |
export ftp_proxy=$http_proxy | |
export rsync_proxy=$http_proxy | |
export no_proxy=localhost,127.0.0.1,localaddress,.localdomain.com,10.* | |
# Configurações para proxy automático em ambientes Gnome | |
if hash gsettings 2>/dev/null; then | |
gsettings set org.gnome.system.proxy autoconfig-url '<pac_file_location>' |
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
#include <ESP8266WiFi.h> | |
#include <WiFiClientSecure.h> | |
#define BUTTON 4 | |
int buttonState = 0; | |
const char* ssid = "<wifi_ssid>"; | |
const char* password = "<wifi_password>"; |
Bracket Pair Colorizer
Define cores distintas para os pares de chaves, colchetes e parenteses em um código.
EditorConfig for VS Code
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 http = require("http"), | |
url = require("url"), | |
path = require("path"), | |
fs = require("fs") | |
port = process.argv[2] || 8888; | |
http.createServer(function(request, response) { | |
var uri = url.parse(request.url).pathname | |
, filename = path.join(process.cwd(), uri); |
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
#!/usr/bin/env node | |
var args = process.argv.slice(2); | |
//console.log('Started'); | |
// String startsWith polyfill | |
if (!String.prototype.startsWith) { | |
Object.defineProperty(String.prototype, 'startsWith', { | |
enumerable: false, |
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 Settings (WGET, Apt e etc.) | |
unset http_proxy | |
unset https_proxy | |
unset ftp_proxy | |
unset rsync_proxy | |
unset no_proxy | |
# Configurações para proxy automático em ambientes Gnome | |
if hash gsettings 2>/dev/null; then | |
gsettings set org.gnome.system.proxy mode 'none' |
NewerOlder