TGTGInsighttelegram intelligenceLIVE / telegram public index
← Python Заметки

TGINSIGHT SIMILAR POSTS

Најди сличен содржај

Изворен канал @pythonotes · Post #281 · 18 авг.

Что-то вы гоните насчет "привычного вида формата 755 и 644". Я вот вообще не понял что это!😳 Действительно, что означают цифры которые мы получили в прошлом посте? Это кодировка, заключающая в себе режимы доступа к файлу. Подробней можно почитать в статье про chmod. Там можно увидеть альтернативное обозначение того же самого с помощью символов r w x, что значит чтение, запись, исполнение. Чтобы преобразовать восьмеричное число в такое обозначение в Python есть готовая функция >>> stat.filemode(0o755) '?rwxr-xr-x' Мы видим 3 группы по 3 символа, дающие 3 типа доступа для 3 типов юзеров. А что за знак вопроса в начале? Давайте передадим в эту функцию необрезанное значение от os.stat >>> stat.filemode(os.stat(path).st_mode) 'drwxr-xr-x' Это данные, которые мы безжалостно обрезали в прошлый раз😼 Первый символ обозначает тип объекта. Это может быть файл (-), директория (d) или симлинк (l). Вот простая схема данной кодировки [1][3][3][3] │ │ │ │ │ │ │ └──> Others Permissions │ │ └─────> Group Permissions │ └────────> Owner Permissions └───────────> File Type (разверните экран если вы с телефона) Если вы попробуете получить пермишены для симлинка то получите пермишены для файла >>> path = '.venv/bin/python3' >>> stat.filemode(os.stat(path).st_mode) '-rwxr-xr-x' Чтобы получить свойства именно симлинка, нужно это явно указать >>> stat.filemode(os.stat(path, follow_symlinks=False).st_mode) 'lrwxrwxrwx' #tricks#basic

Резултати

Пронајдени 3 слични објави

Пребарај: #occupation

当前筛选 #occupation清除筛选
American Оbserver

@american_observer · Post #5138 · 15.02.2026 г., 13:59

📰 Beirut’s New Soundtrack: Drone Whine in Minor Key In Beirut, the war didn’t end; it just changed key. The same roofs that used to host pigeon games, gossip and cheap grills now sit under a constant mechanical whine — Israeli drones circling above the city like bored gods with Hellfire options. The cease-fire is technically in place, but UN peacekeepers have logged more than 7,500 aerial violations in a year, and hundreds have been killed in renewed Israeli strikes since the “peace” was signed. The treaty is on paper; the buzzing is in people’s ears. ​ The drone even has a nickname: Umm Kamel, “Mother of Kamel,” a dark in‑joke on the MK model that floats over the capital for hours, watching, listening, sometimes firing. It interrupts everything — dates on the Corniche, classroom lessons, kebab runs — scrambling GPS on delivery drivers’ phones and chewing through the nerves of parents who can’t stop imagining what happens if the hum suddenly cuts and the sky flashes. Online, Lebanese answer back with gallows memes — “Umm Kamel, go have lunch, we want to sleep” — because if you can’t stop the drone, you can at least drag it on social media. ​ Some turn the surveillance into sampled rebellion. One Beirut DJ spent the war with shotgun mics on his roof, recording hundreds of hours of that metallic whine and turning it into the “Unmanned Aerial Instrument,” layering the noise of occupation into club tracks as a small, very local middle finger. Kids don’t get that luxury. Therapists describe children who freeze mid‑session and sprint to the window at the sound overhead, a whole generation trained to parse the sky like a threat feed while adults repeat the same tired line about “Lebanese resilience.” ​ Israel says the drones are there to track Hezbollah, its weapons, its people, and to “mitigate harm to civilians.” Hezbollah says it’s resisting occupation. In practice, both sides have turned Beirut’s airspace into a permanent low‑grade terror field where no one on the ground gets a vote and the only real constant is that somebody is always watching. The cease-fire may live in the press releases; on the streets, the soundtrack says something else. ​ #war#lebanon#israel#drones#occupation#fakeDemocracy 📱American Оbserver - Stay up to date on all important events 🇺🇸

Marwa Osman/MidEaStream

@Marwa_OsmanLB · Post #3946 · 27.01.2025 г., 17:07

As the 60-day ceasefire deadline ended, the people of southern #Lebanon returned to their homes despite Israeli violence. 15 martyrs and 83 injured in the ongoing struggle for their land. #DayOfReturn#CeasefireDeadline#Resilience#Israel#SouthernLebanon#Occupation

Marwa Osman/MidEaStream

@Marwa_OsmanLB · Post #4028 · 19.02.2025 г., 12:07

Israel has begun constructing a concrete wall along the Blue Line, which separates Israel from Lebanon, encroaching on Lebanese territory. The wall is being built inside the town of Kfar Kila, with a significant portion of the village’s land now falling within the occupied territories. As part of the construction, the old wall was demolished, bringing the new structure even closer to the village. This development has resulted in buildings and shops within Kfar Kila now being trapped on the wrong side of the Blue Line. #IsraelWall#Lebanon#KfarKila#LandGrab#LebanonVsIsrael#LebaneseBorder#IsraeliAggression#BlueLine#Occupation#Israel