Go to the .service file
sudo vi /usr/lib/systemd/system/resilio-sync.service
Change these lines with your current username:
User=ikon
Group=ikon
Environment="SYNC_USER=ikon"
Environment="SYNC_GROUP=ikon"
Go to the .service file
sudo vi /usr/lib/systemd/system/resilio-sync.service
Change these lines with your current username:
User=ikon
Group=ikon
Environment="SYNC_USER=ikon"
Environment="SYNC_GROUP=ikon"
IRB.conf[:USE_PAGER] = falseThere are three ways to find out where a method is defined in Ruby using IRB:
source_location defined on the Method objectshow_source commandls (for displaying the object but not the source file)| package main | |
| import ( | |
| "embed" | |
| "encoding/json" | |
| "fmt" | |
| "io" | |
| "io/fs" | |
| "log" | |
| "net/http" |
| package main | |
| import ( | |
| "embed" | |
| "fmt" | |
| "io/fs" | |
| "net/http" | |
| "github.com/labstack/echo/v4" | |
| ) |
| import argparse | |
| import os | |
| import re | |
| def sanitize_filename(filename): | |
| # Replace characters not allowed in Windows filenames with underscores | |
| sanitized = re.sub(r'[<>:"/\\|?*]', "_", filename) | |
| # Remove non-ASCII characters | |
| sanitized = re.sub(r"[^\x00-\x7F]", "_", sanitized) |
| from pathlib import Path | |
| from textual import events, on | |
| from textual.app import App, ComposeResult | |
| from textual.containers import Container, Horizontal | |
| from textual.screen import ModalScreen | |
| from textual.widgets import Button, DataTable, Footer, Header, Label | |
| from rich.text import Text |
| # example: | |
| # $env:AWS_PROFILE="xxx" | |
| # python .\main.py --days 3 --path "s3://mybucket/mydir" | |
| import argparse | |
| import boto3 | |
| def main(): |
| import pexpect | |
| def otp(): | |
| import requests | |
| vault_id = "xxxxxxxxx" | |
| item_id = "xxxxxxxx" | |
| url = f"http://localhost:18080/v1/vaults/{vault_id}/items/{item_id}" | |
| headers = { | |
| "Authorization": "Bearer xxxx", # noqa: E501 |
| <div> | |
| <button class="btn btn-dark" type="button" | |
| x-on:click="copyToClipboard" | |
| id="clipboard-000"> | |
| <i class="bi bi-clipboard"></i> Copy to clipboard | |
| </button> | |
| <div class="d-none" id="clipboard-000-text">Text to be copied to the clipboard</div> | |
| </div> |