Skip to content

Instantly share code, notes, and snippets.

View danielscarvalho's full-sized avatar
:octocat:
Coding!

Daniel de Souza Carvalho danielscarvalho

:octocat:
Coding!
View GitHub Profile
@danielscarvalho
danielscarvalho / linux_live_test.sh
Created October 24, 2023 04:58
Test live Linux on pedrive
lsusb
sudo qemu-system-x86_64 -m 512 -enable-kvm -usb -device usb-host,hostbus=1,hostaddr=4
@danielscarvalho
danielscarvalho / build_iso.sh
Created October 24, 2023 04:30
Build Linux Boot pendrive with ISO file
sudo dd bs=4M if=/home/r2d2/Downloads/Solus-4.4-Budgie.iso of=/dev/sdd status=progress oflag=sync
@danielscarvalho
danielscarvalho / checksslexpire.sh
Last active January 17, 2023 23:12
Check website SSL/TLS cryptography key expiration date
#!/usr/bin/bash
curl -vs https://www.google.com/ 2>&1 | grep "expire date" | cut -c17-50
# Result sounds like: Apr 16 15:52:21 2023 GMT
@danielscarvalho
danielscarvalho / downloadtxt
Last active November 29, 2022 06:02
Git commit automatic message for Linux Bash
#!/bin/bash
# Get the dictionary data file... run it just once...
# put those 3 files at ~/bin directory and give execution permission
cd ~/bin
wget https://www.mit.edu/~ecprice/wordlist.10000 -o wordlist.10000.txt
sudo mysqldump --user root  --all-databases > all-databases.sql
@danielscarvalho
danielscarvalho / gist:23273130bb45ec50bb1dce2fcb5af02a
Last active March 13, 2024 18:04
Mount Windows 10 iso file in Linux
sudo mount -o loop Win10_20H2_v2_BrazilianPortuguese_x64.iso /mnt/w10
@danielscarvalho
danielscarvalho / softwares.md
Last active March 19, 2022 19:08
Ubuntu Linux setup for developer

Ubuntu Linux setup for developers

Install

  • Wolfram Mathematica
  • Visual Studio Code
  • Brackets
  • git
  • curl
  • JDK (Java)
  • Eclipse
  • MySQL
@danielscarvalho
danielscarvalho / IntelliJ.desktop
Last active December 21, 2021 02:44
Linux icon (Ubuntu)
[Desktop Entry]
Type=Application
Terminal=true
Exec=/opt/idea-IC-203.7717.56/bin/idea.sh
Name=IntelliJ
Icon=/opt/idea-IC-203.7717.56/bin/idea.png
1. Wolfram Language
2. Python
3. SQL
4. Java
5. HTML
6. CSS
7. JavaScript (NodeJS)
8. Bash
9. C
10. PHP