Download the Intel oneAPI Base Toolkit for Linux install:
Download the Intel oneAPI HPC Toolkit for Linux and install:
import re,sys,subprocess | |
from colorama import init as colorama_init, Fore, Style | |
colorama_init() | |
keywords = [ | |
# provide keywords | |
] |
# My bash prompt to show datetime as well as git repo details | |
. /etc/bash_completion.d/git-prompt | |
export GIT_PS1_SHOWDIRTYSTATE=1 | |
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h \[\e[36m\][\D{%H:%M:%S %d-%b}]\[\e[m\]\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\033[0;33m$(__git_ps1 " (%s)")\033[0m\$ ' |
.notion-page-controls[style*='margin-top: 80px;']{ | |
margin-top: 0px !important; | |
} | |
.notion-record-icon.notranslate.notion-focusable{ | |
margin-top: 0 !important; | |
} | |
.whenContentEditable> div:nth-child(3){ | |
display: none; | |
} |
Download the Intel oneAPI Base Toolkit for Linux install:
Download the Intel oneAPI HPC Toolkit for Linux and install:
takes(){ # pass remote machine | |
case "$1" in | |
test) DIS_NUM='1' ;; | |
*) DIS_NUM='0' ;; | |
esac | |
ssh $1 "cd ~/Downloads; DISPLAY=:$DIS_NUM scrot screenshot.png" | |
fName=~/Downloads/.scr/screen_$(date -d "today" +"%Y_%m_%d=%H_%M").png | |
rsync -q $1:~/Downloads/screenshot.png $fName --remove-source-files | |
xdg-open $fName |
Open the playlist page in a browser and open the developer console and paste this JS code
var tmpLink = document.createElement('a');
tmpLink.setAttribute('href', 'data:text/plain;charset=utf-8,' + encodeURIComponent(
[...document.querySelectorAll("a#video-title")].map(e => {
let link = e.getAttribute('href')
let onlyLink = "https://www.youtube.com/" + link.split("&")[0]
return onlyLink
}).join("\n"))
);
Sub MacroSaveAsPDF() | |
'macro saves pdf either in the same folder where active doc is or in documents folder if file is not yet saved | |
' | |
Dim strPath As String | |
Dim strPDFname As String | |
strPDFname = ActiveDocument.Name | |
strPDFname = Left(strPDFname, InStr(strPDFname, ".") - 1) | |
If strPDFname = "" Then 'user deleted text from inputbox, add default name | |
strPDFname = "example" |
#-------------------------------- C Code ----------------------------- | |
#include <stdlib.h> | |
#include <stdio.h> | |
#include <time.h> | |
#include <string.h> | |
void format_time(char * argc, char * output, int *n){ |
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<style> | |
label { | |
display: block; | |
} |
{ | |
"workbench.colorTheme": "Monokai", | |
"workbench.iconTheme": "material-icon-theme", | |
"editor.fontSize": 16, | |
"editor.renderWhitespace": "boundary", | |
"editor.wordWrapColumn": 111, | |
"path-intellisense.showHiddenFiles": true, | |
"code-runner.fileDirectoryAsCwd": true, | |
"code-runner.ignoreSelection": true, | |
"gitlens.currentLine.scrollable": false, |