title | author | date | tags | ||
---|---|---|---|---|---|
なんか書く |
aodag |
2022-05-10 |
|
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
{ | |
description = "A very basic flake"; | |
inputs = { | |
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable"; | |
flake-utils.url = "github:numtide/flake-utils"; | |
}; | |
outputs = { self, nixpkgs, flake-utils }: | |
flake-utils.lib.eachDefaultSystem (system: |
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
<!DOCTYPE html> | |
<html> | |
<style> | |
body { | |
width: 100%; | |
} | |
.btn-container { | |
width: 60%; | |
margin-left: auto; | |
margin-right: auto; |
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 debian:bookworm | |
ARG USERNAME=user | |
ARG GROUPNAME=user | |
ARG UID=1000 | |
ARG GID=1000 | |
RUN groupadd -g $GID $GROUPNAME && \ | |
useradd -m -s /bin/bash -u $UID -g $GID $USERNAME | |
COPY ./install.sh /usr/local/bin |
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
#!/bin/sh | |
workspace=$(ghq list -p | wofi -di) | |
if [ -n "$workspace" ] ; then | |
swaymsg exec "code $workspace" | |
fi |
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
#!/bin/bash | |
MPC=/usr/bin/mpc | |
CMD=/usr/bin/fzf | |
artist=$($MPC ls -f %artist% | sort | uniq | $CMD) | |
album=$($MPC search -f %album% artist "$artist" | sort | uniq | $CMD) | |
$MPC search -f %file% artist "$artist" album "$album" | $MPC add | |
$MPC play |
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
🧑🤝🧑 | |
5 | |
1 | |
b'\xf0\x9f\xa7\x91\xe2\x80\x8d\xf0\x9f\xa4\x9d\xe2\x80\x8d\xf0\x9f\xa7\x91' | |
[('🧑', 'ADULT'), ('\u200d', 'ZERO WIDTH JOINER'), ('🤝', 'HANDSHAKE'), ('\u200d', 'ZERO WIDTH JOINER'), ('🧑', 'ADULT')] |
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
#!/bin/sh | |
playlist=$(mpc lsplaylist | wofi -d) | |
if [ -n "$playlist" ] ; then | |
mpc clear | |
mpc load "$playlist" | |
mpc play | |
fi |
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
aodag@debian-desktop:~$ uname -a | |
Linux debian-desktop 4.19.0-14-amd64 #1 SMP Debian 4.19.171-2 (2021-01-30) x86_64 GNU/Linux | |
aodag@debian-desktop:~$ python3 -V | |
Python 3.7.3 |
NewerOlder