Skip to content

Instantly share code, notes, and snippets.

guneysus / clutter-free-vscode.jsonc
Created January 2, 2024 08:15 — forked from kamilogorek/
Clutter-free VS Code Setup
// Required Plugin:
// settings.json
// Remove left-side icons
"workbench.activityBar.location": "hidden",
// Remove bottom status bar
"workbench.statusBar.visible": false,
// Remove position indicator in the editor's scrollbar
"editor.hideCursorInOverviewRuler": true,
guneysus /
Created December 9, 2023 10:01 — forked from zoilomora/
How to disable systemd-resolved in Ubuntu

How to disable systemd-resolved in Ubuntu


  • Disable and stop the systemd-resolved service:

      sudo systemctl disable systemd-resolved.service
      sudo systemctl stop systemd-resolved
  • Then put the following line in the [main] section of your /etc/NetworkManager/NetworkManager.conf:

guneysus / signtool.msbuild.tasks
Created July 13, 2023 20:35 — forked from gregmac/signtool.msbuild.tasks
SignTool MSBuild Task
Sign .exe files using signtool.exe.
(c) 2014 Greg MacLellan, Licensed under MIT
* Hides password from being displayed in build output
* Retries against multiple timestamp servers if the server returns an invalid response (fairly common)
guneysus / .gitconfig
Created April 24, 2023 09:51 — forked from Kovrinic/.gitconfig
git global url insteadOf setup
# one or the other, NOT both
[url "https://github"]
insteadOf = git://github
# or
[url ""]
insteadOf = git://github
guneysus /
Created January 12, 2023 09:04 — forked from CarolEidt/
RyuJIT Tutorial


The Open Source Just in Time Compiler for .NET


This tutorial was given at PLDI 2016. The content is available here.


This tutorial will present an introduction to RyuJIT (rē-yü-jit), an industry leading, high performance Just-in-Time compiler that supports the Microsoft .NET ecosystem. RyuJIT is also used to deliver world class performance on in house 1st party services like Office 365, Bing, and Exchange through innovative design and focus on business results. RyuJIT is shipping in the .NET 4.6 product and is now open source as part of CoreCLR.

An overview of the architecture of RyuJIT will be presented, including the internal representation (IR) and compilation phases with a focus on key design and imple

guneysus /
Created November 3, 2022 19:26
PE/COFF Specification Addendum

PE/COFF Specification Addendum

Deterministic PE/COFF File

PE/COFF file is deterministic if it is produced by a tool that guarantees that the entire content of the file is based solely on documented inputs given to the tool (such as source files, resource files, compiler options, etc.) rather than ambient environment variables (such as the current time, the operating system, the bitness of the process running the tool, etc.). The content of the file can be reproduced exactly (bit for bit) given the same inputs.

The value of field TimeDateStamp in COFF File Header of a deterministic PE/COFF file does not indicate the date and time when the file was produced and should not be interpreted that way. Instead the value of the field is derived from a hash of the file content. The algorithm used to calculate this value is an implementation detail of the tool that produced the file.

Debug Directory

guneysus / GitHub_PSModule.ps1
Created March 6, 2022 10:17 — forked from Badgerati/GitHub_PSModule.ps1
Example script for publishing a PowerShell module to the NuGet GitHub Package Registry
<# --
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 February 24, 2022 21:53 — 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 September 8, 2021 13:53 — forked from tombowers/delete-with-select.cs
Entity Framework - Update without Select
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 12:37 — forked from bryanknox/.editorconfig
.editorconfig for C# Visual Studio projects
# 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.