Skip to content

Instantly share code, notes, and snippets.

View manashcse11's full-sized avatar

Manash Kumar Chakrobortty manashcse11

  • Cefalo
  • Dhanmondi, Dhaka
View GitHub Profile
@Tamal
Tamal / git-ssh-error-fix.sh
Last active July 26, 2024 12:02
Solution for 'ssh: connect to host github.com port 22: Connection timed out' error
$ git clone git@github.com:xxxxx/xxxx.git my-awesome-proj
Cloning into 'my-awesome-proj'...
ssh: connect to host github.com port 22: Connection timed out
fatal: Could not read from remote repository.
$ # This should also timeout
$ ssh -T git@github.com
ssh: connect to host github.com port 22: Connection timed out
$ # but this might work
@mcmaur
mcmaur / docker_mint18.sh
Created February 25, 2018 10:03
Install Docker on Linux Mint 18 Sylvia
#remove old
sudo apt-get remove docker docker-engine docker.io
sudo apt-get update
sudo apt-get install apt-transport-https ca-certificates curl software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu xenial stable"
@fmtarif
fmtarif / install-choco-script.bat
Last active May 14, 2019 07:37 — forked from zaccb/install-choco-script.bat
#cli #windows Chocolatey install script (PowerShell) - Install software and web development dependencies automatically in Windows through a script
:: Open Windows PowerShell in Administrative mode and run this file, i.e., ./install-choco-script.bat
@powershell -NoProfile -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin"
:: Install Applications
choco install vcredist2010 -fy
choco install flashplayerplugin -fy
choco install k-litecodecpackfull -fy
choco install ffmpeg -fy
choco install jre8 -fy
choco install javaruntime -fy
@fmtarif
fmtarif / mysql-remote-access.md
Last active September 16, 2019 07:42
#mysql #bash mysql grant remote access from MySQL server and SSH tunnel

Option 1 - SSH Tunneling

For quick access or when enabling remote access is not possible, ssh tunneling/port forwarding can be used to access a database (that is not allowed to be accessed remotely) temporarily

First create a SSH session with port forwarding

ssh -L 3300:localhost:3306 user@server

Then connect using the local port on local machine

@asika32764
asika32764 / mysql-rand-between-two-values.sql
Created August 16, 2014 07:41
Mysql Rand() between 2 values
ROUND((RAND() * (max-min))+min)