create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "your_email@youremail.com"
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "your_email@youremail.com"
#!/bin/bash | |
ECHO='echo ' | |
git fetch -p | |
for branch in $(git branch -r | egrep -v "(^\*|main|dev|release)"); do | |
if [[ "$(git log $branch -1 --since "3 months ago" | wc -l)" -eq 0 ]]; then | |
local_branch_name=$(echo "$branch" | sed 's/origin\///' | sed 's/remotes\///' | tr '[:upper:]' '[:lower:]') | |
# $ECHO git branch -d $local_branch_name | |
git push origin --delete $local_branch_name |
{ | |
"extends": "tslint:recommended", | |
"rules": { | |
"align": { | |
"options": ["parameters", "statements"] | |
}, | |
"array-type": { "severity": "warn", "options": "array" }, | |
"arrow-return-shorthand": { "severity": "warn" }, | |
"class-name": { "severity": "warn" }, | |
"curly": { "severity": "default", "options": "ignore-same-line" }, |
using System; | |
using System.Net; | |
using System.Reflection; | |
using System.Security.Authentication; | |
using System.Text.Json; | |
using System.Threading.Tasks; | |
using Microsoft.AspNetCore.Http; | |
namespace App.Middleware | |
{ |
using System.Net; | |
namespace App.Models | |
{ | |
public class ApiResponse<T> where T : class | |
{ | |
public T Data { get; set; } | |
public string Message { get; set; } | |
public HttpStatusCode StatusCode { get; set; } | |
public bool Success => (int)StatusCode >= 200 && (int)StatusCode < 300; |
{"lastUpload":"2020-11-13T19:46:11.209Z","extensionVersion":"v3.4.3"} |
#!/bin/bash | |
defaultBranch=main | |
PULLBRANCH=${1:-$defaultBranch} | |
git checkout $PULLBRANCH; | |
git pull origin $PULLBRANCH; | |
# This will delete all remote branches that have been merged into the current branch. | |
# git branch -r --merged | egrep -v "(^\*|main|dev|release)" | sed 's/origin\///' | xargs -r git push --delete origin; |
import { HttpClient, HttpParams, HttpHeaders } from '@angular/common/http'; | |
import { Observable } from 'rxjs'; | |
type ValidHeaders = HttpHeaders | { [header: string]: string | string[] }; | |
export abstract class BaseService { | |
protected url: string; | |
/** | |
* Use the base service class to create your services. |