Skip to content

Instantly share code, notes, and snippets.

View otilor's full-sized avatar
😇
Remain expectant

Gabriel Akinyosoye otilor

😇
Remain expectant
View GitHub Profile
@otilor
otilor / main.go
Created July 2, 2020 17:26
Hennge challenge
package main
import (
"fmt"
"math"
)
var sum float64
<?php
namespace App\Http\Controllers;
use App\Http\Requests\SendAdminInviteMailRequest;
use App\Jobs\SendMail;
use App\Models\AdminInvite;
use App\Models\Section;
@otilor
otilor / nosleep.sh
Created March 2, 2021 08:36
Completely disable sleep on any Mac
# Useful to prevent Macbooks to go to sleep when closing the lid instead of running tools that requires a Kernel Extension (e.g. InsomniaX) and more
# Before doing anything, save your current configuration using
pmset -g
# To disable sleep
sudo pmset -a sleep 0; sudo pmset -a hibernatemode 0; sudo pmset -a disablesleep 1;
# And to go back to normal
sudo pmset -a sleep 1; sudo pmset -a hibernatemode [original hibernatemode value]; sudo pmset -a disablesleep 0;