This file contains 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
#!/bin/bash | |
# Thanks to: https://gitlab.com/Aviksaikat/snap_fix_kali_debian | |
# Snaps got disconnected (?) after Ubuntu upgrade. This fixes them. | |
# Lists all snaps | |
# Cut to get their names (first field) | |
# Tail to ignore first line | |
# While there's a new line, disable that snap then enable it | |
snap list | cut -d ' ' -f1 | tail -n +2 | while read line; do sudo snap disable $line && sudo snap enable $line; done |
This file contains 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
#!/bin/bash | |
start() { | |
sudo docker run --rm --name postgres -e POSTGRES_PASSWORD=postgres -d -p 5432:5432 -v /home/drugo/docker/volumes/postgres:/var/lib/postgresql/data postgres | |
return 0 | |
} | |
stop() { | |
sudo docker stop postgres | |
return 0 |
This file contains 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
#!/bin/bash | |
start() { | |
sudo docker run --rm --name mysql -p 4406:3306 -v /home/drugo/docker/volumes/mysql:/var/lib/mysql -e MYSQL_ROOT_PASSWORD=mysql -e MYSQL_DATABASE=mysql -e MYSQL_USER=mysql -e MYSQL_PASSWORD=mysql -d mysql | |
echo "MySQL docker instance exposed on local port 4406" | |
return 0 | |
} | |
stop() { | |
sudo docker stop mysql |
This file contains 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
import java.io.*; | |
import java.math.*; | |
import java.security.*; | |
import java.text.*; | |
import java.util.*; | |
import java.util.concurrent.*; | |
import java.util.regex.*; | |
public class Solution { |
This file contains 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
import java.io.*; | |
import java.math.*; | |
import java.security.*; | |
import java.text.*; | |
import java.util.*; | |
import java.util.concurrent.*; | |
import java.util.regex.*; | |
public class Solution { |
This file contains 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
import java.io.*; | |
import java.math.*; | |
import java.security.*; | |
import java.text.*; | |
import java.util.*; | |
import java.util.concurrent.*; | |
import java.util.regex.*; | |
public class Solution { |