start new:
tmux
start new with session name:
tmux new -s myname
| #!/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 |
| ################## | |
| # 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 |
| ; 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:: |
| 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(".") |
| 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 |