Skip to content

Instantly share code, notes, and snippets.

View aburaihan-dev's full-sized avatar
🏠
Working from home

Md. Abu Raihan Srabon aburaihan-dev

🏠
Working from home
View GitHub Profile
@jsdevtom
jsdevtom / frontend-ws-connection.ts
Last active June 13, 2024 02:44
kubernetes-ingress websockets with nodejs
export const ws = webSocket<WebsocketMessage>(`wss://${location.hostname}:${location.protocol === 'https:' ? 443 : 80}/ws/`);
export const wsObserver = ws
.pipe(
retryWhen(errors =>
errors.pipe(
delay(1000)
)
)
);
@ronokdev
ronokdev / PowerShell Customization.md
Created October 29, 2018 05:29 — forked from tanvir86/PowerShell Customization.md
PowerShell, Cmder / ConEmu, Posh-Git, Oh-My-Posh, Powerline Customization

Pimping Up Your PowerShell & Cmder with Posh-Git, Oh-My-Posh, & Powerline Fonts

Backstory (TLDR)

I work as a full-stack developer at work. We are a Windows & Azure shop, so we are using Windows as our development platform, hence this customization.

For my console needs, I am using Cmder which is based on ConEmu with PowerShell as my shell of choice.

Yes, yes, I know nowadays you can use the Linux subsystem on Windows 10 which allow you to run Ubuntu on Windows. If you are looking for customization of the Ubuntu bash shell, check out this article by Scott Hanselman.

@ronokdev
ronokdev / Install Asterisk 14 on centos 7
Last active September 7, 2022 01:04
Install Asterisk 14 on centos 7
:: Disable SELinux ‼️ 🔴🔴🔴
1. check selinux status → sestatus
2. RUN → vi /etc/sysconfig/selinux
3. SELINUX=disabled
4. reboot the server → reboot now
5. Check status again → sestatus 👓
😐⚽🏀
Now Install Asterisk →
@aburaihan-dev
aburaihan-dev / GIT fixup
Created July 25, 2018 12:21 — forked from ronokdev/GIT fixup
GIT fixup
::: command → git commit --fixup commit
::: Example ::
IF git log output is ::
commit 654
Author: test <test.test@test.com>
Date: Wed Jul 18 12:25:50 2018 +0600
@javilobo8
javilobo8 / download-file.js
Last active May 27, 2024 21:00
Download files with AJAX (axios)
axios({
url: 'http://localhost:5000/static/example.pdf',
method: 'GET',
responseType: 'blob', // important
}).then((response) => {
const url = window.URL.createObjectURL(new Blob([response.data]));
const link = document.createElement('a');
link.href = url;
link.setAttribute('download', 'file.pdf');
document.body.appendChild(link);
@jchandra74
jchandra74 / PowerShell Customization.md
Last active June 3, 2024 21:32
PowerShell, Cmder / ConEmu, Posh-Git, Oh-My-Posh, Powerline Customization

Pimping Up Your PowerShell & Cmder with Posh-Git, Oh-My-Posh, & Powerline Fonts

Backstory (TLDR)

I work as a full-stack developer at work. We are a Windows & Azure shop, so we are using Windows as our development platform, hence this customization.

For my console needs, I am using Cmder which is based on ConEmu with PowerShell as my shell of choice.

Yes, yes, I know nowadays you can use the Linux subsystem on Windows 10 which allow you to run Ubuntu on Windows. If you are looking for customization of the Ubuntu bash shell, check out this article by Scott Hanselman.

@aburaihan-dev
aburaihan-dev / Awesome-Android-Libraries
Last active July 14, 2017 16:09
This gist contains all the links to awesome libraries i have found for Android development
Android TUT on Bnagla: http://jakir.me/android
Material DateTime Picker: https://android-arsenal.com/details/1/3779
MaterialDrawer: 1. https://github.com/rudsonlive/NavigationDrawer-MaterialDesign
2. https://github.com/mikepenz/MaterialDrawer
MaterialTabs: 1. https://android-arsenal.com/details/1/1105
ExpandableLayout: 1. https://github.com/cachapa/ExpandableLayout
@towfiqpiash
towfiqpiash / OrganizeFiles.sh
Last active July 4, 2021 20:34
Run this shell script to organize files into separate folders
#!/bin/bash
folders='Compressed Documents Images Music Programs Videos'
ext_comp="*.zip *.tar.gz *.tgz *.rar *.7z"
ext_doc="*.htm* *.php *.txt *.css *.doc* *.pdf *.PDF *.ppt* *.js *.csv"
ext_font="*.ttf"
ext_img="*.jp*g *.JPG *.png *.gif"
ext_music="*.mp3 *.aac *.wma"
ext_progrm="*.deb *.exe *.run *.sh"
ext_vid="*.mp4 *.mkv *.flv *.avi *.webm *.wmv"
@santoshachari
santoshachari / Laravel PHP7 LEMP AWS.md
Last active February 20, 2024 10:00
Laravel 5.x on Ubuntu 16.x, PHP 7.x, Nginx 1.9.x

#Steps to install latest Laravel, LEMP on AWS Ubuntu 16.4 version. This tutorial is the improvised verision of this tutorial on Digitalocean based on my experience.

Install PHP 7 on Ubuntu

Run the following commands in sequence.

sudo apt-get install -y language-pack-en-base
sudo LC_ALL=en_US.UTF-8 add-apt-repository ppa:ondrej/php
sudo apt-get update
sudo apt-get install zip unzip