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
| bash -c 'LATEST=$(ls -1t ~/Downloads/Beeper-*.AppImage | head -n 1); exec "$LATEST" --no-sandbox' |
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
| using Gtk 4.0; | |
| using Adw 1; | |
| Box main { | |
| orientation: vertical; | |
| Adw.HeaderBar { | |
| Button { | |
| icon-name: "tab-new-symbolic"; | |
| tooltip-text: "Add Files"; |
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
| #!/bin/bash | |
| if [[ ! -z "$(which gnome-weather)" ]]; then | |
| system=1 | |
| fi | |
| if [[ ! -z "$(flatpak list | grep org.gnome.Weather)" ]]; then | |
| flatpak=1 | |
| fi |
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
| bash -c 'LATEST=$(ls -1t ~/dl/Beeper-*.AppImage | head -n 1); exec "$LATEST" --no-sandbox | |
| Put this in Exec of a separate .desktop file |
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
| import 'dart:io'; | |
| void main() { | |
| List<int> listOfNumbers = []; | |
| late String inputFromUser; | |
| while (true) { | |
| print("Enter the operation to do: "); | |
| print("1. Add Element"); | |
| print("2. Delete Element"); | |
| print("3. Search Element"); |
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
| from requests import get | |
| from img2pdf import convert | |
| prefix = input("Enter prefix url: ") | |
| rng = input("Enter range: ") | |
| name = input("Enter name: ") | |
| start, end = tuple(rng.split("-")) | |
| start, end = int(start), int(end) | |
| for i in range(start, end+1): | |
| with open(f"{i}.jpg", "wb") as file: | |
| file.write(get(f"{prefix}{i}.jpg").content) |
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
| using Gtk 4.0; | |
| using Adw 1; | |
| menu menu { | |
| submenu { | |
| label: _("File"); | |
| item { | |
| label: _("New"); | |
| action: "app.new"; | |
| } |
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
| import json | |
| from requests import get | |
| x = get("https://api.contributed.jdocklabs.co.uk/user/imhemish") | |
| y = json.loads(x.text) | |
| print("# Accepted pull requests at GitHub") |
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
| #!/usr/bin/env python3 | |
| from pydownsongs import get_meta, add_meta | |
| from sys import argv | |
| args = argv[1:] | |
| for item in args: | |
| add_meta(get_meta(item), item) |
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
| # Upload files to gofile using their api | |
| import requests | |
| import json | |
| import sys | |
| filename = (sys.argv)[1] # You need to pass the path of file as arguement | |
| getserver = "https://apiv2.gofile.io/getServer" | |
| temp = requests.get(getserver) | |
| myfiles = {'file': open(filename ,'rb')} | |
| server = (json.loads(temp.text))["data"]["server"] | |
| url = "https://"+server+".gofile.io/uploadFile" |
NewerOlder