Screen cheat sheet

Escape key All screen commands are prefixed by an escape key, by default C-a (that’s Control-a, sometimes written ^a). To send a literal C-a to the programs in screen, use C-a a. This is useful when when working with screen within screen. For example C-a a n will move screen to a new window on the screen within screen. Getting in screen -S… Continue reading Screen cheat sheet

Julia language Basics cheat sheet

String Theory! :Use ” or “”” for strings and ‘ for characters. println(“Hello, my name is $name.”) println(“That is $(num_fingers + num_toes) digits in all!!”)string(“I don’t know, but “, 😺, ” is too few.”)s3*s4 To handle errors:@assert *condition* “Error message” Tuple: myfavoriteanimals = (“penguins”, “cats”, “sugargliders”)myfavoriteanimals[1]You cannot do this: myfavoriteanimals[1] = “otters” Named Tuple: myfavoriteanimals =… Continue reading Julia language Basics cheat sheet

Install a jupyter hub with a terminal access to Linux Ubuntu 20.04 with docker

here open a terminal docker ps -a docker pull jupyterhub/jupyterhub docker run -it -p 8000:8000 –name jhubcontainer [jupyterhub/juoyterhub or the ID here] bash apt update apt-get update apt-get install -y git apt-get install npm nodejs python3 python3-pip git nano python3 -m pip install jupyterhub notebook jupyterlab npm install -g configurable-http-proxy apt-get update apt-get install zsh… Continue reading Install a jupyter hub with a terminal access to Linux Ubuntu 20.04 with docker

Understand the difference between sql statements

UNION ALL and UNION LIKE and ILIKE NOT and ! and <> DATE_PART() and DATE_TRUNC() UNION ALL and UNION UNIONThe UNION command is used to select related information from two tables, much like the JOIN command. However, when using the UNION command all selected columns need to be of the same data type. With UNION, only distinct values are selected. UNION ALLThe UNION ALL command is equal to the UNION command, except that UNION ALL selects all values. The difference… Continue reading Understand the difference between sql statements

Automate Teams with your first Python Alerting Bot

In many companies, Microsoft Teams is at the heart of corporate communications. You can talk with colleagues, plan and assist meetings, create Teams to share information and files within a project. As claimed, it is the hub of Microsoft collaboration. Today, let’s see how to empower Teams with automation and use it for sending personal or professional notifications.… Continue reading Automate Teams with your first Python Alerting Bot

اتصال گیت به سرور gitlab

بعد از git init روی فولدر مورد نظر و ساختن پروژه اون بالا این دستور ها رو توی git bash بزنین چند تا سوال میپرسه. همه رو رد کنین با اینتر. نیازی نیست چیزی وارد کنین. https://git…./-/profile/keys بعدش از همون ترمینال این کامند رو بزنین یه متنی نشون میده اون رو کپی کنین توی باکسی… Continue reading اتصال گیت به سرور gitlab

How to Install Anaconda on Ubuntu

Prerequisites A user account with sudo privileges Access to a command line/terminal window (Ctrl-Alt-T) Steps For Installing Anaconda Our tutorial on installing Anaconda on Ubuntu 18.04 or Ubuntu 20.04 includes downloading the latest version, verifying data integrity of the installer, and running the bash install script. Step 1: Update Local Package Manager Start by updating the local… Continue reading How to Install Anaconda on Ubuntu

میانبر Visual Studio

مرتب کردن کدها CRTL + K + D کامنت دستورات انتخاب شده CTRL+K+C آنکامنت دستورات انتخاب شده CTRL+K+U بالا و پایین کردن یک خط کد ALT+up/down برگشتن کرسر سر جای قبلی CTRL + – بالای صفحه کلید رفتن به خط تعریف F12 یا CTRL + کلیک منوی Quick Action روی لاین خطا:‌ CTRL + .… Continue reading میانبر Visual Studio