show dbs
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
| ####### ####### ## ## ####### ####### ## ## | |
| ## ## ## ## ## ## ## ## ## ## ## | |
| ####### ## ## ## ## ####### ####### ## ## | |
| ## ## ## ## ## ## ## ## ## ## ## | |
| ####### ####### ####### ## ## ## ## ### |
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
| #include <stdio.h> | |
| #include <time.h> | |
| #include <stdlib.h> | |
| #include <conio.h> | |
| #include <time.h> | |
| #include <ctype.h> | |
| #include <time.h> | |
| #include <windows.h> | |
| #include <process.h> |
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
| #include <stdio.h> | |
| int main(void) { | |
| // Red text and blue background | |
| puts("\x1b[31m\x1b[44mHello, World"); // Reset colors to defaults | |
| printf("\x1b[0m"); | |
| } |
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
| set nocompatible "be iMproved, required | |
| set exrc | |
| set encoding=UTF-8 | |
| set rtp+=$HOME/.vim/bundle/Vundle.vim | |
| call vundle#begin('$HOME/.vim/bundle/') | |
| " ==== PLUGINS ==== |
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
| 1. Make a directory for the django project | |
| 2. Install 'pipenv' in the system environment if not already | |
| 3. Create a virtual environment by running 'pipenv shell' (the location of the venv defaults to '~/user/.virtualenv/', to make it live inside the current directory, make an empty folder named '.venv', pipenv automatically detects that folder and creates the virtual environment inside that folder) | |
| 4. Now install django by running 'pipenv install django' (installs the latest version) | |
| 5. Start the project by running 'django-admin startproject $NAME_OF_THE_PROJECT' | |
| 6. To start the live server cd into the project and run 'python manage.py runserver port(optional)' | |
| 7. To make a new app inside that project run 'python manage.py startapp $NAME_OF_THE_APP' |
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
| const int N = 9; | |
| class Solution { | |
| bool canPlace(vector<vector<char>>& board, int i, int j, char x) { | |
| // row check | |
| for(int c = 0; c<9; c++) { | |
| if(board[i][c] == x) { | |
| return 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
| current_date = %A_DD% | |
| Run, msedge https://adventofcode.com/2022/day/%current_date%/input | |
| Run, cmd.exe,,,myCMD | |
| WinWaitActive, ahk_pid %myCMD% | |
| Send cd %HOME%/cp/aoc/2022 && mkdir day%current_date% && cd day%current_date% | |
| Send {Enter} | |
| Send touch input.txt sample.txt && code . | |
| Send {Enter} |
Structured list of essential Linux commands you need when working on servers remotely via SSH. This isn't every command under the sun, but a practical toolbox covering systemd, networking, users, permissions, files, processes, and SSH.
- Connect to a server:
ssh user@hostname