Skip to content

Instantly share code, notes, and snippets.

View abdasis's full-sized avatar
🚀
Happy with Code

Abd. Asis abdasis

🚀
Happy with Code
View GitHub Profile
@azimidev
azimidev / forge.sh
Created August 9, 2018 00:05
Laravel Forge Setup Script
#
# REQUIRES:
# - server (the forge server instance)
# - event (the forge event instance)
# - sudo_password (random password for sudo)
# - db_password (random password for database user)
# - callback (the callback URL)
#
@bpocallaghan
bpocallaghan / deploy.txt
Last active October 30, 2023 20:38
Laravel Forge Deploy Script
cd /home/forge/domain
# turn on maintenance mode
#php artisan down
git fetch --all
git reset --hard origin/master
composer install --no-interaction --prefer-dist --optimize-autoloader
( flock -w 10 9 || exit 1
@barokurniawan
barokurniawan / CurencyLang.php
Created January 8, 2020 13:03
PHP Terbilang dalam bahasa inggris
<?php
class CurencyLang
{
static function toEnglish($number)
{
$hyphen = '-';
$conjunction = ' and ';
$separator = ', ';
$negative = 'negative ';
@MianJawadAhmad
MianJawadAhmad / React Native error and solution
Created May 26, 2020 19:13
React Native error and solution
error Failed to install the app. Make sure you have the Android development environment set up: https://facebook.github.io/react-native/docs/getting-started.html#android-development-environment. Run CLI with --verbose flag for more details. Error: spawnSync ./gradlew EACCES at Object.spawnSync (internal/child_process.js:1045:20) at spawnSync (child_process.js:597:24) at execFileSync (child_process.js:624:15) at runOnAllDevices
Soluton: chmod 755 android/gradlew
@adityardiansyah
adityardiansyah / Summernote for Laravel Livewire
Created July 23, 2020 06:39
Setting Summernote for Laravel Livewire
// HTML
<div class="col-md-12">
<div class="form-group" wire:ignore>
<label for="desciption">Deskripsi</label>
<textarea type="text" input="description" id="summernote" class="form-control summernote">{{ $description }}</textarea>
</div>
</div>
// JAVASCRIPT
@tascrafts
tascrafts / certificate_checker.php
Created May 17, 2023 11:07
A PHP script to check and display SSL certificate expiration in Google and .ical calendars
<?php
$urls[] = array(
"name" => "Domain 1 Name",
"url" => "https://domain.com"
);
$urls[] = array(
"name" => "Domain 2 Name",
"url" => "https://subdomain.domain.org"