Skip to content

Instantly share code, notes, and snippets.

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

Stel Clementine stelcodes

🏠
Working from home
View GitHub Profile
@janKeli
janKeli / flake.nix
Last active November 29, 2024 04:26
A nix dev shell for tauri, set up for desktop and android dev.
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
flake-utils.url = "github:numtide/flake-utils";
fenix.url = "github:nix-community/fenix";
fenix.inputs.nixpkgs.follows = "nixpkgs";
};
outputs = {
self,
@matthewpi
matthewpi / README.md
Last active March 31, 2025 21:07
Nix on Fedora

NixOS on Fedora

Please note that these instructions are not offically supported or condoned by Nix and are not guaranteed to always work, but from my testing everything seems to work perfectly fine.

These steps may not be required if NixOS/nix#2374 is resolved.

SELinux

These commands are required for both Fedora Workstation and Fedora Silverblue

@carpntr
carpntr / replace-appindicator.sh
Created November 20, 2021 17:35
rebuild (install) debian packages that depend on libappindicator with libayatana-appindicator (tested on debian 11 with discord and keeweb)
#!/bin/bash
function usage() {
cat <<USAGE
Usage: $0 [options] <package.deb>
Options:
--install: install after rebuild
--cleanup: remove tmpfiles after
USAGE
exit 1
@borkdude
borkdude / assoc_pairs.clj
Last active April 6, 2021 11:38
Reports number of used k/v pairs in assoc to gather data for https://clojure.atlassian.net/browse/CLJ-1656
#!/usr/bin/env bash
#_" -*- mode: clojure; -*-"
#_(
"exec" "clojure" "-Sdeps" "{:deps {borkdude/grasp {:git/url \"https://github.com/borkdude/grasp\" :sha \"6315cea8c0b6dafc7b1eef9ccd03d6d5590d2045\"}}}" "-M" "$0" "$@"
)
(require '[clojure.java.io :as io]
'[clojure.spec.alpha :as s]
'[clojure.string :as str]
'[grasp.api :as g])
@vy-let
vy-let / configuration.nix
Created July 4, 2020 04:16
Setting up NixOS for typical home SMB file sharing
...
{
services.samba = {
enable = true;
syncPasswordsByPam = true;
# You will still need to set up the user accounts to begin with:
# $ sudo smbpasswd -a yourusername
@JoeyBurzynski
JoeyBurzynski / 55-bytes-of-css.md
Last active April 8, 2025 14:18
58 bytes of css to look great nearly everywhere

58 bytes of CSS to look great nearly everywhere

When making this website, i wanted a simple, reasonable way to make it look good on most displays. Not counting any minimization techniques, the following 58 bytes worked well for me:

main {
  max-width: 38rem;
  padding: 2rem;
  margin: auto;
}
@mrmcc3
mrmcc3 / demo.clj
Last active December 21, 2020 04:58
CommonMark from Clojure + EDN front matter https://mrmcc3.github.io/blog/posts/commonmark-in-clojure/
(ns demo
(:import
(org.commonmark.parser Parser)
(org.commonmark.renderer.html HtmlRenderer)))
(def parser (.build (Parser/builder)))
(def renderer (.build (HtmlRenderer/builder)))
(defn -main [input]
(->> (slurp input)
@rambabusaravanan
rambabusaravanan / apache.conf
Last active January 24, 2025 02:18
SPA - Apache, Nginx Configuration for Single Page Application like React.js on a custom path
# To host on root path just use "<Location />" for http://mydomainname.in
# To host on non-root path use "<Location /myreactapp>" for http://mydomainname.in/mypath
# If non-root path, don't forgot to add "homepage": "/myreactapp" in your app's package.json
<VirtualHost *:80>
ServerName mydomainname.in
DirectoryIndex index.html
DocumentRoot /var/www/html
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
@chris-martin
chris-martin / nixos-from-ubuntu.md
Last active January 12, 2025 11:28
How to install NixOS from an Ubuntu liveCD

Aligning images

This is a guide for aligning images.

See the full Advanced Markdown doc for more tips and tricks

left alignment