Skip to content

Instantly share code, notes, and snippets.

View seksitha's full-sized avatar
🎯
Focusing

Sitha Sek seksitha

🎯
Focusing
View GitHub Profile
@seksitha
seksitha / git-ssh-auth-win-setup.md
Last active May 13, 2022 04:05 — forked from bsara/git-ssh-auth-win-setup.md
Setup SSH Authentication for Git Bash on Windows

Setup SSH Authentication for Git Bash on Windows

Prepararation

  1. Create a folder at the root of your user home folder (Example: C:/Users/uname/) called .ssh.
  2. Create the following files if they do not already exist (paths begin from the root of your user home folder):
  • .ssh/config
@seksitha
seksitha / mysql_secure.sh
Created February 22, 2020 12:51 — forked from Mins/mysql_secure.sh
Automating mysql_secure_installation
#!/bin/bash
aptitude -y install expect
// Not required in actual script
MYSQL_ROOT_PASSWORD=abcd1234
SECURE_MYSQL=$(expect -c "
set timeout 10
@seksitha
seksitha / index.html
Created February 12, 2020 07:56 — forked from mcxiaoke/index.html
detect app installed in browser
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>App Redirection</title>
</head>
<body>
<!-- iframe used for attempting to load a custom protocol -->
<iframe style="display:none" height="0" width="0" id="loader"></iframe>