-
Make bootable usb drive
-
Disable secure boot and fast boot from BIOS settings
-
Boot into USB
- EITHER:
- from Grub menu, press 3 and add "acpi=off" parameter to linux command.
- press ctrl+x to boot
- OR:
- Boot in compatibility mode
- EITHER:
-
Install Linux (currently trackpad is not working ATM so use an external mouse)
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
| { | |
| "version": "0.2.0", | |
| "configurations": [ | |
| { | |
| "name": "Debug CRA Tests", | |
| "type": "node", | |
| "request": "launch", | |
| "program": "${workspaceRoot}/node_modules/.bin/react-scripts", | |
| "args": ["test", "${relativeFile}", "--runInBand", "--no-cache", "--watchAll=false"], |
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
| ### Step by step breakdown #### | |
| # Display branches from one remote | |
| # git ls-remote --heads origin | sed 's?.*refs/heads/??' | |
| # Exclude the master branch | |
| # git ls-remote --heads origin | sed 's?.*refs/heads/??' | grep -v 'master' | |
| # Exclude the many branch | |
| # git ls-remote --heads origin | sed 's?.*refs/heads/??' | grep -v 'master\|develop\|branch3' |
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
| # Backup | |
| docker exec CONTAINER /usr/bin/mysqldump -u root --password=root DATABASE > backup.sql | |
| # Restore | |
| cat backup.sql | docker exec -i CONTAINER /usr/bin/mysql -u root --password=root DATABASE | |
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
| # Copy the file ID from the url and put in the command below | |
| wget --save-cookies cookies.txt --keep-session-cookies --no-check-certificate 'https://docs.google.com/uc?export=download&id=__FILEID__' -O- | sed -rn 's/.*confirm=([0-9A-Za-z_]+).*/Code: \1\n/p' | |
| # Command Above will return a Code . use that code in the command below. | |
| wget --load-cookies cookies.txt 'https://docs.google.com/uc?export=download&confirm=__CODE__&id=__FILEID__' |
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
| sed -r 's/([a-z]+)([A-Z][a-z]+)/\1_\l\2/g' file.txt |
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
| git diff --name-only | xargs -I{} sh -c 'git diff {} > {}.patch' | |
| ls ./**/*.patch | xargs -I{} sh -c 'git apply {}' |
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
| # use sudo to remove packages install through root user | |
| [sudo] cat requirements/development.txt | xargs -n 1 [sudo] pip [install | uninstall] -y |
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
| If you cannot ssh into vagrant box and it requires a password everytime. use following commands: | |
| ```sh | |
| ssh-keygen -f ~/.vagrant.d/insecure_private_key | |
| ssh-copy-id -i ~/.vagrant.d/insecure_private_key -p 2222 [email protected] | |
| ``` |
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
| makedir ~/work/arbisoft/ucsd/edx -p | |
| cd ~/work/arbisoft/ucsd | |
| virtualenv env | |
| source env/bin/activate | |
| mkdir edx | |
| cd edx | |
| git clone https://github.com/edx/devstack.git |