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
# logfilename [owner:group] mode count size when flags [/pid_file] [sig_num] | |
/opt/local/var/log/openvpn2/*.log 644 3 1000 * J | |
/opt/local/var/log/openvpn2/*/*.log 644 3 1000 * J |
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
--- /System/Library/Spotlight/RichText.mdimporter/Contents/Info.plist 2022-02-26 09:05:07.000000000 +0200 | |
+++ /Library/Spotlight/Markdown.mdimporter/Contents/Info.plist 2022-03-22 21:01:30.000000000 +0200 | |
@@ -13,27 +13,20 @@ | |
<string>MDImporter</string> | |
<key>LSItemContentTypes</key> | |
<array> | |
- <string>public.rtf</string> | |
- <string>public.html</string> | |
- <string>public.xml</string> | |
- <string>public.plain-text</string> |
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
# Replace <items-in-angle-brackets> to cofigure | |
name: Build <stage|production> container and deploy | |
on: | |
push: | |
branches: [ <stage|production> ] | |
env: | |
ECR_REPOSITORY: <repo-name> | |
AWS_REGION: us-east-1 | |
ECS_CLUSTER: <custer-name> |
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
$currentPrincipal = New-Object Security.Principal.WindowsPrincipal( [Security.Principal.WindowsIdentity]::GetCurrent() ) | |
$administrator = $currentPrincipal.IsInRole( [Security.Principal.WindowsBuiltInRole]::Administrator ) | |
$progfilesx86 = $env:programfiles | |
$is64bitenv = $false; | |
#System.IntPtr is 64 bits on x64 and 32 bits on x86 | |
$is64bitenv = [IntPtr]::size * 8 -eq 64; | |
$progfilesx86 = $env:programfiles | |
if( $is64bitenv ) |
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
sh is a POSIX-compliant command interpreter (shell). It is implemented | |
by re-execing as either bash(1), dash(1), or zsh(1) as determined by the | |
symbolic link located at /private/var/select/sh. If | |
/private/var/select/sh does not exist or does not point to a valid shell, | |
sh will use one of the supported shells. | |
$ ls -l /private/var/select | |
total 0 | |
lrwxr-xr-x 1 root wheel 9 Jan 23 09:47 sh -> /bin/dash | |
lrwxr-xr-x 1 root wheel 9 Dec 2 06:37 sh.ori -> /bin/bash |
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 | |
#kill bluetoothd to reset bluetooth wonkiness in macOS | |
#catalina, big sur, monterey | |
#fixes continuity, magic keyboard mismapping of function keys, magic mouse scrolling | |
current_userid=$(id -u) | |
if [ $current_userid -ne 0 ]; then | |
echo "$(basename "$0") requires superuser privileges to run" >&2 | |
echo "try: \033[1;36msudo $(basename "$0")" >&2 |
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
#!/usr/bin/env python3 | |
# -------------------------------------------------------------------------------------------- | |
# Copyright (c) Microsoft Corporation. All rights reserved. | |
# Licensed under the MIT License. See License.txt in the project root for license information. | |
# -------------------------------------------------------------------------------------------- | |
# | |
# This script will install the CLI into a directory and create an executable | |
# at a specified file path that is the entry point into the CLI. |
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 | |
# list global tools installed | |
# select tool <PACKAGE_ID> | |
# execute `dotnet tool update --global <PACKAGE_ID>` | |
dotnet tool list --global | awk 'NR > 2 {print $1}' | xargs -L1 dotnet tool update --global |
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
# directory where cygwin will be installed | |
$cygwinroot="C:\cygwin64" | |
# choose URL from https://cygwin.com/mirrors.html | |
$mirror="http://mirrors.kernel.org/sourceware/cygwin/" | |
# packages to be installed on top of the base. Comma-separated, no spaces | |
$packages="gcc-core,make,openssl,openssl-devel,zlib-devel,curl,bc" | |
# version of tarsnap to install | |
$tarsnapdist=(Invoke-WebRequest -uri https://www.tarsnap.com/download/ -UseBasicParsing).Content -split "`n" | |
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 | |
#newline field separator | |
IFS=' | |
' | |
adapters=$(networksetup -listallnetworkservices | grep -v '*') | |
echo "setv6off" >&2 | |
for a in $adapters; do |
NewerOlder