link to PATH,
- Anaconda Python distribution installed and accessible
| lsblk | |
| sudo dd bs=4M if=/home/darker/Downloads/kali-linux-kde-2019.2-amd64.iso of=/dev/sda1 conv=fdatasync status=progress |
| # Compression with level 9: | |
| kgb -9 archive1.kgb ZX_Spectrum.html | |
| # Decompression: | |
| kgb archive.kgb |
| <style> | |
| /** This style is to simulate an input type="password" on a real input type="text"*/ | |
| @font-face { | |
| font-family: 'password'; | |
| font-style: normal; | |
| font-weight: 400; | |
| src: url(https://jsbin-user-assets.s3.amazonaws.com/rafaelcastrocouto/password.ttf); | |
| } | |
| .bePassword { | |
| font-family: 'password'; |
| ps -ef | grep python | |
| kill -9 PID | |
| pkill -9 python | |
| pkill -9 -f path/to/my_script.py |
| git checkout mabranch | |
| git merge master | |
| git checkout master | |
| git reset --hard HEAD~3 # Go back 3 commits. You *will* lose uncommitted work. | |
| # Or you can just specify the hash ID of the commit you want to reset like this : "git reset --hard ad23e27" | |
| git checkout mabranch |
| sudo apt update | |
| sudo apt upgrade | |
| sudo apt-get install libssl1.0.0 libssl-dev | |
| wget http://download-new.utorrent.com/endpoint/utserver/os/linux-x64-ubuntu-13-04/track/beta/ -O utorrent.tar.gz | |
| sudo tar -zxvf utorrent.tar.gz -C /opt/ | |
| sudo chmod 777 /opt/utorrent-server-alpha-v3_3/ | |
| ln -s /opt/utorrent-server-alpha-v3_3/utserver /usr/bin/utserver |
| docker ps — Lists running containers. Some useful flags include: -a / -all for all containers (default shows just running) and —-quiet /-q to list just their ids (useful for when you want to get all the containers). | |
| docker pull — Most of your images will be created on top of a base image from the Docker Hub registry. Docker Hub contains many pre-built images that you can pull and try without needing to define and configure your own. To download a particular image, or set of images (i.e., a repository), use docker pull. | |
| docker build — The docker build command builds Docker images from a Dockerfile and a “context”. A build’s context is the set of files located in the specified PATH or URL. Use the -t flag to label the image, for example docker build -t my_container . with the . at the end signalling to build using the currently directory. | |
| docker run — Run a docker container based on an image, you can follow this on with other commands, such as -it bash to then run bash from within the container. Also see Top 10 |
| from os import path as ospath | |
| from sys import path as syspath | |
| # moving the path outside of the current dir | |
| syspath.insert(1, ospath.join(syspath[0], '..')) | |
| import module | |
| # Or just in a specific parent directory in the sup folder: | |
| # import sys | |
| # sys.path.insert(0, '../module/') |