This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
try | |
using Revise | |
catch | |
@info "Revise error!" | |
end | |
try | |
using OhMyREPL | |
colorscheme!("JuliaDefault") | |
enable_autocomplete_brackets(false) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local fmt = string.format | |
-- Iterator that splits a string o a given delimiter | |
local function split(str, delim) | |
delim = delim or "%s" | |
return string.gmatch(str, fmt('[^%s]+', delim)) | |
end | |
-- Find the proper directory separator depending | |
-- on lua installation or OS. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
############################### | |
## Dell XPS 15 9570 (0x087C) ## | |
############################### | |
{ config, lib, pkgs, ... }: | |
{ | |
boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "nvme" "usb_storage" "sd_mod" "rtsx_pci_sdmmc" ]; | |
boot.kernelModules = [ "kvm-intel" "i915" ]; | |
boot.kernelParams = [ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Courtesy of: https://stackoverflow.com/a/11974399 | |
{%- for item in items %} | |
[ | |
"{{item}}"{{ "," if not loop.last }} | |
] | |
{%- endfor %} |
As posted on: https://timvisee.com/blog/list-export-your-subreddits/
To obtain a list of your subreddits, do the following:
- First make sure you're logged in on reddit, on a desktop browser.
- Then visit reddit.com/subreddits.
- Then put the following snippet in your browsers address bar, and press
Enter
.
Make surejavascript:
is included at the beginning, your browser might remove it while copy-pasting for security reasons:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Having problems with the nvidia drivers | |
# Arch wiki page on XPS 15 | |
# https://wiki.archlinux.org/index.php/Dell_XPS_15_9560 | |
# Install ARCH Linux with encrypted file-system and UEFI on Dell XPS 15 | |
# The official installation guide (https://wiki.archlinux.org/index.php/Installation_Guide) contains a more verbose description. | |
# Download the archiso image from https://www.archlinux.org/ | |
# Copy to a usb-drive | |
dd if=archlinux.img of=/dev/sdX bs=16M && sync # on linux |
NewerOlder