Skip to content

Instantly share code, notes, and snippets.

View mmubasher's full-sized avatar
🎯
Focusing

mmubasher mmubasher

🎯
Focusing
View GitHub Profile
@mmubasher
mmubasher / java
Created September 19, 2022 11:49
This gist demos the working of a known number of Async tasks handled with completeable futures and hashmap
package com.example.futures;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import java.util.HashMap;
import java.util.concurrent.CompletableFuture;
@SpringBootApplication
public class FuturesDemoApplication {
@mmubasher
mmubasher / nix_find_replacer
Created October 26, 2020 17:31
Find and replace files and directories by name
find . -name '*new_name*' -type f -exec bash -c 'mv $0 ${0/previous_name}' {} \;
find . -name '*new_name*' -type d -exec bash -c 'mv $0 ${0/previous_name}' {} \;
@mmubasher
mmubasher / default
Created September 30, 2016 20:10
nginx configuration file for angular 2
server {
listen 80;
server_name localhost;
location / {
root /usr/share/nginx/html;
index index.html index.htm;
try_files $uri$args $uri$args/ $uri $uri/ /index.html =404;
}
...