Skip to content

Instantly share code, notes, and snippets.

View apariciodevsf's full-sized avatar

Aparício Junior apariciodevsf

  • BR
View GitHub Profile
@AuraEnabled
static void throwAnException() {
AuraHandledException auraException = new AuraHandledException('The message that displays in Lightning');
auraException.setMessage('The message that you can get in a test');
// If setMessage() is not used, the exception messege won't be present in console (deploys, unit tests, ...)
throw auraException;
}
@IsTest
static void testThrowAnException() {
@apariciodevsf
apariciodevsf / gist:b9ae31cd955f67ae39ffb71335968e50
Created September 25, 2023 16:09 — forked from teja156/gist:8c35a05f43635da4cbd06b47c0d91e93
Commands for deploying wordpress website on AWS EC2 shown in my YouTube video
YouTube video link: https://youtu.be/8Uofkq718n8
All the commands that are executed in the above youtube video are mentioned in this gist.
1. Install Apache server on Ubuntu
sudo apt install apache2
2. Install php runtime and php mysql connector
sudo apt install php libapache2-mod-php php-mysql
3. Install MySQL server
@apariciodevsf
apariciodevsf / README.md
Created June 10, 2016 15:18 — forked from nickbudi/README.md
Budi's Counter-Strike: Global Offensive config

Budi's CS:GO Config

This is my constantly updated CS:GO autoexec config.

Put autoexec.cfg in ...\Steam\steamapps\common\Counter-Strike Global Offensive\csgo\cfg or take what you want from it and add to your autoexec config!

After the Wild West Simulator 2015 update, video.txt needs to be put in ...\Steam\userdata\<Steam3 ID>\730\local\cfg

Launch Options