Skip to content

Instantly share code, notes, and snippets.

guneysus / GitHub_PSModule.ps1
Created Mar 6, 2022 — forked from Badgerati/GitHub_PSModule.ps1
Example script for publishing a PowerShell module to the NuGet GitHub Package Registry
View GitHub_PSModule.ps1
<# --
Register the GitHub Package Registry
-- #>
$username = '<github-username>'
$token = '<github-personal-token>'
$sourceName = 'GitHub'
$source = "$username/index.json"
# add the github package registry as a nuget source
guneysus /
Created Feb 24, 2022 — forked from krisleech/
Renew Expired GPG key

Renew GPG key

Given that your key has expired.

$ gpg --list-keys
$ gpg --edit-key KEYID

Use the expire command to set a new expire date:

guneysus / delete-with-select.cs
Created Sep 8, 2021 — forked from tombowers/delete-with-select.cs
Entity Framework - Update without Select
View delete-with-select.cs
var id = 1;
using (var db = new entityContext())
// Select entity
var entity = db.dbset.FirstOrDefault(e => e.ID == id);
if (entity != null)
// Remove Entity
guneysus / .editorconfig
Created May 24, 2021 — forked from bryanknox/.editorconfig
.editorconfig for C# Visual Studio projects
View .editorconfig
# EditorConfig is awesome:
# More info about editorconfig for C# and .NET in Visual Studio see:
# Most of the .NET and C# rules below were taken from the
# Microsoft Roslyn team's editorconfig at:
# Top-most EditorConfig file.
guneysus /
Created May 23, 2021 — forked from rizalp/
Disable Spectre/Meltdown Mitigation

In /etc/default/grub, modify:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash noibrs noibpb nopti nospectre_v2 nospectre_v1 l1tf=off nospec_store_bypass_disable no_stf_barrier mds=off tsx=on tsx_async_abort=off mitigations=off"

Then sudo update-grub

guneysus / profile.ps1
Created Feb 22, 2021 — forked from bradwilson/profile.ps1
Downloadable files for
View profile.ps1
######## POSH-GIT
# ... Import-Module for posh-git here ...
# Background colors
$GitPromptSettings.AfterStash.BackgroundColor = 0x3465A4
$GitPromptSettings.AfterStatus.BackgroundColor = 0x3465A4
$GitPromptSettings.BeforeIndex.BackgroundColor = 0x3465A4
$GitPromptSettings.BeforeStash.BackgroundColor = 0x3465A4
guneysus /
Created Jul 20, 2020 — forked from GrabYourPitchforks/
Memory<T> API documentation and samples

Memory<T> API documentation and samples

This document describes the APIs of Memory<T>, IMemoryOwner<T>, and MemoryManager<T> and their relationships to each other.

See also the Memory<T> usage guidelines document for background information.

First, a brief summary of the basic types

  • Memory<T> is the basic type that represents a contiguous buffer. This type is a struct, which means that developers cannot subclass it and override the implementation. The basic implementation of the type is aware of contigious memory buffers backed by T[] and System.String (in the case of ReadOnlyMemory<char>).
View MSSQL executed query history
USE master
SELECT sdes.database_id
guneysus /
Created May 15, 2020 — forked from v0lkan/
The Evolution of a Software Engineer

This gist outlines the change in the depth and breadth of the tasks and responsibilities of a software engineer as she continuously improves herself.

I created this to supplement a discussion in an internal slack group; then I though the rest of the world might benefit from this too.

Contributions are always welcome.

Junior Engineer

  • Knowledge