MacOS instructions:
- Install:
brew install yt-dlp
- Verify installation:
yt-dlp --version
MacOS instructions:
brew install yt-dlp
yt-dlp --version
rvm pkg install openssl | |
# install version you want, chec the openssl path | |
rvm install 2.7.6 --with-openssl-dir=/usr/share/rvm/usr |
To configure Ubuntu's behaviour when the laptop's lid is been closed.
/etc/systemd/logind.conf
file in a text editor as rootsudo vim /etc/systemd/logind.conf
HandleLidSwitch
is commented and set the value you want.
2.1. Available options: ignore
, poweroff
, reboot
, halt
, kexec
, suspend
, hibernate
, hybrid-sleep
, suspend-then-hibernate
, lock
, and factory-reset
. logind.conf documentation.// Post available at: https://medium.com/@miguelms-es/paywalls-vulnerables-el-confidencial-el-espa%C3%B1ol-parte-2-31d92df4fb46 | |
var removePaywall = setInterval(() => { | |
if(document.getElementsByClassName("tp-modal").length > 0){ | |
document.getElementsByClassName("tp-modal")[0].remove(); | |
document.getElementsByClassName("tp-backdrop")[0].remove(); | |
document.getElementsByClassName("tp-modal-open")[0].classList.remove("tp-modal-open"); | |
console.log("paywall unlocked"); | |
clearInterval(removePaywall); | |
}else{ | |
console.log("Checking paywall popup") |
language: java | |
jdk: | |
- oraclejdk11 | |
script: mvn test | |
before_install: | |
- chmod +x mvnw |
-- 1. Enter to mysql DB with sudo user | |
sudo mysql | |
-- 2.1 if MySQL5 update the password and flush privileges | |
UPDATE mysql.user SET authentication_string=PASSWORD('your-new-password'), plugin='mysql_native_password' WHERE User='root' AND Host='localhost'; | |
-- 2.2 if Mysql 8: | |
UPDATE mysql.user set plugin='mysql_native_password' WHERE User='root' AND Host='localhost'; | |
SET PASSWORD for 'root'@'localhost' = ''; |
# Today I was asked to solve this Algorithm problem in a job interview. I did pseudo-code, but here's the ruby one. | |
# Validate if the mathematical parenthesis syntax is correct | |
a = ["(2+3)*4+(5/3)+(2)", "()())", ")()()"] # true, false false | |
def checkMath(input_expresion) | |
counter = 0 | |
for i in 0..input_expresion.length-1 | |
if counter<0 |