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 | |
| # | |
| # Usage: | |
| # ./get_github_release.sh | |
| # ./get_github_release.sh organisation/Reponame | |
| # | |
| ORG_SLASH_REPO=${1:-microsoft/ApplicationInsights-Java} | |
| # echo $ORG_SLASH_REPO | |
| LATEST=$(curl -s https://api.github.com/repos/${ORG_SLASH_REPO}/releases/latest) | |
| #LATEST=$(cat latest.json) |
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
| #!/usr/bin/env bash | |
| # This script will look for substring <PATTERN> in all files pointed in $RUNTIME_PATH_REPLACE and replace it accordingly. | |
| # substring patterns must be defined in with environment variables with name like "RUNTIME_REPLACE_<PATTERN>" | |
| # and value of that variable will be replacement substring. | |
| # So if you have $ENV::RUNTIME_REPLACE_MY_COOL_SUBSTRING="my not so cool string" | |
| # then all occurances of "MY_COOL_SUBSTRING" in files mentioned in $RUNTIME_PATHS_REPLACE (space separated list with globs) | |
| # will be replaced with "my not so cool string" | |
| if [ -z "$RUNTIME_PATHS_REPLACE" ] ; then |
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/sh | |
| GIT_WINDOWS="/mnt/c/Program Files/Git/cmd/git.exe" | |
| GIT_LINUX="/usr/bin/git" | |
| case "$(pwd -P)" in | |
| /mnt/?/*) exec "$GIT_WINDOWS" "$@" | sed "s#^\([A-E]\):/#/mnt/\L\1/#" ;; | |
| *) exec "$GIT_LINUX" "$@" ;; | |
| esac |
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 | |
| docker history --no-trunc "$1" | \ | |
| sed -n -e 's,.*/bin/sh -c #(nop) \(MAINTAINER .*[^ ]\) *0 B,\1,p' | \ | |
| head -1 | |
| docker inspect --format='{{range $e := .Config.Env}} | |
| ENV {{$e}} | |
| {{end}}{{range $e,$v := .Config.ExposedPorts}} | |
| EXPOSE {{$e}} | |
| {{end}}{{range $e,$v := .Config.Volumes}} | |
| VOLUME {{$e}} |
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
| ; Copyright 2014 Pololu Corporation | |
| [Strings] | |
| DriverPackageDisplayName="Davs A-Star Drivers" | |
| ManufacturerName="Davs Corporation" | |
| ServiceName="USB RS-232 Emulation Driver" | |
| astar.Bootloader.Name="Davs A-Star 32U4 Bootloader" | |
| astar.Sketch.Name="Davs A-Star 32U4" | |
| [DefaultInstall] |
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
| #uid=1013(user1) gid=1016(user1) | |
| #wona change to 9002/9002 | |
| olduid=`getent passwd user1 | cut -d ":" -f 3` | |
| oldgid=`getent passwd user1 | cut -d ":" -f 4` | |
| echo olduid=$olduid; oldgid=$oldgid | |
| #olduid=1013 | |
| #oldgid=1016 |
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 | |
| SID_OLD=BFCOLDSID | |
| SID_NEW=I2STNEWSID | |
| if ! grep $SID_NEW /etc/oratab | |
| then | |
| echo "$SID_NEW:/opt/oracle/product/12.1.0.1/dbhome_1:N:" >> /etc/oratab | |
| fi |