Skip to content

Instantly share code, notes, and snippets.

View 0xc0d3r's full-sized avatar
👋
Hello world!

Anesh Parvatha 0xc0d3r

👋
Hello world!
View GitHub Profile
@0xc0d3r
0xc0d3r / cloudSettings
Last active July 4, 2020 13:51 — forked from oanhnn/using-multiple-github-accounts-with-ssh-keys.md
Using multiple github accounts with ssh keys
{"lastUpload":"2020-07-04T13:51:28.477Z","extensionVersion":"v3.4.3"}
@0xc0d3r
0xc0d3r / HttpStatusCode.ts
Created March 6, 2020 11:56 — forked from scokmen/HttpStatusCode.ts
Typescript Http Status Codes Enum
"use strict";
/**
* Hypertext Transfer Protocol (HTTP) response status codes.
* @see {@link https://en.wikipedia.org/wiki/List_of_HTTP_status_codes}
*/
enum HttpStatusCode {
/**
* The server has received the request headers and the client should proceed to send the request body
/**
* Returns the flattened array of integers
* @param {number} arr A deeply nested array of integers
* @returns {Array}
*/
export function flatArray(arr) {
let outputArray = [];
arr.forEach(item => {
if (typeof item === 'number') {
outputArray.push(item);
@0xc0d3r
0xc0d3r / git.migrate
Created March 18, 2019 10:39 — forked from niksumeiko/git.migrate
Moving git repository and all its branches, tags to a new remote repository keeping commits history
#!/bin/bash
# Sometimes you need to move your existing git repository
# to a new remote repository (/new remote origin).
# Here are a simple and quick steps that does exactly this.
#
# Let's assume we call "old repo" the repository you wish
# to move, and "new repo" the one you wish to move to.
#
### Step 1. Make sure you have a local copy of all "old repo"
### branches and tags.

YYYY-MM-DD Post Mortem

Property Information
Impact Describe the impact of this incident
Status Ongoing/Resolved
Date of Incident When did this incident occur
Time Window Start and end time for this incident
Total Time How long (hours/minutes) did this incident last
JIRA Issue(s) Ticket number for any related JIRA tickets
@0xc0d3r
0xc0d3r / init.coffee
Created May 29, 2017 04:32
atom-settings
# Your init script
#
# Atom will evaluate this file each time a new window is opened. It is run
# after packages are loaded/activated and after the previous editor state
# has been restored.
#
# An example hack to log to the console when each text editor is saved.
#
# atom.workspace.observeTextEditors (editor) ->
# editor.onDidSave ->