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
| public class URLBuilder { | |
| public static String buildUrl(String baseUrl, Map<String, String> params) { | |
| if (params == null || params.isEmpty()) { | |
| return baseUrl; | |
| } | |
| String queryString = params.entrySet().stream() | |
| .map(entry -> String.format("%s=%s", | |
| URLEncoder.encode(entry.getKey(), StandardCharsets.UTF_8), | |
| URLEncoder.encode(entry.getValue(), StandardCharsets.UTF_8))) |
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
| for /d %%i in (*) do "C:\Path\To\7z.exe" a "%%i.zip" "%%i\" | |
| for /d %i in (*) do "C:\Path\To\7z.exe" a "%i.zip" "%i\" | |
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
Show hidden characters
| Add the "setting" section to your workspace settings.json file. (C:\<path to projecT>\<PROJECT>.code-workspace) | |
| { | |
| "folders": [ | |
| { | |
| "path": "." | |
| } | |
| ], | |
| "settings": { | |
| "java.configuration.updateBuildConfiguration": "automatic", |
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
| # choco install -y adobereader | |
| # choco install -y android-sdk | |
| # choco install -y androidstudio | |
| # choco install -y autohotkey.portable | |
| # choco install -y calibre | |
| # choco install -y clipx | |
| # choco install -y defraggler | |
| # choco install -y dotnet4.0 | |
| # choco install -y explorerplusplus | |
| # choco install -y fastcopy |
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
| curl -s https://api.github.com/orgs/twitter/repos?per_page=200 | ruby -rubygems -e 'require "json"; JSON.load(STDIN.read).each { |repo| %x[git clone #{repo["ssh_url"]} ]}' |
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
| wget --no-directories --no-host-directories --no-parent --restrict-file-names=windows --adjust-extension --span-hosts --convert-links --page-requisites -erobots=off http://www.theverge.com/2015/11/22/9772650/music-bass-science-explained-neuroscience-video |
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
| [Obsidian] | |
| definition-foreground = #678CB1 | |
| error-foreground = #FF0000 | |
| string-background = #293134 | |
| keyword-foreground = #93C763 | |
| normal-foreground = #E0E2E4 | |
| comment-background = #293134 | |
| hit-foreground = #E0E2E4 | |
| builtin-background = #293134 | |
| stdout-foreground = #678CB1 |
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
| # Execute with this command. | |
| START http://boxstarter.org/package/nr/url?https://gist.githubusercontent.com/darraghjmurphy/1718fca27ab5c4c81227/raw/9c2c4cb1c1ad8ab4d2fcdc8b1e2cc0fcf5ff46c5/boxstarter1.txt | |
| # A simple BoxStarter script for use with http://boxstarter.org/WebLauncher | |
| # Updates a Windows machine and installs a range of developer tools | |
| # Show more info for files in Explorer | |
| Set-WindowsExplorerOptions -EnableShowFileExtensions -EnableShowFullPathInTitleBar | |
| # Default to the desktop rather than application launcher |