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 https://github.com/philj56/tofi/blob/v0.9.1/themes/dmenu | |
anchor = top | |
width = 100% | |
height = 30 | |
horizontal = true | |
font-size = 14 | |
prompt-text = " run: " | |
font = monospace | |
outline-width = 0 |
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
shell: | |
# program: "bash" | |
# program: "nu" | |
program: "pwsh" | |
args: | |
- -NoLogo | |
font: | |
size: 14.0 |
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
Import-Module PSReadline | |
Set-PSReadLineOption -EditMode Emacs -BellStyle None | |
function Prompt { | |
$username = "$($env:USER)" | |
$path = "$($executionContext.SessionState.Path.CurrentLocation)" | |
Write-Host $path -NoNewline -ForeGroundColor blue | |
Write-Host " $(Get-Date -Format "MM/dd/yyyy HH:mm")" -ForeGroundColor yellow | |
Write-Host ">" -NoNewline -ForeGroundColor yellow |
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
Import-Module PSReadline | |
Set-PSReadLineOption -EditMode Emacs | |
function Prompt { | |
$username = "$($env:USER)" | |
$path = "$($executionContext.SessionState.Path.CurrentLocation)" | |
Write-Host $username -NoNewline -ForeGroundColor blue | |
Write-Host "`$" -NoNewline -ForeGroundColor green | |
Write-Host $path -NoNewline -ForeGroundColor DarkMagenta |
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
alarm="aplay ~/any-sound.wav" # 任意のコマンドに変更するが良い!! | |
d=`date '+%M'` | |
while sleep 10; do | |
if [ $d -eq 00 ]; then | |
$alarm | |
break | |
else | |
echo "not yet..." | |
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
# Edit this configuration file to define what should be installed on | |
# your system. Help is available in the configuration.nix(5) man page | |
# and in the NixOS manual (accessible by running ‘nixos-help’). | |
{ config, pkgs, ... }: | |
{ | |
imports = | |
[ | |
./hardware-configuration.nix |
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 | |
clear && while mpc status; do sleep 1 && clear; done |
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
public class Unko{ | |
public static void main(String[] args){ | |
int i = 1; | |
if(i == 0){ | |
System.out.println("unko..."); | |
}else{ | |
System.out.println("unko!?"); | |
} | |
} |
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
unkoJudge :: Double -> String | |
unkoJudge volume | |
| volume <= 10.0 = "Too little..." | |
| volume <= 20.0 = "Uh... OK. It may be safe." | |
| otherwise = "Oh!! Your unko is very big!!! You are LEGEND!!!" |