Skip to content

Instantly share code, notes, and snippets.

@guneysus
guneysus / fast_firefox.md
Created August 8, 2024 07:02 — forked from RubenKelevra/fast_firefox.md
Make Firefox fast again
@guneysus
guneysus / clutter-free-vscode.jsonc
Created January 2, 2024 08:15 — forked from kamilogorek/_screenshot.md
Clutter-free VS Code Setup
// Required Plugin: https://marketplace.visualstudio.com/items?itemName=drcika.apc-extension
// 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
guneysus / README.md
Created December 9, 2023 10:01 — forked from zoilomora/README.md
How to disable systemd-resolved in Ubuntu

How to disable systemd-resolved in Ubuntu

Stages

  • 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
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 http://opensource.org/licenses/MIT
Features:
* Hides password from being displayed in build output
* Retries against multiple timestamp servers if the server returns an invalid response (fairly common)
Usage:
@guneysus
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 "[email protected]:"]
insteadOf = git://github
@guneysus
guneysus / RyuJIT-Tutorial.md
Created January 12, 2023 09:04 — forked from CarolEidt/RyuJIT-Tutorial.md
RyuJIT Tutorial

RyuJIT

The Open Source Just in Time Compiler for .NET

WHEN & WHERE

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

ABSTRACT

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
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 = "https://nuget.pkg.github.com/$username/index.json"
# add the github package registry as a nuget source
@guneysus
guneysus / renew-gpgkey.md
Created February 24, 2022 21:53 — forked from krisleech/renew-gpgkey.md
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
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
db.dbset.Remove(entity);
db.SaveChanges();
@guneysus
guneysus / .editorconfig
Created May 24, 2021 12:37 — forked from bryanknox/.editorconfig
.editorconfig for C# Visual Studio projects
# EditorConfig is awesome: https://EditorConfig.org
#
# More info about editorconfig for C# and .NET in Visual Studio see:
# https://docs.microsoft.com/en-us/visualstudio/ide/create-portable-custom-editor-options?view=vs-2019
#
# Most of the .NET and C# rules below were taken from the
# Microsoft Roslyn team's editorconfig at:
# https://github.com/dotnet/roslyn/blob/master/.editorconfig
# Top-most EditorConfig file.