Skip to content

Instantly share code, notes, and snippets.

@dniku
dniku / Dell XPS 15 9560 Manjaro Setup instructions.md
Last active November 26, 2018 13:24 — forked from meirbon/Dell XPS 15 9560 Manjaro Setup instructions
Small, quick guide to set up Manjaro on the XPS 15 9560
  1. First of all of course get Manjaro: https://manjaro.org/get-manjaro/

  2. I recommend using Etcher to copy the image to your USB: https://etcher.io/

  3. Before installing make sure:

@meirbon
meirbon / Dell XPS 15 9560 Manjaro Setup instructions
Last active February 1, 2025 11:52
Small, quick guide to set up Manjaro on the XPS 15 9560
# 1. First of all of course get Manjaro:
https://manjaro.org/get-manjaro/
# I recommend using Etcher to copy the image to your USB:
https://etcher.io/
# 2. Before installing make sure:
# - Secure boot is disabled in BIOS
# - Your SSD, HDD or NVME drive is set to AHCI instead of RAID
# - Fastboot should be on Auto or minimal, but this shouldn't matter to much
@yi
yi / gist:01e3ab762838d567e65d
Created July 24, 2014 18:52
lua hex <= => string
function string.fromhex(str)
return (str:gsub('..', function (cc)
return string.char(tonumber(cc, 16))
end))
end
function string.tohex(str)
return (str:gsub('.', function (c)
return string.format('%02X', string.byte(c))
end))
@DeMarko
DeMarko / 00_netrunner_inserts.md
Last active April 28, 2019 23:59
Netrunner Data Pack and Expansion Inserts
Title Have It? Transcribed Content
What Lies Ahead X X Whizzard
Trace Amount X Not transcribing Excerpt from Android: Free Fall
Cyber Exodus X X Chaos Theory
A Study in Static X Not transcribing Excerpt from Android: Golem (The Identity Trilogy)
Humanity's Shadow X X Andromeda
Future Proof X Not transcribing Excerpt from Android: Strange Flesh
Creation and Control X X / X Thomas Haas / Rielle "Kit" Peddler
Opening Moves X X Press Release / For Immediate Release

Cursor movement

  • h - move left
  • j - move down
  • k - move up
  • l - move right
  • w - jump by start of words (punctuation considered words) W - jump by words (spaces separate words)
  • e - jump to end of words (punctuation considered words)
  • E - jump to end of words (no punctuation)
  • b - jump backward by words (punctuation considered words) B - jump backward by words (no punctuation)
@aaugustin
aaugustin / admin.py
Last active August 7, 2022 19:39
Read-only ModelAdmin for Django
from django.contrib import admin
class ReadOnlyModelAdmin(admin.ModelAdmin):
"""
ModelAdmin class that prevents modifications through the admin.
The changelist and the detail view work, but a 403 is returned
if one actually tries to edit an object.