Skip to content

Instantly share code, notes, and snippets.

@j5ndev
Last active June 6, 2021 06:13
Show Gist options
  • Select an option

  • Save j5ndev/855655d87d6a066f44b73c93ca34f652 to your computer and use it in GitHub Desktop.

Select an option

Save j5ndev/855655d87d6a066f44b73c93ca34f652 to your computer and use it in GitHub Desktop.

Revisions

  1. j5ndev revised this gist Jun 6, 2021. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion .zshrc
    Original file line number Diff line number Diff line change
    @@ -20,7 +20,7 @@ clone(){

    # man at: https://linux.die.net/man/1/at
    # Copy master password for 1password and clear clipboard after 2 minutes
    MP_PATH='<path-to-file-owned-solely-by-root>'
    MP_PATH='<path-to-file>' # chmod 660
    alias cpmp="sudo cat ${MP_PATH} | pbcopy && echo -n 'echo -n | DISPLAY=:0 xclip -selection clipboard && notify-send Clipboard Cleared' | at now + 2 minute && exit"

    # man tmux: https://linux.die.net/man/1/tmux
  2. j5ndev revised this gist Jun 6, 2021. 1 changed file with 5 additions and 0 deletions.
    5 changes: 5 additions & 0 deletions .zshrc
    Original file line number Diff line number Diff line change
    @@ -18,6 +18,11 @@ clone(){
    eval "$(/usr/local/bin/gittk -bash clone $@)"
    }

    # man at: https://linux.die.net/man/1/at
    # Copy master password for 1password and clear clipboard after 2 minutes
    MP_PATH='<path-to-file-owned-solely-by-root>'
    alias cpmp="sudo cat ${MP_PATH} | pbcopy && echo -n 'echo -n | DISPLAY=:0 xclip -selection clipboard && notify-send Clipboard Cleared' | at now + 2 minute && exit"

    # man tmux: https://linux.die.net/man/1/tmux
    if [ -z "$TMUX" ]; then
    exec tmux
  3. j5ndev revised this gist Jun 6, 2021. 1 changed file with 17 additions and 0 deletions.
    17 changes: 17 additions & 0 deletions .zshrc
    Original file line number Diff line number Diff line change
    @@ -6,3 +6,20 @@ alias thermal-quiet="cctk --ThermalManagement=Quiet"
    alias thermal-optimized="cctk --ThermalManagement=Optimized"
    alias thermal-performance="cctk --ThermalManagement=UltraPerformance"
    alias thermal-status="cctk --ThermalManagement"

    # man xclip: https://linux.die.net/man/1/xclip
    # Aliases for copy/paste to/from the clipboard
    alias pbcopy='xclip -selection clipboard'
    alias pbpaste='xclip -selection clipboard -o'

    # Install gittk: https://github.com/j5ndev/gittk
    # Standardize git clone of repositories
    clone(){
    eval "$(/usr/local/bin/gittk -bash clone $@)"
    }

    # man tmux: https://linux.die.net/man/1/tmux
    if [ -z "$TMUX" ]; then
    exec tmux
    fi

  4. j5ndev created this gist May 27, 2021.
    8 changes: 8 additions & 0 deletions .zshrc
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,8 @@
    # Dell Command Configure Toolkit (cctk)
    # Install: https://www.dell.com/support/kbdoc/en-us/000178000/dell-command-configure
    # Reference: https://www.dell.com/support/manuals/en-us/command-configure/dellcommandconfigure_rg/-thermalmanagement?guid=guid-7605768c-2051-4f32-9ec9-94201b95b8ac&lang=en-us
    alias cctk="sudo /opt/dell/dcc/cctk"
    alias thermal-quiet="cctk --ThermalManagement=Quiet"
    alias thermal-optimized="cctk --ThermalManagement=Optimized"
    alias thermal-performance="cctk --ThermalManagement=UltraPerformance"
    alias thermal-status="cctk --ThermalManagement"