Skip to content

Instantly share code, notes, and snippets.

View pitylee's full-sized avatar
🏠
Working from home

András-Szabó István pitylee

🏠
Working from home
View GitHub Profile
@MartinSadovy
MartinSadovy / kvm config.xml
Created March 17, 2019 20:57
GPU passthrough, unraid, nvidia rtx
<!-- use q35-3.0 -->
<!--vendor_id is replacing none and kvm->hidden is required -->
<features>
<acpi/>
<apic/>
<hyperv>
<relaxed state='on'/>
<vapic state='on'/>
@timvisee
timvisee / falsehoods-programming-time-list.md
Last active May 26, 2024 18:57
Falsehoods programmers believe about time, in a single list

Falsehoods programmers believe about time

This is a compiled list of falsehoods programmers tend to believe about working with time.

Don't re-invent a date time library yourself. If you think you understand everything about time, you're probably doing it wrong.

Falsehoods

  • There are always 24 hours in a day.
  • February is always 28 days long.
  • Any 24-hour period will always begin and end in the same day (or week, or month).
@ScottPhillips
ScottPhillips / .htaccess
Created February 2, 2012 04:30
Common .htaccess Redirects
#301 Redirects for .htaccess
#Redirect a single page:
Redirect 301 /pagename.php http://www.domain.com/pagename.html
#Redirect an entire site:
Redirect 301 / http://www.domain.com/
#Redirect an entire site to a sub folder
Redirect 301 / http://www.domain.com/subfolder/