This file contains hidden or 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 | |
# Copyright 2016 Hartmut Armbruster <[email protected]> | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 | |
# |
This file contains hidden or 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
### AppleScript to shutdown / halt QNAP NAS | |
# requires pub-key access to QNAP setup for current user... | |
# [https://wiki.qnap.com/wiki/SSH:_How_To_Set_Up_Authorized_Keys] | |
tell application "Terminal" | |
set currentTab to do script ("ssh qnap halt;") | |
end tell | |
# Note: Using Mac OS 'Automator' it's easy to create a QHalt.app |
This file contains hidden or 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 | |
### Script to wakeup QNAP NAS (well not much script there.. mostly to use via Automator) | |
# requires 'wakeonlan' (installed via Homebrew -> 'brew install wakeonlan') | |
/usr/local/bin/wakeonlan {{NAS_MAC1}} | |
### optional: 2nd eth adapter.. | |
#/usr/local/bin/wakeonlan {{NAS_MAC2}} |
This file contains hidden or 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
<template> | |
<div class="pagination"> | |
<div class="inner"> | |
<template v-if="showPrev"> | |
<nuxt-link v-if="prev" :to="routeToPage(prev)" class="page previous">Previous</nuxt-link> | |
<span v-else class="page previous disabled">Previous</span> | |
</template> | |
<template v-for="it in prevPages"> | |
<nuxt-link v-if="it !== -1" :key="it" :to="routeToPage(it)" class="page">{{ it }}</nuxt-link> | |
<span v-else :key="it" class="page more">...</span> |
This file contains hidden or 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
if [ "$USERNAME" = "root" ]; then CARETCOLOR="red"; else CARETCOLOR="blue"; fi | |
local return_code="%(?..%{$fg[red]%}%? ↵%{$reset_color%})" | |
PROMPT='%{$fg_bold[cyan]%}[%D{%H:%M:%S}]%{$reset_color%} %{${fg_bold[green]}%}%3~ $(git_prompt_info)%{${fg_bold[$CARETCOLOR]}%}»%{${reset_color}%} ' | |
RPS1="${return_code}" | |
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg[red]%}‹" | |
ZSH_THEME_GIT_PROMPT_SUFFIX="› %{$reset_color%}" |
This file contains hidden or 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
{ | |
// Disable telemetry | |
"telemetry.telemetryLevel": "off", | |
// Zen mode | |
"zenMode.fullScreen": false, | |
"zenMode.hideTabs": true, | |
"zenMode.centerLayout": false, | |
// Theming | |
"workbench.iconTheme": "city-lights-icons-vsc", | |
"editor.fontFamily": "Dank Mono", |