- Based on https://askubuntu.com/a/293029/286776
- Installation date: 15-09-2018
- Additional notes based on my own experience
- The process describes a completely fresh installation with a complete repartitioning, however it should work fine when Windows is already installed (eg. brand new machine with Windows preinstalled).
- The process was conducted on Dell's XPS 15 9570 (2018) with specs:
- CPU: i7-8750H
- Screen: 4K with Touch
- RAM: 16 GB (original) / 32 GB (manually upgraded)
- Drive: 512 GB (SK Hynix PC401)
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
DECIMAL HEXADECIMAL DESCRIPTION | |
-------------------------------------------------------------------------------- | |
37748753 0x2400011 Linux EXT filesystem, rev 1.0, ext4 filesystem data, UUID=28dbe996-15f3-4532-93a3-2b880f220f22 | |
37799955 0x240C813 Linux EXT filesystem, rev 1.0, ext4 filesystem data, UUID=28dbe996-15f3-4532-93a3-2b880f220f22 | |
39191672 0x2560478 Unix path: /opt/usr/media/cred.conf' | |
39191742 0x25604BE Unix path: /opt/usr/media/cred.conf', error: No such file or directory | |
39217403 0x25668FB Unix path: /31457280/0/2/14/0/0/0 | |
39230619 0x2569C9B Unix path: /31457280/0/2/14/0/0/0 | |
39243835 0x256D03B Unix path: /31457280/0/2/14/0/0/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
=Navigating= | |
baseUrl = "http://site.com"; | |
open("/login"); | |
open("http://google.com"); | |
switchTo().frame($("#myFrame").toWebElement()); | |
=Alert= | |
switchTo().alert().accept(); |
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
int minute = 0, seconds = 30, waitingTime = 2; | |
Calendar currTime = Calendar.getInstance(); | |
Calendar timeSleep = (Calendar) currTime.clone(); | |
timeSleep.add(Calendar.MINUTE, minute); | |
timeSleep.add(Calendar.SECOND, seconds); | |
System.out.println(String.format("Now is %s:%s and I will wait until %s:%s", currTime.get(Calendar.MINUTE), currTime.get(Calendar.SECOND), | |
timeSleep.get(Calendar.MINUTE), timeSleep.get(Calendar.SECOND))); | |
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
public static void main(String[] args) { | |
int[] age = new int[3]; | |
age[0] = 16; | |
age[1] = 24; | |
age[2] = 30; | |
System.out.println(allValuesMatches(age)); | |
} |
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
// author: Dorin Brage | |
// repo: https://github.com/nirodg | |
long maxRotPtr = 1023; // Max potentiometr value | |
long totalDegr = 360; // Max degree | |
long rotationPtr = 0; // Will be fetch from the A0 input | |
const int sensorInput = 0; | |
void setup() { | |
Serial.begin(9600); | |
} |
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
public static <T> List<T> sortItem(List<T> sortList, int moveFrom, int moveTo) { | |
if (moveFrom == moveTo) { | |
// do nothing | |
return null; | |
} | |
boolean isLastPosition = (sortList.size() == moveTo + 1); | |
T currentElement = sortList.get(moveFrom); |
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 | |
# Stopping all containers | |
docker stop $(docker ps -a -q) | |
# Removing all containers | |
docker rm $(docker ps -a -q) | |
# Removing all volumes | |
docker volume rm `docker volume ls -q -f dangling=true` |