Skip to content

Instantly share code, notes, and snippets.

@nelsongraca
nelsongraca / asus-subwoofer.sh
Last active June 16, 2019 18:51
Asus Subwoofer
snd-hda-intel must be a module
# as root
cat << EOF | tee /lib/firmware/asus-n551jw-subwoofer.fw > /dev/null
[codec]
$(cat /sys/class/sound/hwC1D0/vendor_id) $(cat /sys/class/sound/hwC1D0/subsystem_id) 0
[pincfg]
0x1a 0x90170151
EOF
@nelsongraca
nelsongraca / test.sh
Last active March 21, 2019 10:28
get mime types for java
curl "https://cdn.jsdelivr.net/gh/jshttp/mime-db@master/db.json" | jq -r 'to_entries[] | select(.value.extensions !=null) | (.key)+" "+(.value.extensions|join(" "))+" "+(.value.extensions|join(" ")|ascii_upcase)'
#!/bin/bash
is_git_repo() {
git rev-parse --show-toplevel > /dev/null 2>&1
result=$?
if test $result != 0; then
>&2 echo 'Not a git repo!'
exit $result
fi
}
@nelsongraca
nelsongraca / IntelIJTrialReset.bat
Created October 16, 2018 09:50
How to Reset InteIIiJ IDEA Evaluation Key in Windows
cd "C:%HOMEPATH%\.IntelliJIdea*\config"
rmdir "eval" /s /q
del "options\options.xml"
reg delete "HKEY_CURRENT_USER\Software\JavaSoft\Prefs\jetbrains\idea" /f
:: It is Highly Advised to Purchase the JetBrain Softwares
:: This is only for the case You just want to Extend the
:: Trial Period and Evaluate the IDE for some more Time

Keybase proof

I hereby claim:

  • I am nelsongraca on github.
  • I am lonewolf4 (https://keybase.io/lonewolf4) on keybase.
  • I have a public key whose fingerprint is 1F54 734E EF04 C21E 26F9 45F4 5FF7 C1CF 3916 5C26

To claim this, I am signing this object:

@nelsongraca
nelsongraca / make.sh
Created October 3, 2016 10:08 — forked from artzub/make.sh
Install JetBrains Hub + YouTrack + UpSource + Nginx
#!/bin/bash
apt-get install mc htop git unzip wget curl -y
echo
echo "====================================================="
echo " WELCOME"
echo "====================================================="
echo
echo "Hub"