- Docker for Desktop can run on WSL 2 without any Virtual machine!
- WSL 2 is now available for stable Windows 10 (not just Insiders) via the (stable) Windows 10 May 2020 Update.
- WSL 2 is available for Windows Home editions, too, you don't need a Pro license!
- Docker for Desktop with WSL 2 eliminates many issues inherent to running a Linux VM and using shares into that VM.
- WSL 2 supports *nix permissions on Windows file systems mounted into WSL 2 (Postgres container mounts come into mind).
- WSL 2 also supports full GPU access – CUDA and such, too, since the 2021H2 November update even in non-insiders, stable!!
- VirtualBox (in recent version) [can now coexist with Hyper-V](https://us.informatiweb.net/tutorials/it/virtual
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
| { | |
| "name": "colors", | |
| "version": "0.1.0", | |
| "description": "", | |
| "main": "index.js", | |
| "scripts": { | |
| "color1": "echo '\\033[31mHello\\033[0m World'", | |
| "color2": "echo \"\\033[31mHello\\033[0m World\"" | |
| }, | |
| "keywords": [], |
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
| <cfset dNow = Now()> | |
| <cfset dateTimeVar = #dateTimeFormat( dNow, "yyyy.MM.dd HH:nn:ss" )# /> | |
| <cfdump var="#dNow#"> | |
| <cfdump var="#dateTimeVar#"> | |
| <cfscript> | |
| function fixedParseDateTime (dte, mask) { | |
| var sdf = createObject("java", "java.text.SimpleDateFormat").init(mask); | |
| return sdf.parse(dte); | |
| } |
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
| /* | |
| This snippet is esssentially the same as being in the Twitter longer tweets test, for tweetdeck. | |
| The Tweet length counter is fixed by tricking TweetDeck into counting up to 140 characters, twice, so you'll see 140 | |
| instead of 280 in the counter but going over 140 will give you another set of 140 charactrs. | |
| */ | |
| TD.services.TwitterClient.prototype.makeTwitterCall=function(b,e,f,g,c,d,h){c=c||function(){};d=d||function(){};b=this.request(b,{method:f,params:Object.assign(e,{weighted_character_count:!0}),processor:g,feedType:h});return b.addCallbacks(function(a){c(a.data)},function(a){d(a.req,"",a.msg,a.req.errors)}),b}; | |
| twttrTxt=Object.assign({},twttr.txt,{isInvalidTweet:function(){return!1},getTweetLength:function(x){return x=twttr.txt.getTweetLength.apply(this,arguments),x<140||x/140>2?x:x%140}}); |
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
| Application.cfc | |
| component extends=framework.one { | |
| this.ormenabled = true; | |
| this.datasource = "store"; | |
| this.ormSettings.dbCreate = "dropcreate"; | |
| this.ormSettings.logsql = true; | |
| this.ormSettings.dialect = "Oracle10g"; | |
| variables.framework.reloadApplicationOnEveryRequest = true; |
ffmpeg -i input.mp3 -filter_complex "[0:a]avectorscope=s=1920x1080,format=yuv420p[v]" -map "[v]" -map 0:a avectorscope.mp4
ffmpeg -i input.mp3 -filter_complex "[0:a]showcqt=s=1920x1080,format=yuv420p[v]" -map "[v]" -map 0:a showcqt.mp4
ffmpeg -i input.mp3 -filter_complex "[0:a]ahistogram=s=1920x1080,format=yuv420p[v]" -map "[v]" -map 0:a ahistogram.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
| git config --global diff.tool bc | |
| git config --global difftool.bc.path "C:\Program Files\Beyond Compare 4\BComp.exe" | |
| git config --global merge.tool bc | |
| git config --global mergetool.bc.path "C:\Program Files\Beyond Compare 4\BComp.exe" | |
| git config --global alias.mydiff "difftool --dir-diff --tool=bc --no-prompt" |
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/sh | |
| # Requires: audiowaveform (https://github.com/bbc/audiowaveform), metaflac, sox | |
| zoom_start=60 | |
| zoom_duration=4 | |
| zoom_end=$((zoom_start + zoom_duration)) | |
| if [ $# -lt 1 ] || [ "$1" == "--help" ] || [ "$1" == "-h" ]; then | |
| echo "Generates spectrogram and waveform images from flac files" |
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
| <!--- 00501 = Zipcode for Holtsville, NY. 10.50 = Dollar Display Amount | |
| 12/29/2016: ColdFusion 2016 indicates valid numeric, float and zipcode. Lucee 5 further indicates valid integer. | |
| 9/11/2017: Added CFParam & CFQueryParam Tests to see if value is considered a valid integer by those functions | |
| 9/11/2017: Added Dan Bracuk demo to remove commas and compare VAL() to Round(). (Fail) ---> | |
| <cfscript> | |
| /* http://cflib.org/udf/IsInt */ | |
| function isInt(varToCheck){ | |
| return ucase(isNumeric(varToCheck) and round(varToCheck) is vartoCheck); | |
| } |