Skip to content

Instantly share code, notes, and snippets.

View rescenic's full-sized avatar
🌏
DevOps Engineer

Muhammad Ridwan Hakim, S.T., CPITA, ITPMCP rescenic

🌏
DevOps Engineer
View GitHub Profile
#include <ArduLite.h>
// Sensors
Digital leftSensor(2, IN);
Digital rightSensor(3, IN);
// DC Motors
PWM leftMotor1(5);
PWM leftMotor2(6);
PWM rightMotor1(9);
#include<Servo.h>
Servo servo;
byte derajat = 0;
const byte TRIG_PIN = 5;
const byte ECHO_PIN = 4;
long durasi, jarak = 0;
const byte buzzer = 12;
@rescenic
rescenic / gist:4d705fd6ea0bdcc8c78790e647f804d1
Created November 9, 2024 13:52 — forked from dannysmith/gist:9780920
Installing Canvas LMS
# Download the source
git clone https://github.com/instructure/canvas-lms.git canvas
cd canvas
git checkout --track -b stable origin/stable
rbenv install –keep 1.9.3-p545
rbenv local 1.9.3-p545
brew install xmlsec1 postgresql
bundle install
# If you get this error: No source for ruby-1.9.3-p545 provided with debugger-ruby_core_source gem.
SQL Queries :
SELECT ( get data from table )
---------------------------------
SELECT <field_list>
FROM <schema>.<table_name> AS <alias>
<LEFT|RIGHT|FULL|INNER|OUTTER> JOIN <table_join_name> AS <table_join_alias>
WHERE <where clause>
GROUP BY <group by clause>
ORDER BY <order by clause>
@maxkostinevich
maxkostinevich / herd-reverb-ssl.md
Created April 15, 2024 15:08 — forked from conradfuhrman/herd-reverb-ssl.md
Laravel Herd, SSL, and Reverb with Herd

The biggest issue with Herd Pro is that you cannot use Reverb out of the box with a site that has SSL enabled. Here is the workaround for it all to play nicely together.

First you will need to create two sites. The two I have here are as follows:

  • reverb-ssl - This is a new Laravel 11 project using Breeze for the ease of Inertia. This also follows the setup for Reverb line by line.
  • wss-reverb-ssl - This is an empty directory, we are going to use this only for editing a Nginx config and setting up a proxy to the reverb service.

Screenshot 2024-04-03 at 2 33 08 PM

Of note is that I'm using Herd Pro as well, so all additional services are being used directly though Herd Pro itself.

@rescenic
rescenic / readme.md
Created April 13, 2024 01:37 — forked from titounnes/readme.md
Konfigurasi Sublime Text 3 Favorit. Dikumpulkan dengan penuh ❤︎ oleh Ian Mustafa.

Konfigurasi Sublime Text 3 Favorit

Dikumpulkan dengan penuh ❤︎︎ oleh Ian Mustafa.

Konfigurasi

Bisa diakses melalui Ctrl+Shift+P (atau +Shift+P di Mac).

{
@rescenic
rescenic / Audio-on-HTML5.md
Created April 3, 2024 22:30 — forked from AppLoidx/Audio-on-HTML5.md
Way to autoplay audio on html5

This is the method I use to automatically play the audio on the page when I open it

  1. Creating iframe with empty audio:
<iframe src="assets/music/silence.mp3" allow="autoplay" id="audio" style="display:none"></iframe>

You can use this sound: silence

  1. Add audio tag with your original sound:
@K1ethoang
K1ethoang / Active StarUml version 6 for Window | MacOS | Linux.md
Last active April 18, 2025 20:10
Active StarUml version 6 for Window | MacOS | Linux