cp /usr/share/applications/ranger.desktop ~/.local/share/applications/ranger.desktop
nvim ~/.local/share/applications/ranger.desktop
Change these parameters to the respective values
Terminal=false
<script src="https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js"></script> | |
<div id="root"></div> |
import boto3 | |
from botocore.exceptions import ClientError | |
def upload_file_to_s3(file_name, bucket, object_name=None, folder_name=None): | |
""" | |
Upload a file to an S3 bucket. | |
Params: | |
file_name: File to upload |
import boto3 | |
from botocore.exceptions import ClientError | |
import os | |
def upload_file_to_s3(file_name, bucket, object_name=None, folder_name=None): | |
""" | |
Upload a file to an S3 bucket. | |
Params: | |
file_name: File to upload |
import boto3 | |
from botocore.exceptions import ClientError | |
import os | |
from datetime import datetime, timedelta | |
def upload_file_to_s3(file_name, bucket, object_name=None, folder_name=None): | |
""" | |
Upload a file to an S3 bucket. | |
Params: |
import boto3 | |
from botocore.exceptions import ClientError | |
import os | |
from datetime import datetime, timedelta | |
import schedule | |
import time | |
def upload_file_to_s3(file_name, bucket, object_name=None, folder_name=None): | |
""" | |
Upload a file to an S3 bucket. |
cp /usr/share/applications/ranger.desktop ~/.local/share/applications/ranger.desktop
nvim ~/.local/share/applications/ranger.desktop
Change these parameters to the respective values
Terminal=false
javascript: (function() { | |
if (/^https?:\/\/(www\.)?geeksforgeeks\./g.test(document.URL)) { | |
document.querySelector(".login-modal-div").style.display = "none"; | |
window.onscroll = null; | |
document.body.style.position = "initial"; | |
} else alert("This feature only works in GeeksForGeeks site"); | |
})(); |
# Write functions in profile to persist | |
# > notepad $profile | |
# Paste the below functions. | |
Function ssh-prod { | |
ssh -i C:\Users\Pushp\.ssh\prodPemFile.pem [email protected] | |
} | |
Function pgadmin { | |
$message = "Go to 127.0.0.1:5050 and login with email: [email protected] and password: 1234" | |
docker run -d -t -i -e PGADMIN_DEFAULT_EMAIL='[email protected]' -e PGADMIN_DEFAULT_PASSWORD='1234' -p 5050:80 --name pgadmin dpage/pgadmin4 |
import logging | |
from os import getenv | |
from fastapi import FastAPI | |
from multiprocessing import Queue | |
from logging_loki import LokiQueueHandler | |
app = FastAPI() | |
loki_logs_handler = LokiQueueHandler( | |
Queue(-1), |
version: "3" | |
services: | |
fastapi: | |
build: . | |
ports: | |
- "8000:80" | |
depends_on: | |
- loki | |
environment: |