کد زیر رو دانلود یا کپی کنید بعدش تو ترمینال chmod +x tltweak.sh ./tltweak.sh
یه شماره وارد کنید مثلا ۲ که اسم تلگرامتون بشه Telegram 2 ایکون تو دسک تاپ ایجاد شد و همچنین تو منو اپ هاتون هم میاد
// Run this in the F12 javascript console in chrome | |
// if a redirect happens, the page will pause | |
// this helps because chrome's network tab's | |
// "preserve log" seems to technically preserve the log | |
// but you can't actually LOOK at it... | |
// also the "replay xhr" feature does not work after reload | |
// even if you "preserve log". | |
window.addEventListener("beforeunload", function() { debugger; }, false) |
--- | |
METHOD 1 | |
This should roughly sort the items on distance in MySQL, and should work in SQLite. | |
If you need to sort them preciser, you could try using the Pythagorean theorem (a^2 + b^2 = c^2) to get the exact distance. | |
--- | |
SELECT * | |
FROM table | |
ORDER BY ((lat-$user_lat)*(lat-$user_lat)) + ((lng - $user_lng)*(lng - $user_lng)) ASC |
listen l1 | |
bind 0.0.0.0:443 | |
mode tcp | |
timeout connect 4000 | |
timeout client 180000 | |
timeout server 180000 | |
server srv1 host.example.com:9443 |
کد زیر رو دانلود یا کپی کنید بعدش تو ترمینال chmod +x tltweak.sh ./tltweak.sh
یه شماره وارد کنید مثلا ۲ که اسم تلگرامتون بشه Telegram 2 ایکون تو دسک تاپ ایجاد شد و همچنین تو منو اپ هاتون هم میاد
When setting these options consider the following:
sudo grep max_children /var/log/php?.?-fpm.log.1 /var/log/php?.?-fpm.log
# Editors | |
.vscode/ | |
.idea/ | |
# Vagrant | |
.vagrant/ | |
# Mac/OSX | |
.DS_Store |
#!/usr/bin/env python3 | |
import subprocess | |
import json | |
import os | |
from pathlib import Path | |
import requests | |
from requests.compat import urljoin |
A gem was found during my google search. Not much known as it said(at least during this writing),but works damn good.
This mirror method will automatically select the fastset mirror during apt update
. based on your location.
tested and running well on Ubuntu Server 18.04
/etc/apt/sources.list
with a text editor.
sudo nano /etc/apt/sources.list
import hashlib | |
import hmac | |
import json | |
from dataclasses import dataclass | |
from operator import itemgetter | |
from typing import Any | |
from urllib.parse import parse_qsl | |
@dataclass(eq=False) |