Skip to content

Instantly share code, notes, and snippets.

@arturkula
arturkula / gitRerere.cmd
Created January 18, 2019 06:11
enable RERERE in git globally
git config --global rerere.enabled true
@arturkula
arturkula / WinDbg.info
Created December 20, 2018 07:42
WinDbg test
File / Symbol Search Path:
srv*C:\symbols*http://msdl.microsoft.com/download/symbols
.loadby sos clr
!analyze -v
!CLRStack -a
!dumpstackobjects
@arturkula
arturkula / setSnapshot.sql
Created July 5, 2018 09:46
Sets ALLOW_SNAPSHOT_ISOLATION and READ_COMMITTED_SNAPSHOT ON on db
-- Sets ALLOW_SNAPSHOT_ISOLATION ON and READ_COMMITTED_SNAPSHOT ON
IF EXISTS (SELECT 1 FROM master.dbo.sysdatabases WHERE name = N'$(DatabaseName)')
BEGIN
USE master
PRINT 'Executing SET ALLOW_SNAPSHOT_ISOLATION ON'
ALTER DATABASE $(DatabaseName) SET ALLOW_SNAPSHOT_ISOLATION ON;

Keybase proof

I hereby claim:

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

To claim this, I am signing this object:

@arturkula
arturkula / create directory junction.cmd
Created February 26, 2018 19:31
create directory junction
mklink /J Link Target
@arturkula
arturkula / disable windows defender
Last active December 1, 2022 12:17
disable windows defender
gpedit.msc
Computer Configuration > Administrative Templates > Windows Components > Microsoft Defender Antivirus
Computer Configuration > Administrative Templates > Windows Components > Microsoft Defender Antivirus > Real-time Protection
@arturkula
arturkula / convertToWindows.cmd
Created November 24, 2017 12:20
Convert unix line endings into windows line endings in cs files
find . -name *.cs -not -path "*/obj/*" | xargs unix2dos
# Reinstall the package in just MyProject
Update-Package <package_name> -reinstall -ProjectName MyProject
# Reinstall all packages in just MyProject
Update-Package -reinstall -ProjectName MyProject
# Reinstall all packages in solution
Update-Package -reinstall
# source: https://docs.microsoft.com/en-us/nuget/consume-packages/reinstalling-and-updating-packages
@arturkula
arturkula / Konto ważne rok
Last active July 10, 2017 16:33
Konto ważne rok
Konto ważne rok
Tylko w Orange na kartę w dowolnej taryfie możesz włączyć za darmo usługę Konto Ważne Rok.
Już nie musisz pilnować ważności środków, tylko doładowywać się, kiedy tego potrzebujesz.
Aktywuj usługę bezpłatnie w Mój Orange ( https://www.orange.pl/moj_orange/pakiety_i_ustawienia/pakiety?action=a&service=KWR )
lub wyślij bezpłatny SMS o treści START pod numer 8002, a ważność Twojego konta wydłuży się do jednego roku od dnia wysłania SMS-a.
źródło: http://www.orange.pl/kid,4000378064,id,4002010582,title,Konto-wazne-rok-w-Orange-na-Karte,article.html
@arturkula
arturkula / disable automatic windows update.cmd
Last active March 1, 2024 08:43
Disable automatic windows update on Windows 10
gpedit.msc
## Navigate to: Computer Configuration\Administrative Templates\Windows Components\Windows Update
## then: Configure Automatic Updates set to Enabled, choose 2 or 3.