sudo apt update sudo apt upgrade sudo apt install tasksel sudo apt install ubuntu-desktop sudo apt install lightdm sudo reboot
sudo apt-get install xrdp systemctl enable xrdp sudo ufw allow 3389/tcp
#!/bin/bash | |
if ps aux | grep script.py | grep -v grep > /dev/null | |
then | |
echo "The script is running." | |
else | |
echo "The script is not running." | |
/usr/bin/python3 ~/teklif-botu/script.py | |
fi |
#!/bin/bash | |
systemctl stop bluetooth | |
hciconfig hci0 down | |
rmmod btusb | |
modprobe btusb | |
hciconfig hci0 up | |
systemctl start bluetooth |
import requests | |
import bcrypt | |
""" | |
pip3 install bcrypt | |
""" | |
def getSalt(email): | |
url = "https://api.sorare.com/api/v1/users/" + email | |
response = requests.get(url) |
sudo apt update sudo apt upgrade sudo apt install tasksel sudo apt install ubuntu-desktop sudo apt install lightdm sudo reboot
sudo apt-get install xrdp systemctl enable xrdp sudo ufw allow 3389/tcp
import keyboard | |
import time | |
import random | |
prompt = str(input('Bir kavram girin: ')) | |
if prompt == '': | |
prompt = "reglan arm cycling jersey design in bright green, yellow, blue, red, grey, white, black, purple, vivid colors, sharp, realistic, ultra detailed, 8k" | |
prompt = "cycling jersey design in pastel colors, sharp, realistic, ultra detailed, 8k" |
// 3D sunum için export scripti | |
var document = app.activeDocument; | |
var exportOptions = new ExportOptionsJPEG(); | |
exportOptions.artBoardClipping = true; | |
exportOptions.antiAliasing = true; | |
exportOptions.qualitySetting = 100; | |
scaleTo = 24.91 |
SELECT SETVAL(pg_get_serial_sequence('price_ranges', 'id'), (SELECT MAX(id) FROM price_ranges)); |
def get_random_proverb(): | |
import random | |
listOfProverb = [ | |
"Acıkan yanağından,susayan dudağından belli olur.", | |
"Ah alan onmaz, ah yerde kalmaz.", | |
"Ak köpeğe koyun diye sarılma.", | |
"Akıl yiğide sermayedir.", | |
"Al malın iyisini çekme kaygısını.", | |
"Almak kolay ödemek zordur.", | |
"Altın kılıç demir kapıyı açar.", |
# Kurulum
sudo apt-get install apache2
sudo apt-get install libapache2-mod-wsgi-py3 python-dev
a2enmod wsgi
Gerekli paketleri kurduktan sonra flask için bir .wsgi
dosyası oluşturuyoruz.
import rumps | |
class PomodoroApp(object): | |
def __init__(self): | |
self.config = { | |
"app_name": "Pomodoro", | |
"start": "Start Timer", | |
"pause": "Pause Timer", | |
"continue": "Continue Timer", | |
"stop": "Stop Timer", |