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
# projects.toml file describing inputs for dream2nix | |
# | |
# To re-generate this file, run: | |
# nix run .#detect-projects $source | |
# ... where `$source` points to the source of your project. | |
# | |
# If the local flake is unavailable, alternatively execute the app from the | |
# upstream dream2nix flake: | |
# nix run github:nix-community/dream2nix#detect-projects $source |
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
{ lib | |
, stdenv | |
, fetchFromGitHub | |
, makeRustPlatform | |
, cmake | |
, pkg-config | |
, zlib | |
, Security | |
, libiconv | |
}: |
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
status key command | |
Composition Backspace Backspace | |
Composition Ctrl a MoveCursorToBeginning | |
Composition Ctrl Backspace Backspace | |
Composition Ctrl d MoveCursorRight | |
Composition Ctrl Down MoveCursorToEnd | |
Composition Ctrl e MoveCursorToBeginning | |
Composition Ctrl Enter Commit | |
Composition Ctrl f MoveCursorToEnd | |
Composition Ctrl g Delete |
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
from subprocess import getoutput, run | |
directory_structure = getoutput(["ls", "-l"]).splitlines() | |
items_to_be_removed = [] | |
for file_or_directory in directory_structure: | |
if file_or_directory != "cleanup.py": | |
yesOrNo = input("Do you need this (y/n) : "+file_or_directory) | |
if yesOrNo == "n": |
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
# Usage: addext <original_filename> <file_extension> | |
# Example: addext useles s | |
# -> useles.s | |
mv $1 $1.$2 |
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
{ | |
// Place your snippets for nix here. Each snippet is defined under a snippet name and has a prefix, body and | |
// description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are: | |
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the | |
// same ids are connected. | |
// Example: | |
// "Print to console": { | |
// "prefix": "log", | |
// "body": [ | |
// "console.log('$1');", |
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
mkdir -p $1;cd $1;$SHELL |
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
# to save the list of packages installed, manually run: | |
# mkdir ~/tmp | |
# nix-env --query > ~/tmp/installedManually.list | |
# nix-env --uninstall ~/tmp/installedManually.list | |
# and then `cat` the file (~/tmp/installedManually.list) to see what to declare into your configuration.nix . | |
# if you want to remove without knowing what packages are currently installed, run the following command. | |
nix-env --uninstall `nix-env --query` |
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
# use it as a normal shell script. I recommend you to place this file to somewhere on PATH. | |
# for example ( assuming you're using home-manager to configure your HOME ) : | |
# in your ~/.config/nixpkgs/home.nix | |
# { | |
# home = { | |
# sessionPath = [ | |
# "$HOME/bin" | |
# ]; | |
# }; | |
# } |