| name | govuk-style | |||||||
|---|---|---|---|---|---|---|---|---|
| description | Write and edit in GOV.UK / GDS house style — plain English, active voice, front-loaded content, sentence case, and no bold or italics for emphasis. Use when writing or editing reports, research write-ups, guidance, documentation, summaries, or any prose where clarity and accessibility matter. | |||||||
| user-invokable | true | |||||||
| args |
|
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
| # Ref - https://superuser.com/questions/573602/chrome-not-saving-passwords-and-not-auto-filling-existing-login-passwords/1325741#1325741 | |
| """ | |
| If the settings to store passwords are enabled, but it still doesn't work, removing the password database might help. | |
| Here are steps: | |
| Quit Chrome. |
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
| Ref : https://news.ycombinator.com/item?id=22672682 | |
| You can also do a per-directory _global_ git configuration, e.g. | |
| in .gitconfig, you say: | |
| [user] | |
| name = Me Myself | |
| email = personal@example.com | |
| signingkey = D34DB44F |
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
| Python Configuration | |
| ====================== | |
| Find all versions : ls -ls /usr/bin/python* | |
| Manage Active Version | |
| ========================== | |
| Ref: http://web.mit.edu/6.00/www/handouts/pybuntu.html |
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
| #Install build libraries | |
| sudo apt-get install build-essential libssl-dev libgflags-dev libreadline-dev libsqlite3-dev libsnappy-dev zlib1g-dev libbz2-dev liblz4-dev | |
| #If using Python3.7 via Dead snakes PPA install python3.7-dev | |
| sudo apt-get install python3.7-dev | |
| #Clone repo | |
| git clone https://github.com/facebook/rocksdb.git | |
| #build locally (https://github.com/facebook/rocksdb/blob/master/INSTALL.md) |
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
| """gunicorn WSGI server configuration.""" | |
| from multiprocessing import cpu_count | |
| from os import environ | |
| def max_workers(): | |
| return cpu_count() * 2 + 1 | |
| # Config Properties | |
| bind = '0.0.0.0:' + environ.get('PORT', '8080') | |
| max_requests = 1000 |
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
| # Save file as ~/.ssh/config | |
| # Add permissions chmod 600 ~/.ssh/config | |
| # Optional permissions chmod $USER ~/.ssh/config | |
| ##default for all hosts## | |
| Host * | |
| ForwardAgent No | |
| ForwardX11 no | |
| Compression yes |
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
| # run on win computer / r version | |
| setwd("C:/Users/pavan/RLibrary/") # or any other existing temp directory | |
| packages <- installed.packages()[,"Package"] | |
| save(packages, file="Rpackages") | |
| # run on ubuntu computer / r version | |
| setwd("/RLibrary") # or any other existing temp directory | |
| load("Rpackages") | |
| for (p in setdiff(packages, installed.packages()[,"Package"])) |
NewerOlder
