Skip to content

Instantly share code, notes, and snippets.

View pcuci's full-sized avatar

Paul Cuciureanu pcuci

View GitHub Profile
@pcuci
pcuci / redecrypt.sh
Created September 1, 2024 19:40
Encrypt/Decrypt with a password one-liners
read -s -p "Password: " PASS && echo -e "\nEncrypted data: $(echo -n ${DATA} | openssl enc -aes-256-cbc -pbkdf2 -iter 10000 -a -salt -k "$PASS")"
read -s -p "Password: " PASS && read -p "Enter encrypted data: " ENCRYPTED_DATA && echo $ENCRYPTED_DATA | openssl enc -aes-256-cbc -d -pbkdf2 -iter 10000 -a -salt -k "$PASS"
sudo iptables -t nat -A PREROUTING -p tcp --dport 3389 -j DNAT --to-destination win-box:3389
sudo iptables -A FORWARD -p tcp --dport 3389 -j ACCEPT
@pcuci
pcuci / WireGuard.md
Last active January 13, 2023 21:06
WireGuard Ubuntu
@pcuci
pcuci / windows-terminal-settings.json
Last active August 31, 2024 18:50
Windows Terminal Settings
{
"$help": "https://aka.ms/terminal-documentation",
"$schema": "https://aka.ms/terminal-profiles-schema",
"actions":
[
{
"command":
{
"action": "copy",
"singleLine": false
@pcuci
pcuci / ubisoft-windows-terminal-settings.json
Created October 6, 2020 19:37
Ubisoft Windows Terminal Settings
// This file was initially generated by Windows Terminal 1.3.2651.0
// It should still be usable in newer versions, but newer versions might have additional
// settings, help text, or changes that you will not see unless you clear this file
// and let us generate a new one for you.
// To view the default settings, hold "alt" while clicking on the "Settings" button.
// For documentation on these settings, see: https://aka.ms/terminal-documentation
{
"$schema": "https://aka.ms/terminal-profiles-schema",
@pcuci
pcuci / ubisoft-boxstarter.packages
Last active December 11, 2020 04:09
ubisoft-boxstarter.packages
Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowProtectedOSFiles -EnableShowFileExtensions
Enable-RemoteDesktop
cinst choco-upgrade-all-at --params "'/DAILY:yes /TIME:21:00 /ABORTTIME:23:30'"
cinst reflect-free
cinst nirlauncher
cinst microsoft-windows-terminal
cinst mingw-get
@pcuci
pcuci / boxstarter.packages
Last active March 22, 2022 05:19
boxstarter init install
### Base Windows Configuration ###
# Enable Windows Features...
Enable-WindowsOptionalFeature -FeatureName Microsoft-Hyper-V-All -Online -NoRestart
Enable-WindowsOptionalFeature -FeatureName Containers -Online -NoRestart
Enable-WindowsOptionalFeature -FeatureName Microsoft-Windows-Subsystem-Linux -Online -NoRestart
### Chocolatey Installs ###
# Install Chocolatey: https://chocolatey.org/install

Keybase proof

I hereby claim:

  • I am pcuci on github.
  • I am pcuci (https://keybase.io/pcuci) on keybase.
  • I have a public key whose fingerprint is 5306 70B7 3E09 1176 0586 F3DF 3417 4D23 F04C E669

To claim this, I am signing this object:

[options]
; csv_internal_sep = ,
; db_maxconn = 64
; db_name = False
; db_template = template1
dbfilter = ^%d$
; debug_mode = False
; email_from = "[email protected]"
; limit_memory_hard = 2684354560
; limit_memory_soft = 2147483648
@pcuci
pcuci / nginx.conf
Last active April 11, 2018 10:13
odoo nginx.conf
user www-data;
events {
worker_connections 768;
}
http {
upstream odoo {
server web:8069 fail_timeout=300s;
}