Skip to content

Instantly share code, notes, and snippets.

Avatar
🌏
DevOps Engineer

Muhammad Ridwan Hakim rescenic

🌏
DevOps Engineer
View GitHub Profile
@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%