Skip to content

Instantly share code, notes, and snippets.

View nasyxx's full-sized avatar

Nasy nasyxx

View GitHub Profile
nasyxx /
Created July 26, 2020 21:24
macOS Screen Shot with you name on it.
/usr/sbin/screencapture -i /tmp/ss.png
SSF=$(date +"Screen Shot %Y-%m-%d at %r.png")
W="$(/Users/Nasy/.macports/bin/identify -format "%w" /tmp/ss.png)"
H="$(/Users/Nasy/.macports/bin/identify -format "%h" /tmp/ss.png)"
/Users/Nasy/.macports/bin/convert \
# Generated by Powerlevel10k configuration wizard on 2020-05-09 at 00:56 EDT.
# Based on romkatv/powerlevel10k/config/p10k-lean.zsh, checksum 28636.
# Wizard options: nerdfont-complete + powerline, large icons, unicode, lean, 24h time,
# 2 lines, dotted, right frame, lightest-ornaments, sparse, many icons, fluent,
# instant_prompt=quiet.
# Type `p10k configure` to generate another config.
# Config for Powerlevel10k with lean prompt style. Type `p10k configure` to generate
# your own config based on it.
:debug:sysinfo macOS 10.16 (darwin/20.0.0) arch i386
:debug:sysinfo MacPorts 2.6.99
:debug:sysinfo Xcode 12.0
:debug:sysinfo SDK 10.16
:debug:sysinfo MACOSX_DEPLOYMENT_TARGET: 10.16
:debug:main epoch: in tree: 0 installed: 0
:debug:main xz 5.2.5_0 exists in the ports tree
:debug:main xz 5.2.5_0 is the latest installed
:debug:main xz 5.2.5_0 is active
This file has been truncated, but you can view the full file.
:debug:sysinfo macOS 10.15 (darwin/19.5.0) arch i386
:debug:sysinfo MacPorts 2.6.99
:debug:sysinfo Xcode 11.5
:debug:sysinfo SDK 10.15
:debug:sysinfo MACOSX_DEPLOYMENT_TARGET: 10.15
:debug:main epoch: in tree: 1 installed: 1
:debug:main bash-completion 2.10_0 exists in the ports tree
:debug:main bash-completion 2.10_0 is the latest installed
:debug:main bash-completion 2.10_0 is active
π zstyle  25.75G  100% ─╯
:vcs_info:svn*:* '%c%u %F{1}| %a%f'
:vcs_info:* '%b %F{1}| %a%f'
:vcs_info:hg*:* ' %b'
:completion:* /Users/Nasy/.cache/zinit
:vcs_info:* true

Keybase proof

I hereby claim:

  • I am nasyxx on github.
  • I am nasy ( on keybase.
  • I have a public key ASANFQI1PQ3UI3xtDmrQfCMGsVFTHrmUMGWWlLKIFIfCPwo

To claim this, I am signing this object:

nasyxx /
Last active April 8, 2019 03:30
screenshot with custom effect from IM

Open with and change the custom to yours.

Then, add the shortcut in the Setting -> Keyboard -> Shortcuts -> Services -> General (At the bottom).

nasyxx / # python - 2018-09-23_00-09-48.txt
Created September 22, 2018 16:52
python on macOS 10.14 - Homebrew build logs
Homebrew build logs for python on macOS 10.14
Build date: 2018-09-23 00:09:48
nasyxx / ghci.conf
Last active November 13, 2019 05:42
ghci configuration
-- ghci configuration
-- pretty-simple
-- To use this configuration, `cat` lines inside `{--}`, to a file named ghci-color in your $PATH,
-- Run with `ghci-color`, and for which if you use stack, `stack exec -- ghci-color` is suitable.
-- Also, you could set an alias like `alias ghcrepl=stack exec -- ghci-color`, then run with `ghcrepl`.
#!/usr/bin/env bash
nasyxx /
Created August 3, 2018 12:10 — forked from ykomatsu/
Installing Nix on macOS in single-user mode