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
Remove-EnvVarItem() { | |
local ITEM="${1}" VARNAME="${2:-PATH}" DELIMITER="${3:-:}" | |
export "${VARNAME}"="$( | |
set -f | |
IFS=$DELIMITER | |
declare -p "$VARNAME" &>/dev/null && ITEMS=(${!VARNAME}) || ITEMS=() | |
for i in ${!ITEMS[@]}; do | |
[ "${ITEMS[i]}" = "$ITEM" ] && unset ITEMS[i]; done | |
echo "${ITEMS[*]}" |
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
echo SUBSYSTEM==\"net\", ACTION==\"add\", ATTR{address}==\"`ip addr show \`ls /sys/class/net --color=never | egrep "^wl|^en"\` | grep link/ | awk '{print $2}'`\", NAME=\"net1\" > /etc/udev/rules.d/10-network.rules |
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
cmake_minimum_required(VERSION 3.2) | |
Project ( Game01 ) | |
set ( | |
SOURCES | |
main.cpp | |
) | |
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake") |