start new:
tmux
start new with session name:
tmux new -s myname
| Windows Registry Editor Version 5.00 | |
| ; Default color scheme | |
| ; for Windows command prompt. | |
| ; Values stored as 00-BB-GG-RR | |
| [HKEY_CURRENT_USER\Console] | |
| ; BLACK DGRAY | |
| "ColorTable00"=dword:00000000 | |
| "ColorTable08"=dword:00808080 | |
| ; BLUE LBLUE |
| nnoremap <silent> y :<C-U>call MarkAndSetOpfunc()<CR>g@ | |
| vnoremap <silent> y :<C-U>call MarkYankAndJump()<CR> | |
| function! MarkAndSetOpfunc() | |
| let g:save_cursor = getpos(".") | |
| set opfunc=YankAndJumpBack | |
| endfunction | |
| function! MarkYankAndJump() | |
| let g:save_cursor = getpos(".") |
| ; This is a complete solution to map the CapsLock key to Control and Escape without losing the ability to toggle CapsLock | |
| ; We use two tools here - any remapping software to map CapsLock to LControl and AutoHotkey to execute the following script | |
| ; This has been tested with MapKeyboard (by Inchwest) | |
| ; This will allow you to | |
| ; * Use CapsLock as Escape if it's the only key that is pressed and released within 300ms (this can be changed below) | |
| ; * Use CapsLock as LControl when used in conjunction with some other key or if it's held longer than 300ms | |
| ; * Toggle CapsLock by pressing LControl/CapsLock + RControl | |
| ~*LControl:: |
| ################## | |
| # Privacy Settings | |
| ################## | |
| # Privacy: Let apps use my advertising ID: Disable | |
| Set-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\AdvertisingInfo -Name Enabled -Type DWord -Value 0 | |
| # To Restore: | |
| #Set-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\AdvertisingInfo -Name Enabled -Type DWord -Value 1 | |
| # Privacy: SmartScreen Filter for Store Apps: Disable | |
| Set-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\AppHost -Name EnableWebContentEvaluation -Type DWord -Value 0 |
| #!/usr/bin/bash | |
| # We're only processing one solr collection named notices | |
| for x in `seq 1 8`; do | |
| curl "http://localhost:8983/solr/admin/cores?action=UNLOAD&core=notices_shard${x}_replica3 | |
| rm -rf /var/lib/solr/data/notices_shard${x}_replica3/* | |
| mkdir -p /var/lib/solr/data/notices_shard${x}_replica3/data |
| dash_id=xxxx | |
| api_key=xxx | |
| app_key=xxx | |
| # 1. export | |
| curl -X GET "https://app.datadoghq.com/api/v1/dash/${dash_id}?api_key=${api_key}&application_key=${app_key}" > dash.json | |
| # 2. edit dash.json | |
| move "graphs", "title", "description" up one level in the json hierarchy, from being beneath "dash" to being at the same level |
I work as a full-stack developer at work. We are a Windows & Azure shop, so we are using Windows as our development platform, hence this customization.
For my console needs, I am using Cmder which is based on ConEmu with PowerShell as my shell of choice.
Yes, yes, I know nowadays you can use the Linux subsystem on Windows 10 which allow you to run Ubuntu on Windows. If you are looking for customization of the Ubuntu bash shell, check out this article by Scott Hanselman.
| # Description: Boxstarter Script | |
| # Author: Jess Frazelle <[email protected]> | |
| # Last Updated: 2017-09-11 | |
| # | |
| # Install boxstarter: | |
| # . { iwr -useb http://boxstarter.org/bootstrapper.ps1 } | iex; get-boxstarter -Force | |
| # | |
| # You might need to set: Set-ExecutionPolicy RemoteSigned | |
| # | |
| # Run this boxstarter by calling the following from an **elevated** command-prompt: |
jq — https://jqlang.org/ — "like sed for JSON data"
There are several options available for installing jq.
I prefer to use Homebrew: brew install jq