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
<a href="#top">Back to top</a> |
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
wget -O - https://raw.githubusercontent.com/laurent22/joplin/dev/Joplin_install_and_update.sh | bash | |
#git master | |
wget -O - https://raw.githubusercontent.com/laurent22/joplin/master/Joplin_install_and_update.sh | bash |
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 bcrypt | |
import hashlib | |
import os | |
salt = os.environ.get('userImportSalt') | |
def createEncryptedValue(value): | |
md5Hash = hashlib.md5(str(value).encode('utf-8')).hexdigest() | |
return bcrypt.hashpw(md5Hash.encode('utf-8'), salt.encode('utf-8')).decode("utf-8") |
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
New-Item -Type file -Force $profile | |
code $profile | |
#in profile | |
Set-Alias iAmAnAlias "C:\Path\example.py" |
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
#in .py path or everything in ide | |
pip install pyinstaller | |
pyinstaller --onefile pythonScriptName.py |
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
manage-bde -protectors C: -get |
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
c:\python27\python.exe c:\somescript.py %* |
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
Copy-Item -Path "C:\Logfiles\*" -Destination "C:\Drawings" |
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
#creating dependency list in IDE | |
pip freeze > requirements.txt | |
#creating new virtual environment | |
py -m venv /path/foldername | |
#copying all .py files in to venv path | |
#installing all dependencies | |
py -m pip install -r requirements.txt |
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
pwd ->shows current path | |
ls ->shows files in current path | |
ls -l ->shows files with right in current path | |
ls -la ->shows files with right in current path + invisible once | |
cd Downloads/ ->changes directory to folder "Downloads" | |
cd .. ->changes directory to folder above | |
cd ->changes directory to home folder | |
mkdir test ->creates a folder named "test" | |
touch test.txt ->to create a file named "test.txt" | |
wget https://en.wikipedia.org/wiki/Wget ->lets you download the wiki page to wget |
NewerOlder