Skip to content

Instantly share code, notes, and snippets.

View oluceps's full-sized avatar
㊙️
I may be slow to respond.

oluceps oluceps

㊙️
I may be slow to respond.
View GitHub Profile
@clowwindy
clowwindy / ssl.md
Last active June 18, 2024 03:17
为什么不应该用 SSL 翻墙

SSL 设计目标:

  1. 防内容篡改
  2. 防冒充服务器身份
  3. 加密通信内容

而翻墙的目标:

  1. 不被检测出客户端在访问什么网站
  2. 不被检测出服务器在提供翻墙服务
@CMCDragonkai
CMCDragonkai / nix_string_and_path_concatenation.md
Last active June 27, 2024 21:33
Nix: String and Path Concatenation #nix #nixos

Nix String and Path Concatenation

From Bas van Dijk:

To understand these things I would recommend using nix-repl:

$ nix-repl
Welcome to Nix version 1.11.2. Type :? for help.

Aligning images

This is a guide for aligning images.

See the full Advanced Markdown doc for more tips and tricks

left alignment

@edolstra
edolstra / nix-lang.md
Last active July 16, 2024 02:12
Nix language changes

This document contains some ideas for additions to the Nix language.

Motivation

The Nix package manager, Nixpkgs and NixOS currently have several problems:

  • Poor discoverability of package options. Package functions have function arguments like enableFoo, but there is no way for the Nix UI to discover them, let alone to provide programmatic ways to
@Barneybook
Barneybook / Telegram_it_group_list.md
Last active May 15, 2024 12:02
Telegram 資訊相關 群組清單
@Nadrieril
Nadrieril / shell.nix
Last active June 25, 2024 00:54
Building LineageOS on NixOS
# I used this shell.nix to build LineageOS 13.0 for my maguro (Samsung Galaxy Nexus GSM) phone
# The build instructions for normal Linuxes are here: https://wiki.lineageos.org/devices/maguro/build
# For NixOS, follow those instructions but skip anything related to installing packages
# Detailed instructions:
# cd into an empty directory of your choice
# copy this file there
# in nix-shell:
# $ repo init -u https://github.com/LineageOS/android.git -b cm-13.0
# $ repo sync
# $ source build/envsetup.sh
@AveYo
AveYo / .. MediaCreationTool.bat ..md
Last active July 28, 2024 00:48
Universal MediaCreationTool wrapper for all MCT Windows 10 versions - MOVED TO github.com/AveYo/MediaCreationTool.bat
@lilydjwg
lilydjwg / btrfs-autosnapshot
Last active May 19, 2024 04:07
btrfs-autosnapshot
#!/usr/bin/python3
import os
import datetime
import subprocess
import logging
import tempfile
import contextlib
from pathlib import Path
@tazjin
tazjin / nix.md
Last active February 25, 2023 19:11
Nix Language Overview

This Gist Has Moved!

Please find its new home at github.com/tazjin/nix-1p.

The updated version contains more information and has issue tracking, hooray!


Nix - A One Pager