# Get the current commit hash of HEAD (the latest commit on the current branch)
git rev-parse @
# Get the current branch name (using "@" as shorthand for "HEAD" or the current branch)
git rev-parse --abbrev-ref @
# Commit with the current branch name as the commit message (useful for quick commits labeled by branch name)
git commit -m "$(git rev-parse --abbrev-ref @)"
$ cat Makefile
.PHONY: all
export AWS_PROFILE ?= acme
AWS_REGION ?= us-west-2
all:
@echo AWS_PROFILE=$(origin AWS_PROFILE)
@echo AWS_REGION=$(origin AWS_REGION)
<?xml version="1.0" encoding="utf-8" standalone="no"?><manifest xmlns:android="http://schemas.android.com/apk/res/android" android:compileSdkVersion="33" android:compileSdkVersionCodename="13" package="com.oculus.browser" platformBuildVersionCode="33" platformBuildVersionName="13"> | |
<uses-feature android:glEsVersion="0x00020000"/> | |
<uses-feature android:name="oculus.software.overlay_keyboard" android:required="false"/> | |
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/> | |
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/> | |
<uses-permission-sdk-23 android:name="android.permission.ACCESS_WIFI_STATE"/> | |
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/> | |
<uses-permission-sdk-23 android:maxSdkVersion="30" android:name="android.permission.BLUETOOTH_ADMIN"/> | |
<uses-permission-sdk-23 android:name="android.permission.BLUETOOTH_CONNECT"/> | |
<uses-permission-sdk-23 android:name="android.permission.BLUETOOTH_ADVERTISE"/> |
Run brew install homebrew/cask-versions/visual-studio-code-insiders
$ brew install homebrew/cask-versions/visual-studio-code-insiders
==> Tapping homebrew/cask-versions
Cloning into '/usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask-versions'...
remote: Enumerating objects: 257301, done.
remote: Counting objects: 100% (22133/22133), done.
remote: Compressing objects: 100% (346/346), done.
The default installed commands, such as date
, may not be compatible with general Linux systems.
$ date -d '+10 minutes' +%s
date: illegal option -- d
usage: date [-jnRu] [-I[date|hours|minutes|seconds]] [-f input_fmt]
[-r filename|seconds] [-v[+|-]val[y|m|w|d|H|M|S]]
[[[[mm]dd]HH]MM[[cc]yy][.SS] | new_date] [+output_fmt]
In a Linux server environment, it's best to follow the Filesystem Hierarchy Standard (FHS) for organizing files and directories. Based on the FHS, here are some common locations to consider for your application:
-
/opt
: If your application is a standalone package that doesn't interfere with the rest of the system, you can place it in/opt
. This is the common place for optional or third-party software. In this case, you would put your application into/opt/{my-name}/{application-name}
. -
/usr/local
: If your application is system-wide and can be shared among multiple users, you can place it in/usr/local
. This location is generally used for software that is not managed by the system's package manager. In this case, your application would go into/usr/local/{my-name}/{application-name}
. -
/home/{user}/
: If your application is intended to be used only by a specific user, you can place it in their home directory. In this case, you would put your application into `/home/{user}/{my-name}/{applica
BUILDKIT_PROGRESS=plain docker build -t tmp -f- . <<EOF
FROM --platform=linux/amd64 amazonlinux:2017.03.1.20170812
RUN yum update -y && yum install -y ca-certificates
RUN curl -fsSL https://rpm.nodesource.com/setup_18.x | bash -
EOF