-
Mount .dmg file (dbl-click)
-
Open Terminal.
cd /Volumes/Samsung\ DeX
sudo installer -verboseR -dumplog -pkg Install\ Samsung\ DeX.pkg -target /
- Reboot
# Initialize | |
./bootstrap-vcpkg.sh -disableMetrics | |
# Export (online PC) | |
./vcpkg export [pkg_names] --zip | |
# Import (vcpkg folder of offline PC) | |
unzip [zip_file_name] | |
# Remove all packages including 'boost' |
# Network scripts | |
nslookup www.naver.com | |
nslookup www.naver.com 8.8.8.8 | |
dig www.naver.com | |
sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder; sudo killall mDNSResponderHelper |
#https://www.tecmint.com/linux-network-bandwidth-monitoring-tools/ | |
nload | |
sudo iftop | |
sudo nethogs | |
sudo iptraf |
#!/bin/bash | |
# Use a while loop to read each line of output from ps | |
while read -r line; do | |
if [[ $line == *-cpu* ]]; then | |
#echo "$line" | |
pid=$(echo $line | awk '{print $1}') | |
no=$(echo $line | awk '{print $2}') | |
cmd=$(echo $line | awk '{$1=$2=""; print $0}') | |
cpu=$(echo $cmd | grep -oE '\-cpu [0-9]+' | awk '{print $2}') |
docker exec -u 0 -it {ContainerName} bash |
Mount .dmg file (dbl-click)
Open Terminal.
cd /Volumes/Samsung\ DeX
sudo installer -verboseR -dumplog -pkg Install\ Samsung\ DeX.pkg -target /
#!/bin/sh | |
if [ -z "$1" ]; then | |
echo "list_old_files.sh [files_to_find]" | |
exit 1 | |
fi | |
set -x #echo on | |
## remove files older than specific date |
dotnet nuget locals all -l |
#!/usr/bin/env python | |
# https://gist.github.com/ikoblik/7089165 | |
"""A simple utility to restore file creation and modification | |
dates back to their original values from EXIF. | |
This script requires exif module to be installed or the exif | |
command line utility to be in the path. |
NODE_OPTIONS=--max_old_space_size=8192 npm install |