Skip to content

Instantly share code, notes, and snippets.

@tmsperera
tmsperera / Laravel_Global_Installer.sh
Created May 1, 2020 22:32 — forked from arvinesmaeily/Laravel_Global_Installer.sh
Laravel Global Installer (Including PHP, Composer and PHP extensions)
#!/bin/sh
sudo apt-get update && apt-get upgrade
sudo apt-get install php
sudo apt-get install php-pear php-fpm php-dev php-zip php-curl php-xmlrpc php-gd php-mysql php-mbstring php-xml libapache2-mod-php
EXPECTED_SIGNATURE="$(wget -q -O - https://composer.github.io/installer.sig)"
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
ACTUAL_SIGNATURE="$(php -r "echo hash_file('sha384', 'composer-setup.php');")"
@tmsperera
tmsperera / reset.sh
Created April 20, 2021 03:42 — forked from xiaklizrum/reset.sh
Reset jetbrains intellij idea 2020 30-day evaluation period
# linux
rm -rf ~/.config/JetBrains/IntelliJIdea*/eval/*.evaluation.key ~/.config/JetBrains/IntelliJIdea*/options/other.xml ~/.java/.userPrefs/jetbrains/idea
# mac os
rm ~/Library/Application\ Support/JetBrains/IntelliJIdea*/eval/*.evaluation.key ~/Library/Application\ Support/JetBrains/IntelliJIdea*/options/other.xml ~/Library/Preferences/jetbrains.idea.* ~/Library/Preferences/com.apple.java.util.prefs.plist
for product in PhpStorm WebStorm DataGrip IntelliJIdea CLion PyCharm GoLand RubyMine; do
echo "Resetting evaluation period for $product..."
rm ~/Library/Application\ Support/JetBrains/$product*/eval/*.evaluation.key
rm ~/Library/Application\ Support/JetBrains/$product*/options/other.xml
done
rm ~/Library/Preferences/jetbrains.*
for product in PhpStorm WebStorm DataGrip IntelliJIdea CLion PyCharm GoLand RubyMine; do
echo "Resetting trial evaluation for $product..."
rm -f ~/.config/JetBrains/$product*/eval/*.evaluation.key
rm -f ~/.config/JetBrains/$product*/options/other.xml
done
rm -rf ~/.java/.userPrefs/jetbrains
@tmsperera
tmsperera / extend-trial-jetbrains-windows.bat
Created August 7, 2021 09:53
JetBrains IDE trial reset windows
REM Delete eval folder with licence key and options.xml which contains a reference to it
for %%I in ("WebStorm", "IntelliJ", "CLion", "Rider", "GoLand", "PhpStorm", "Resharper", "PyCharm") do (
for /d %%a in ("%USERPROFILE%\.%%I*") do (
rd /s /q "%%a/config/eval"
del /q "%%a\config\options\other.xml"
)
)
REM Delete registry key and jetbrains folder (not sure if needet but however)
rmdir /s /q "%APPDATA%\JetBrains"
#!/bin/bash
# see: https://www.freecodecamp.org/news/how-make-a-windows-10-usb-using-your-mac-build-a-bootable-iso-from-your-macs-terminal/
diskutil list
read -p "Enter the mounted iso name? (e.g. CCCOMA_X64FRE_EN-US_DV9) " -r MOUNTED_WINDOWS_VOLUME
read -p "Which disk do you want to be bootable? (e.g. /dev/diskX) " -r DISK