Skip to content

Instantly share code, notes, and snippets.

View MaskeZen's full-sized avatar
:shipit:

Diego Mascheroni MaskeZen

:shipit:
  • San José de Mayo, Uruguay
  • 17:11 (UTC -03:00)
View GitHub Profile
robocopy "C:\Users" "E:\backups\Users" /MIR /XA:SH /W:0 /R:1 /REG /XJ
@MaskeZen
MaskeZen / wsDgi.md
Last active October 11, 2023 17:10
WS DGI
@MaskeZen
MaskeZen / cotizacionBCU.php
Created August 16, 2018 14:23
Cotización del BCU WS
<?php
getCotizacionesWS();
function getCotizacionesWS(){
$context = [
"ssl" => [
"verify_peer" => FALSE,
"verify_peer_name" => FALSE,
'crypto_method' => STREAM_CRYPTO_METHOD_TLS_CLIENT
#!/bin/bash
openssl req -x509 -newkey rsa:4096 -keyout key.pem -out cert.pem -days 365
openssl pkcs12 -inkey key.pem -in cert.pem -export -out keystore.pfx
@MaskeZen
MaskeZen / publish.sh
Last active October 21, 2020 02:45
Publicador con rsync
#!/bin/bash
# $ ssh-keygen -t rsa -b 2048
# If you already have an SSH key, you can skip this step… Just hit Enter for the key and both passphrases:
# Copy your keys to the target server:
# $ ssh-copy-id id@server
# You may also want to look into using ssh-agent if you want to try keeping your keys protected with a passphrase.
# CONFIGURACIÓN --------------------
local='/d/wamp64/www/project/'
@MaskeZen
MaskeZen / oauth2.md
Last active January 10, 2022 01:49
oauth2 notas

oauth2

Terminología

notas sobre oauth2

  • Access token - A token used to access protected resources.
  • Authorization code - An intermediary token generated when a user authorizes a client to access protected resources on their behalf. The client receives this token and exchanges it for an access token.
  • Authorization server - A server which issues access tokens after successfully authenticating a client and resource owner, and authorizing the request.
  • Client - An application which accesses protected resources on behalf of the resource owner (such as a user). The client could be hosted on a server, desktop, mobile or other device.
@MaskeZen
MaskeZen / vagrant.md
Created July 19, 2019 21:17
Vagrant notas

Vagrant

  • vagrant init box
  • vagrant up
  • vagrant ssh
  • vagrant global-status
  • vagrant reload --provision Recarga la máquina y corre los scripts en provision. custom boxes

Networking

@MaskeZen
MaskeZen / rename_multiple_files.md
Created August 8, 2019 15:09
Rename multiple files with prefix or suffix in Linux console

Add a suffix

for file in *; do mv "$file" "$(basename "$file")yourSuffix"; done;

Exmpale to add an underscore "_" at the end each text file:

for file in *.txt; do mv "$file" "$(basename "$file")_"; done;

Add a prefix

@MaskeZen
MaskeZen / firefox-dev.sh
Last active January 28, 2022 12:36
Script para instalar o actualizar el firefox dev
#!/bin/bash
# Script para instalar o actualizar el firefox dev
# 2022/01/22 maskeee@gmail.com
sudo echo "Descargar Firefox Developer Edition"
curl -L "https://download.mozilla.org/?product=firefox-devedition-latest-ssl&os=linux64&lang=es-ES" -o "firefox-dev.tar.bz2"
# Descomprimir en el directorio opt para que pueda ser accesible
sudo tar -xvf firefox-dev.tar.bz2 -C /opt/