Not
  • Merhaba Dünya
  • Python
    • Sanal Ortam
    • Json
    • Cheat Sheet
    • Search
  • Javascript
    • Node
    • Vue
  • PostgreSQL
    • Install
    • Start Stop
    • Create Db
    • Backup Restore
    • Insert, Update, Delete
    • Kısa Yollar
  • Docker
    • Cheat Sheet
    • Problem
    • Komutlar
    • Örnek Konfigürasyon
    • Volume
  • Php, MySQL
  • Amazon AWS
  • Git
  • Celery
  • Mongo
    • Delete
    • Update
    • Amazon DocumentDB
  • Linux
  • Avesome
  • Bazı Bilgiler
  • Django
    • Models
    • Cheat Sheet
    • Snippets
  • Redis
  • Visual Studio Code
Powered by GitBook
On this page
  • Açık olan portu kapatma
  • List of unique dictionaries
  • Dictionary deki istediğimiz bir field in toplamını almak
  • VPN

Bazı Bilgiler

PreviousAvesomeNextDjango

Last updated 4 years ago

Açık olan portu kapatma

sudo lsof -t -i tcp:8000 | xargs kill -9

List of unique dictionaries

Dictionary deki istediğimiz bir field in toplamını almak

myLIst = [
    {'silver': 100, 'gold': 10},
    {'silver': 5, 'gold': 120},
    {'silver': 10, 'gold': 150},
    {'silver': 50, 'gold': 50}
]

sum(item['gold'] for item in myLIst)

VPN

https://stackoverflow.com/questions/11092511/python-list-of-unique-dictionaries
https://github.com/Nyr/openvpn-install