Skip to content

Instantly share code, notes, and snippets.

View Kurtz1993's full-sized avatar
😎

Luis Rogelio Hernández López Kurtz1993

😎
View GitHub Profile
@Kurtz1993
Kurtz1993 / multiple_ssh_setting.md
Created April 15, 2021 17:22 — forked from jexchan/multiple_ssh_setting.md
Multiple SSH keys for different github accounts

Multiple SSH Keys settings for different github account

create different public key

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;
@Kurtz1993
Kurtz1993 / cloudSettings
Last active November 13, 2020 19:46
Visual Studio Code Settings Sync Gist
{"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.
#Delete local tags.
git tag -d $(git tag -l)
#Fetch remote tags.
git fetch
#Delete remote tags.
# Pushing once should be faster than multiple times
git push origin --delete $(git tag -l)
#Delete local tags.
git tag -d $(git tag -l)