Skip to content

Instantly share code, notes, and snippets.

Alexey Shcherbak centur

View GitHub Profile
View .wslconfig
[wsl2]
kernel=C:\\Users\\JAKA\\vmlinux
@centur
centur / twittermute.txt
Created Jan 24, 2020 — forked from IanColdwater/twittermute.txt
Here are some terms to mute on Twitter to clean your timeline up a bit.
View twittermute.txt
Mute these words in your settings here: https://twitter.com/settings/muted_keywords
ActivityTweet
generic_activity_highlights
generic_activity_momentsbreaking
RankedOrganicTweet
suggest_activity
suggest_activity_feed
suggest_activity_highlights
suggest_activity_tweet
@centur
centur / Makefiles.md
Created Aug 9, 2019 — forked from evertrol/Makefiles.md
Makefile cheat sheet
View Makefiles.md

Makefile cheat sheet

Mostly geared towards GNU make

I've used ->| to indicate a tab character, as it's clearer to read than

  • Set a target, its dependencies and the commands to execute in order
target: [dependencies]
->| <shell command>
View keybase.md

Keybase proof

I hereby claim:

  • I am centur on github.
  • I am centur (https://keybase.io/centur) on keybase.
  • I have a public key ASCBiZbOrDUSRJWjpJQB1iPeWcO7tYsFMit07kMV0cZTmAo

To claim this, I am signing this object:

View keybase.md

centur Alexey Shcherbak

Keybase proof

I hereby claim:

  • I am centur on github.
  • I am centur (https://keybase.io/centur) on keybase.
  • I have a public key ASDHNnRhzGx-wTk79dbEYn4S1cnibpuQ3hDUY4FyU8cHoQo
@centur
centur / PowerShell Customization.md
Last active May 3, 2019 — forked from jchandra74/PowerShell Customization.md
PowerShell, Cmder / ConEmu, Posh-Git, Oh-My-Posh, Powerline Customization
View PowerShell Customization.md

Pimping Up Your PowerShell & Cmder with Posh-Git, Oh-My-Posh, & Powerline Fonts

Backstory (TLDR)

I work as a full-stack developer at work. We are a Windows & Azure shop, so we are using Windows as our development platform, hence this customization.

For my console needs, I am using Cmder which is based on ConEmu with PowerShell as my shell of choice.

Yes, yes, I know nowadays you can use the Linux subsystem on Windows 10 which allow you to run Ubuntu on Windows. If you are looking for customization of the Ubuntu bash shell, check out this article by Scott Hanselman.

@centur
centur / gist:4aa7becf9e6eb37f6eb96252d27f87c3
Created Dec 6, 2017
Visual Studio and R# versions and details as per 7/12/2017
View gist:4aa7becf9e6eb37f6eb96252d27f87c3
========================================= VS info
Microsoft Visual Studio Community 2017
Version 15.5.0
VisualStudio.15.Release/15.5.0+27130.0
Microsoft .NET Framework
Version 4.7.02556
Installed Version: Community
@centur
centur / HardenSSL.ps1
Created Aug 7, 2017 — forked from SidShetye/HardenSSL.ps1
Script to harden SSL/TLS on Azure Cloud Service
View HardenSSL.ps1
# Call this from inside a startup task/batch file as shown in the next two lines (minus the '# ')
# PowerShell -ExecutionPolicy Unrestricted .\DisableSslV3.ps1 >> log-DisableSslV3.txt 2>&1
# EXIT /B 0
# Credits:
# http://azure.microsoft.com/blog/2014/10/19/how-to-disable-ssl-3-0-in-azure-websites-roles-and-virtual-machines/
# http://lukieb.blogspot.com/2014/11/tightening-up-your-azure-cloud-service.html
$nl = [Environment]::NewLine
$regkeys = @(
@centur
centur / gist:6d586252673a747ce5aade91f8b35731
Created Mar 20, 2017 — forked from siacomuzzi/gist:4fa48e32932473348fd2
[AUTH0] ASP.NET Web Api: accept a JWT signed with RS256 algorithm
View gist:6d586252673a747ce5aade91f8b35731

With Auth0, you can specify the algorithm used to sign your JWT tokens:

So in scenarios when you are signing JWTs with RSRS256 algorithm, you need to perform some changes in your ASP.NET Web Api in order to validate them properly.

NOTE: You can download your .cer file from https://{YOU}.auth0.com/cer endpoint.

ASP.NET Web Api (OWIN)

From app.UseJwtBearerAuthentication method, just replace SymmetricKeyIssuerSecurityTokenProvider with X509CertificateSecurityTokenProvider specifying your public signing key:

@centur
centur / reclaimWindows10.ps1
Created Jan 8, 2017 — forked from alirobe/reclaimWindows10.ps1
"Reclaim Windows 10" turns off a bunch of unnecessary Windows 10 telemetery, removes bloatware, and privacy invasions. Review and tweak before running. Scripts for reversing are included and commented. Fork via https://github.com/Disassembler0 (different defaults)
View reclaimWindows10.ps1
##########
# Win10 Initial Setup Script
# Author: Disassembler <disassembler@dasm.cz>
# Version: 1.7, 2016-08-15
# dasm's script: https://github.com/Disassembler0/Win10-Initial-Setup-Script/
# THIS IS A PERSONALIZED VERSION
# This script leaves more MS defaults on, including MS security features.
# Tweaked based on personal preferences for @alirobe 2016-11-16 - v1.7.1
You can’t perform that action at this time.