Skip to content

Instantly share code, notes, and snippets.

View kzelda's full-sized avatar
😄
الحمد لله

kzelda

😄
الحمد لله
View GitHub Profile
@kzelda
kzelda / git-cheat-sheet.md
Created April 2, 2020 11:36 — forked from prograhammer/git-cheat-sheet.md
Git cheat sheet for some useful Git commands and command scenarios.
@kzelda
kzelda / git-change-commit-messages.md
Created March 23, 2020 08:16 — forked from nepsilon/git-change-commit-messages.md
How to change your commit messages in Git? — First published in fullweb.io issue #55

How to change your commit messages in Git?

At some point you’ll find yourself in a situation where you need edit a commit message. That commit might already be pushed or not, be the most recent or burried below 10 other commits, but fear not, git has your back 🙂.

Not pushed + most recent commit:

git commit --amend

This will open your $EDITOR and let you change the message. Continue with your usual git push origin master.

@kzelda
kzelda / sana-01.pdf
Last active March 22, 2020 12:54
1980 - 1990 كتاب القراءة السنة الأولى أساسي - الجزائر - نظام قديم - تسعينيات
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@kzelda
kzelda / how-to-add-image-to-gist.md
Created March 18, 2020 09:18 — forked from mroderick/how-to-add-image-to-gist.md
How to add an image to a gist

How to add an image to a gist

  1. Create a gist if you haven't already.
  2. Clone your gist:
    # make sure to replace `<hash>` with your gist's hash
    git clone https://gist.github.com/<hash>.git # with https
    git clone [email protected]:<hash>.git     # or with ssh
@kzelda
kzelda / Github.pages.git.deploy.md
Created March 3, 2020 10:15
Deploy to github pages
cd dist
git init
git config user.email "[email protected]"
git config user.name "github-username"
git add -A
git commit -m 'deploy'

git remote add origin https://github.com/.....repo.git
git push -f origin master:gh-pages
@kzelda
kzelda / DecryptIdentityOAuthToken.cs
Created February 19, 2020 11:58
Decrypt Identity OAuth Bearer Token using C#
public Dictionary<string,string> DecryptIdentityOAuthToken(string token)
{
var ticket = Startup.OAuthServerOptions.AccessTokenFormat.Unprotect(token);
var claims = new Dictionary<string,string>();
if (ticket != null && ticket.Identity != null && ticket.Identity.IsAuthenticated)
{
foreach(var claim in ticket.Identity.Claims)
@kzelda
kzelda / FixWindowsBoot.md
Created February 17, 2020 07:49
Fix the MBR – Guide for Windows XP, Vista, 7, 8, 8.1, 10
@kzelda
kzelda / Enable-MSMQ.md
Last active February 13, 2020 14:17
Enable MSMQ

Show windows features (run powershell as admin)

Dism /online /Get-Features

Enable features

Dism /online /Enable-Feature /FeatureName:WCF-MSMQ-Activation45 /All
Dism /online /Enable-Feature /FeatureName:MSMQ-Container /All
Dism /online /Enable-Feature /FeatureName:MSMQ-Server /All
Dism /online /Enable-Feature /FeatureName:MSMQ-Triggers /All
Dism /online /Enable-Feature /FeatureName:MSMQ-ADIntegration /All
@kzelda
kzelda / gist:63b30a9575dd90d3a478c6d80be548c1
Created January 27, 2020 08:37
Visual Studio 2019 Product Key
Visual Studio 2019 Enterprise
BF8Y8-GN2QH-T84XB-QVY3B-RC4DF
Visual Studio 2019 Professional
NYWVH-HT4XC-R2WYW-9Y3CM-X4V3Y

NodeSource Node.js Binary Distributions

NodeSource

CircleCI

This repository contains documentation for using the NodeSource Node.js Binary Distributions via .rpm, .deb and Snap packages as well as their setup and support scripts.

If you are looking for NodeSource's low-impact Node.js performance monitoring platform, please get started here.