Some complex but useful Linux commands

13:13:00 3 Comments

Find upgradable bower dependencies
bower list | sed 's/^[├└─┬│ ]*//g' | sort | uniq | egrep 'available|latest'

Find all bower dependencies
bower list | grep '#' | sed 's/^[├└─┬│ ]*//g' | sed 's/#.*//g' | sort | uniq

Find declared bower dependencies
awk '/dependencies/{f=1;next} /resolutions/{f=0} f' bower.json | grep -v '}' | sed 's/^[ "]*//g' | sed 's/".*//g' | sort | uniq

Find unlisted/undeclared bower dependencies
diff <(bower list | grep '#' | sed 's/^[├└─┬│ ]*//g' | sed 's/#.*//g' | sort | uniq) <(awk '/dependencies/{f=1;next} /resolutions/{f=0} f' bower.json | grep -v '}' | sed 's/^[ "]*//g' | sed 's/".*//g' | sort | uniq)

Check custom elements used vs imports
diff <(grep -hroE --include \*.html "[/\"][a-zA-Z0-9]+(-[a-zA-Z0-9]+)+\.html" . | cut -c2- | rev | cut -c6- | rev | sort | uniq) <(grep -hroE --include \*.html "<[a-zA-Z0-9]+(-[a-zA-Z0-9]+)+[ >]" . | tr -d '< >' | sort | uniq) -y

Search and replace recursively
grep -lrZ --include \*filepattern "searchtext" . | xargs -0 -l sed -i -e 's/searchtext/newtext/g'
SSH Tunnelling from Local to Remote
ssh -f -v -4 user@ssh_server_ip -p <ssh_port> -L <local_machine_bind_ip>:<local_listening_port>:<accessing_ip_from_server>:<accessing_port> -N


  1. Blackjack is a simple card sport with a component of ability to it — and the chances of successful aren't too unhealthy. Several folks can play at one time, but every is simply attempting to beat the supplier, do not appear to be} enjoying in} towards one another. The supplier and the participant compete to see whose 메리트카지노 hand comes closest to 21 without going over (which recognized as} a "bust").

  2. Even in the course of the first 1xbet quarter of the 12 months, they recorded nearly double their earnings. Try half in} quantity of} rounds of stay Roulette or stay Blackjack at the prime NetEnt Casinos whereas you’re on the bus house or on a break. There’s no must download something, as NetEnt Casinos recognise your device and modify to any size screen. Rest assured that each one|that every one} the identical features can be found to you through our cellular casinos.

  3. 3D models Bike Helmets additionally be|may additionally be|can be} created using the strategy of Photogrammetry with dedicated applications similar to RealityCapture, Metashape and 3DF Zephyr. Cleanup and further processing could be carried out with applications similar to MeshLab, the GigaMesh Software Framework, netfabb or MeshMixer. Photogrammetry creates models using algorithms to interpret the form and texture of real-world objects and environments based on photographs taken from many angles of the subject. Substance 3D Sampler also can take data from the true world and convert them into 3D digital belongings.