-
You need Ubuntu 17 on a live usb. Ubuntu 16 does not appear to support the fancy CPUs
-
You need to switch from IDE mode to AHCI mode on the harddrive else, it won't find it.
- Run Command Prompt as Admin
- Invoke a Safe Mode boot with the command: bcdedit /set {current} safeboot minimal
- Restart the PC and enter your BIOS during bootup.
- Change from IDE to AHCI mode then Save & Exit.
- Windows 10 will launch in Safe Mode.
- Right click the Window icon and select to run the Command Prompt in Admin mode from among the various options.
-
Cancel Safe Mode booting with the command: bcdedit /deletevalue {current} safeboot
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
split -l $[ $(wc -l filename|cut -d" " -f1) * percentage / 100 ] filename |
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
split | |
wc | |
grep | |
sed | |
tee |
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
DELETE FROM tablename | |
WHERE id IN ( | |
SELECT id | |
FROM (SELECT id, | |
ROW_NUMBER() OVER (partition BY column1, column2, column3 ORDER BY id) AS rnum | |
FROM tablename) t | |
WHERE t.rnum > 1); |
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
sudo netstat -lpn | |
https://www.digitalocean.com/community/tutorials/how-to-add-swap-space-on-ubuntu-16-04 | |
Something like | |
swapoff -a | |
fallocate 4G /swapfile | |
mkswap /swapfile | |
swapon /swapfile |
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
sudo netstat -lpn | |
https://www.digitalocean.com/community/tutorials/how-to-add-swap-space-on-ubuntu-16-04 | |
Something like | |
swapoff -a | |
fallocate 4G /swapfile | |
mkswap /swapfile | |
swapon /swapfile |
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
JAVA_HOME=... | |
SPARK_HOME=... | |
SPARK_SCALA_VERSION=... |
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
psql -e \copy (select * from py_killer) to /tmp/eat_me_numpy.csv |
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
pg_restore -v -U dev -W -d kalories_galore -n public -O ./muffin.dmp |
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
grep -lr --exclude-dir=".git" -e "oldword" . | xargs sed -i "s/oldword/newword/g" |
NewerOlder