Convert video to mp3 in entire directory with ffmpeg in windows?

For Windows: Here I’m Converting all the (.mp4) files to (.mp3) files.Just open cmd, goto the desired folder and type the command. Shortcut: (optional)1. Goto the folder where your (.mp4) files are present2. Press Shift and Left click and Choose “Open PowerShell Window Here”or “Open Command Prompt Window Here”3. Type “cmd” [NOTE: Skip this stepContinue reading “Convert video to mp3 in entire directory with ffmpeg in windows?”

Simple arduino clock

Well, I like clocks, especially custom made or diy. Here is the code and some photos. #include “Wire.h” #include “LiquidCrystal_I2C.h” #include “TimeLib.h” #include “DS1307RTC.h” LiquidCrystal_I2C lcd(0x27,20,4); String time; int inPinA = 2; int inPinB = 3; int valPinB = 0; boolean previousStatusPinA = false; boolean previousStatusPinB = false; byte x10[8] = {0x00,0x00,0x00,0x00,0x00,0x07,0x07,0x07}; byte x11[8] =Continue reading “Simple arduino clock”

vault with docker

doker-compose.yml file version: ‘3’ services: vault: image: vault container_name: vault ports: – 8200:8200 volumes: – ./data:/vault/data:rw – ./config:/vault/config:rw cap_add: – IPC_LOCK entrypoint: vault server -config=/vault/config/vault.conf vault.conf ui = true storage “file” { path = “/vault/data” } listener “tcp” { address = “” tls_disable = 1 #tls_disable = 0 #tls_cert_file = “/vault/conf/cert/fullchain.pem” #tls_key_file = “/vault/conf/cert/privkey.pem” }Continue reading “vault with docker”

Digispark lock button

Ok here is the code for locker button. The main feature of this device is to lock the screen of the computer when you leave the office. #include “DigiKeyboard.h” const int buttonPin=0; int buttonState=0; void setup() { DigiKeyboard.update(); DigiKeyboard.sendKeyStroke(0); pinMode(buttonPin, INPUT); } void loop() { buttonState=digitalRead(buttonPin); if (buttonState == HIGH) { DigiKeyboard.sendKeyStroke(KEY_L, MOD_GUI_LEFT); } }

ncat chat server

Basic chat server / client with netcat Install netcat pkg install nmap On server start daemon ncat –ssl –chat -l port & On client run ncat –ssl address port ### Broker server ncat -k -l -p xxx –broker ### Netcat client script echo “HELLO” | nc ip port -q 1

Base64 spring

Encoding file to base64 @RequestParam(“file”) MultipartFile file … if (!file.isEmpty()) { String base64 = Base64.getEncoder().encodeToString(file.getBytes()); } Decoding base64 to file HttpServletResponse response … response.addHeader(“Content-disposition”, “inline”); response.setContentType(“audio/mpeg”); Attachment attachment = attachmentRepository.findOne(id); byte[] decodedBytes = Base64.getDecoder().decode(attachment.getBase64()); OutputStream output = response.getOutputStream(); output.write(decodedBytes); output.close();

Secure spring boot with letsencrypt ssl certificate

Install the Certbot client pkg install py27-certbot Generate certificate certbot certonly –webroot -w /usr/local/www/example -d or wildcard certificate certbot certonly –server –manual –preferred-challenges dns -d ‘’ -d ‘*’ I’m using spring on http and nginx as proxy server for ssl layer. Here is the nginx config: server { listen 443; server_name; sslContinue reading “Secure spring boot with letsencrypt ssl certificate”