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
| ############################################################################### | |
| # Jaron Lanier's 52 Definitions of Virtual Reality | |
| # Taken from Dawn of the New Everything: | |
| # https://www.amazon.com/Dawn-New-Everything-Encounters-Reality/dp/1627794093/ | |
| 1. A twenty-first-century art form that will weave together the three great twentieth-century arts: cinema, jazz, programming. | |
| 2. A simulated new frontier that can evoke a grandiosity recalling the Age of Exploration or the Wild West. | |
| 3. Hope for a medium that could convey dreaming. |
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
| ########################################################### | |
| # use xmlstarlet to extract info from xml via xpath queries | |
| $ xmlstarlet sel -t -v "//element/path/@attribute" file.xml |
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
| // ***************** | |
| // Types of Shaders: | |
| // * Surface Shader: | |
| // lit shaders that affect lighting of an object | |
| // * Unlit Shader: | |
| // vertex and fragment shader, control vertex properties | |
| // * Image Effect Shader: |
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
| /* right click on an entry in the network log, select Copy All as Har | |
| * type in console: x = [paste] | |
| * paste the following JS code into the console | |
| * copy the output, paste into a file | |
| * then wget -i [that file] | |
| */ | |
| (function(logObj, mime) { | |
| var results = []; | |
| logObj.log.entries.forEach(function (entry) { | |
| if (mime && entry.response.content.mimeType !== mime) return; |
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
| usermod -aG localadmins username | |
| usermod -aG sshusers username |
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
| $ scp user-id@host-name.com:/remote-folder/filename /local-folder | |
| #example | |
| $ scp fred@remoteserver.com:/remote/file.txt . |
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
| brew install ffmpeg --with-vpx --with-vorbis --with-libvorbis --with-vpx --with-vorbis --with-theora --with-libogg --with-libvorbis --with-gpl --with-version3 --with-nonfree --with-postproc --with-libaacplus --with-libass --with-libcelt --with-libfaac --with-libfdk-aac --with-libfreetype --with-libmp3lame --with-libopencore-amrnb --with-libopencore-amrwb --with-libopenjpeg --with-openssl --with-libopus --with-libschroedinger --with-libspeex --with-libtheora --with-libvo-aacenc --with-libvorbis --with-libvpx --with-libx264 --with-libxvid |
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
| ffmpeg -i input.mp4 -c:v libx264 -crf 24 -b:v 250k -c:a aac output.mp4 |
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 | |
| for i in public/static/audio/*.aif ; do | |
| ffmpeg -i "$i" -f mp3 -acodec libmp3lame -ab 192000 -ar 44100 public/static/audio/$(basename "${i/.aif}").mp3 | |
| ffmpeg -i "$i" -f ogg -acodec libvorbis -ab 192000 -ar 44100 public/static/audio/$(basename "${i/.aif}").ogg | |
| ffmpeg -i "$i" -f wav -acodec pcm_s32le -ab 192000 -ar 44100 public/static/audio/$(basename "${i/.aif}").wav | |
| done |