LDFLAGS="-I/opt/homebrew/Cellar/openssl@3/3.1.1/include -L/opt/homebrew/Cellar/openssl@3/3.1.1/lib" pip install psycopg2
brew install libpq --build-from-source
| [Unit] | |
| Description=Your Service Description | |
| After=network.target | |
| [Service] | |
| User=your_username | |
| Group=your_groupname | |
| WorkingDirectory=/path/to/your/script | |
| ExecStart=/usr/bin/python3 /path/to/your/script.py >> /path/to/stdout.log 2>> /path/to/stderr.log | |
| Restart=always |
| import ast | |
| import re | |
| def SafeExec(code, allowed_globals=None, allowed_builtins=None, not_allowed_chars=None): | |
| allowed_globals = allowed_globals or {} | |
| allowed_builtins = allowed_builtins or {} | |
| builtins = {"__builtins__": allowed_builtins, "_": {}.__class__.__subclasses__()} | |
| not_allowed_chars = not_allowed_chars or "" | |
| try: |
| // copy and paste this to console | |
| // url to console: https://www.linkedin.com/in/<username>/details/certifications/ | |
| let getCertification = [...document.querySelectorAll("ul.pvs-list li.pvs-list__paged-list-item")]; | |
| let certifications = []; | |
| getCertification.forEach(ele => { | |
| let certification = [...new Set(ele.outerText.split("\n"))]; | |
| let urlCertification = ele.querySelector("a.full-width").href; |
| #!/usr/bin/env bash | |
| while getopts p:i: flag | |
| do | |
| case "${flag}" in | |
| p) platform=${OPTARG};; | |
| i) container_id=${OPTARG};; | |
| esac | |
| done |
| import os | |
| import csv | |
| import json | |
| import time | |
| import argparse | |
| from faker import Faker | |
| from decimal import Decimal | |
| from typing import List, Dict, Any | |
| fake_data: Faker = Faker() |
| choice;id;hydro1;hydro2;hydro3;organic1;organic2;organic3;price1;price2;price3 | |
| 3;1;1;1;0;1;0;0;200;300;0 | |
| 2;1;1;1;0;0;0;0;400;100;0 | |
| 1;1;1;0;0;0;1;0;100;400;0 | |
| 1;1;0;1;0;1;1;0;400;100;0 | |
| 2;1;1;0;0;0;1;0;300;200;0 | |
| 2;1;1;0;0;1;0;0;300;200;0 | |
| 1;1;1;0;0;0;1;0;200;300;0 | |
| 2;1;0;0;0;1;1;0;100;400;0 | |
| 2;2;1;1;0;1;0;0;200;300;0 |
| function ClickConnect(){ | |
| console.log("Clicked on connect button"); | |
| document.querySelector("colab-connect-button").click() | |
| } | |
| setInterval(ClickConnect,60000) |
| // Delete playlist | |
| document.querySelector('#primary button[aria-label="Action menu"]').click(); | |
| document.querySelector("#items > ytd-menu-service-item-renderer:nth-child(3)").click(); |
| const allowPaste = e => { | |
| e.stopImmediatePropagation(); | |
| return true; | |
| }; | |
| document.addEventListener('paste', allowPaste, true); |