Skip to content

Instantly share code, notes, and snippets.

View soulaway's full-sized avatar

Dmitry Soloviev soulaway

View GitHub Profile
### Tunel remote 8080 to local 8089:
ssh -L 8089:10.122.3.6:8080 [email protected]
### Execute bash after ssh connection:
ssh -tt [email protected]<<EOT
# cd /home/theuser/pathToRemoteApp
# call mvn,ant,bash
exit
EOT
sudo apt update
# 16 x 128 = 2048
sudo dd if=/dev/zero of=/swapfile bs=128M count=16
sudo chmod 600 /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile
sudo swapon -s
sudo nano /etc/fstab >> /swapfile swap swap defaults 0 0
@soulaway
soulaway / bootstrap.min.css
Created July 24, 2024 22:52
bootstrap.min.css
/*!
* Bootstrap v2.0.4
*
* Copyright 2012 Twitter, Inc
* Licensed under the Apache License v2.0
* http://www.apache.org/licenses/LICENSE-2.0
*
* Designed and built with all the love in the world @twitter by @mdo and @fat.
*/
article, aside, details, figcaption, figure, footer, header, hgroup, nav,
@soulaway
soulaway / docker-wsl2.md
Created September 14, 2024 15:22 — forked from martinsam16/docker-wsl2.md
How to install wsl2 ubuntu + docker + docker-compose

Activate wsl2

dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
wsl --set-default-version 2

Install and Configure Ubuntu