Skip to content

Instantly share code, notes, and snippets.

Avatar
🌏
DevOps Engineer

Muhammad Ridwan Hakim rescenic

🌏
DevOps Engineer
View GitHub Profile
@rescenic
rescenic / list-dokter-rsmb
Last active Sep 20, 2021
list-dokter-rsmb
View list-dokter-rsmb
*KODE DOKTER*
1. THT
*A1: dr. Tety. H. Rahim, Sp. THT-KL*
Senin sd kamis
08.30-11.30
Jum'at
08.30-11.00
Sabtu
08.30-11.00
View explode-sample-php.md

if ($wa_no . $wa_text == '') { exit ; }

$exp = explode(' ', $wa_text) ; $text1 = $exp[0]; $text2 = $exp[1]; $text3 = $exp[2];

if ($text1 == 'INFO') {

$msg = "Halo ini bot perpustakaan SLIMS

@rescenic
rescenic / settings.json
Created May 14, 2021
Windows Terminal Preview Settings 2021
View settings.json
{
"$schema": "https://aka.ms/terminal-profiles-schema",
// Add custom actions and keybindings to this array.
// To unbind a key combination from your defaults.json, set the command to "unbound".
// To learn more about actions and keybindings, visit https://aka.ms/terminal-keybindings
"actions": [
// Copy and paste are bound to Ctrl+Shift+C and Ctrl+Shift+V in your defaults.json.
// These two lines additionally bind them to Ctrl+C and Ctrl+V.
// To learn more about selection, visit https://aka.ms/terminal-selection
{
@rescenic
rescenic / .bash_profile
Last active Jun 9, 2020 — forked from n-st/.bash_profile
Start zsh from bashrc. Useful when you can't use chsh or when the same LDAP account is used both on systems with zsh installed and ones without.
View .bash_profile
# .bash_profile is executed for login shells,
# .bashrc is executed for interactive non-login shells.
# We want the same behaviour for both, so we source .bashrc from .bash_profile.
# Also, when .bash_profile exists, bash ignores .profile, so we have to source
# it explicitly.
if [ -f "$HOME/.profile" ]; then
. "$HOME/.profile"
fi
@rescenic
rescenic / configuire.cmd
Created May 28, 2020 — forked from snallami/configuire.cmd
Reconfigure cygwin
View configuire.cmd
rem This script reconfigures the Cygwin sshd service.
rem It regenerates the computer's host keys. This is necessary
rem when Sysprep is run and a new SID is generated.
@echo off
echo Stopping the Cygwin sshd service...
net stop sshd
echo ERRORLEVEL: %ERRORLEVEL%