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
@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>
@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:
SELECT p.nama AS 'NAMA MANAGER'
FROM `pegawai` AS p
WHERE p.id_pegawai IN (SELECT id_manager FROM `pegawai`)
ORDER BY p.id_pegawai asc;
SELECT
p.nama AS 'NAMA PEGAWAI',
(
SELECT
m.nama
FROM
pegawai AS m
WHERE
m.id_pegawai = p.id_manager
) AS 'NAMA MANAGER'
@rescenic
rescenic / docker_compose_portainer.md
Created October 17, 2023 10:40 — forked from Cursedpotential/docker_compose_portainer.md
Installing Docker, Docker Compose and Portainer on Ubuntu 20.04 21.10

Installing Docker with Docker Compose & Portainer

Install Docker

Preparing the system:

Removing any old installations of Docker
sudo apt-get remove docker docker-engine docker.io containerd runc

laragon-multi-php-version-via-package-manager

Manage your php version via Laragon PHP UI switcher with help of powershell package manager.

For this sake ill be using https://github.com/mlocati/powershell-phpmanager) package manage to handle multi version instead of download the zip file manually. The reason why i want to using this package manager is because it easy for me to add new extension like how linux and mac do. For example, installing imagick on windows is such a hassle. Not to mention if you keep switching your laptop or pc it could make it hard to just install all back without any semi or automated script laying around.

FWIW: I (@Rondy) am not the author of the content presented here, which is an outline from Edmond Lau's book. I've just copy-pasted it from somewhere and saved as a personal gist, before it got popular on newsnews.ycombinator.com. I don't remember where exactly the original source is from and neither could find the author's name, so I cannot give him/her the proper credits.


Effective Engineer - Notes