You shall need sudo access for all of these.
useradd <username>
passwd <username>
usermod -aG wheel <username>
// Update the machine first ? I like to do that often. You can skip it.
| //This might come handy when you want to inspect the fs of a dead container | |
| //or want to debug why it was not coming alright. | |
| docker container run -it --rm --entrypoint=/bin/bash <image id> | |
| // To transfer images from one host to another | |
| docker save <image id> > /tmp/image.tar | |
| docker load < /tmp/image.tar |
| [Desktop Entry] | |
| Version=1.0 | |
| Name=Firefox | |
| Comment=Browse the World Wide Web | |
| Icon=/opt/firefox/browser/icons/mozicon128.png | |
| Exec=/opt/firefox/firefox %u | |
| Terminal=false | |
| Type=Application | |
| Categories=Network;WebBrowser; | |
| Actions=Default;Mozilla;ProfileManager; |
| [Desktop Entry] | |
| Version=1.0 | |
| Type=Application | |
| Name=Visual Studio Code | |
| Icon=/opt/VSCode-linux-x64/resources/app/resources/linux/code.png | |
| Exec=/opt/vscode/bin/code | |
| Comment=Develop with pleasure! | |
| Categories=Development;IDE; | |
| Terminal=false | |
| StartupWMClass=visual-studio-code |
| I tried to do away the task with | |
| ``` | |
| KILL Request (JSON): | |
| POST /api/v1/scheduler HTTP/1.1 | |
| Host: masterhost:5050 | |
| Content-Type: application/json | |
| Mesos-Stream-Id: 130ae4e3-6b13-4ef4-baa9-9f2e85c3e9af | |
| { |
| use master | |
| go | |
| declare @dbnames nvarchar(max) | |
| declare @statement nvarchar(max) | |
| set @dbnames = '' | |
| set @statement = '' | |
| select @dbnames = @dbnames + ',[' + name + ']' from sys.databases where name like 'datbase_name_%' | |
| if len(@dbnames) = 0 | |
| begin | |
| print 'no databases to drop' |
| -- Finding open connections | |
| SELECT * FROM pg_stat_activity; | |
| -- Dropping open connections | |
| SELECT pg_terminate_backend(pid) FROM pg_stat_activity WHERE datname = <databasename> AND pid <> pg_backend_pid() AND state in ( 'idle'); | |
| -- Describing a table | |
| select column_name, data_type, character_maximum_length from INFORMATION_SCHEMA.COLUMNS where table_name = 'pg_stat_activity'; |
| $ npm config set proxy http://<username>:<password>@<proxy-server-url>:<port> | |
| $ npm config set https-proxy http://<username>:<password>@<proxy-server-url>:<port> |
Related Setup: https://gist.github.com/hofmannsven/6814278
Related Pro Tips: https://ochronus.com/git-tips-from-the-trenches/
You need to know about:
mvn dependency:tree
mvn dependency:analyze