Skip to content

Instantly share code, notes, and snippets.

View MaxySpark's full-sized avatar
🐧
JS in Front JS in Back

BHARGAB MaxySpark

🐧
JS in Front JS in Back
View GitHub Profile
@MaxySpark
MaxySpark / Docker.sh
Created September 2, 2019 11:10
Docker Commands
docker run hello-world
docker run busy box echo hello world
docker ps
docker ps --all
docker start id_from_ps
docker start -a id_from_ps
docker stop id
docker kill id
docker run = docker create + docker start
docker system prune
@MaxySpark
MaxySpark / backup.reg
Last active June 7, 2019 11:30
Docker For Windows 10 Home
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion]
"EditionID"="CoreSingleLanguage"
"ProductName"="Windows 10 Home Single Language"
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@MaxySpark
MaxySpark / docker.sh
Created June 5, 2019 00:27
Install Docker
sudo apt 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 $(lsb_release -cs) stable"
sudo apt update
sudo apt install docker-ce
sudo systemctl status docker
docker -v
sudo usermod -aG docker $USER
Host cm.bitbucket.org
HostName bitbucket.org
IdentityFile ~/.ssh/ConfinedMaterials
@MaxySpark
MaxySpark / capactitor.sh
Created May 22, 2019 19:08
Capacitor Ionic
npm install --save @capacitor/core @capacitor/cli
npx cap init
npx cap add android
@MaxySpark
MaxySpark / profile.ps1
Created May 19, 2019 13:58
code $PROFILE
# Ensure that Get-ChildItemColor is loaded
Import-Module Get-ChildItemColor
# Set l and ls alias to use the new Get-ChildItemColor cmdlets
Set-Alias l Get-ChildItemColor -Option AllScope
Set-Alias ls Get-ChildItemColorFormatWide -Option AllScope
# Helper function to show Unicode characters
function U
{
@MaxySpark
MaxySpark / auth-guard.service.ts
Last active May 11, 2019 17:14
angular authguard
import { Injectable } from '@angular/core';
import { CanActivate, Router } from '@angular/router';
import { CookieService } from 'ngx-cookie-service';
@Injectable()
export class AuthGuardService implements CanActivate {
constructor(
public cookieService: CookieService,
public router: Router
) { }
@MaxySpark
MaxySpark / sliceHelper.js
Last active September 11, 2018 12:18
Slice Helper
/**
Author : MaxySpark <[email protected]>
*/
function sliceHelper(str,object) {
let keys = Object.keys(object);
let return_obj = {};
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH=/home/maxyspark/.oh-my-zsh
# Set name of the theme to load. Optionally, if you set this to "random"
# it'll load a random theme each time that oh-my-zsh is loaded.
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
# ZSH_THEME="agnoster"