0312 TIL

2745 ワード

Sturgeon's law 🔗
is an adage that states that "ninety percent of everything is crap."
Whitelisting VS Blacklisting 🔗
  • Blacklisting: threat-centric method.
  • Whitelisting: trust-centric method.
  • Whitelisting only allows a limited number of applications to run, effectively minimizing the attach surface. Additionally building a whitelist is much easier, as the number of trusted applications would definitely be lower when comparing it to the number of distrusted ones.
    "Multi-tenant"🔗
    (...)A software architecture in which a single instance of software runs on a server and serves multiple tenants.
    A tenant is a group of users who share a common access with specific privileges to the software instance. With a multitenant architecture, a software application is designed to provide every tenant a dedicated share of the instance.
    CI/CD Pipeline 🔗
    CI: Continuous Integration
    CD: Continuous Delivery
    A CI/CD pipeline is a series of steps that must be performed in order to deliver a new version of software.
    github Webhooks 🔗
    Webhooks allow you to build or set up integrations(...). When one of those events is triggered, we'll send a HTTP POST payload to the webhook's configured URL. Webhooks can be used to update an external issue tracker, trigger CI builds, update a backup mirror, or even deploy to your production server.
    Jenkins - hooks
    echo "pull development server on example_service.com"
    git -C /srv/example_service fetch --all
    git -C /srv/example_service reset --hard origin/develop
    git -C /srv/example_service pull
    DB optimization
    Scale up: use a more powerful SQL Server
    Scale out: use more SQL Servers
    other option: code(query) refactoring