Skip to content

Instantly share code, notes, and snippets.

View mxmind's full-sized avatar
🧿
Designing my own home

mxmind mxmind

🧿
Designing my own home
View GitHub Profile
@barabashd
barabashd / TCA_README_UKR.md
Last active September 16, 2024 20:07
TCA_README_UKR.md

The Composable Architecture

CI Slack

The Composable Architecture (скорочено TCA) - це бібліотека для побудови додатків у послідовному та зрозумілому підході з урахуванням композиції, тестування та ергономіки. Вона може бути в

Recientemente StarUML se actualizó de 2.0 a 3.0. El método de crack original, la forma de modificar la función de verificación de licencia no se puede usar. La ubicación de instalación ha cambiado y se ha encontrado el archivo LicenseManagerDomain.js. ¿Qué debería hacer? El viejo conductor les dijo a todos que resolvieran el problema.

StarUML está escrito en nodejs. Específicamente, está escrito en el marco frontal de Electron. Todo el código fuente de starUML en la nueva versión viene empaquetado por la herramienta asar.

Ingresar al directorio (Windows)

C:\Program Files\StarUML\resources

@shaps80
shaps80 / FontCacheDescriptor+Graphik.swift
Last active March 19, 2024 14:54
Better font loading in iOS with Swift
extension UIFont {
// The `rawValue` MUST match the filename (without extension)
public enum Graphik: String, FontCacheDescriptor {
case regular = "GraphikAltWeb-Regular"
case medium = "GraphikAltWeb-Medium"
case regularItalic = "GraphikAltWeb-RegularItalic"
case mediumItalic = "GraphikAltWeb-MediumItalic"
}
@reflog
reflog / conf.js
Created May 7, 2018 08:28
next js with typescript via babel
{
"presets": ["@babel/preset-typescript", "next/babel"],
}
/* tslint:disable */
const withCss = require("@zeit/next-css");
const withSass = require("@zeit/next-sass");
const withTypescript = require("@zeit/next-typescript");
const withSourceMaps = require("@zeit/next-source-maps");
@trandaison
trandaison / starUML.md
Last active May 2, 2025 11:05
Get full version of StarUML
@cantbewong
cantbewong / Install-DCOS-baremetal.md
Last active August 30, 2020 09:43
Install DC/OS on bare metal

Install DC/OS on bare metal

Assume 5 physical nodes, or VMs, that will be used with ScaleIO storage

  • All nodes have 2 CPU cores, 64GB of disk storage. Hardware or VM type needs to support CentOS 7.3.
  • The Install bootstrap node needs 4GB of memory, Other node types might get by with 2GB, though the spec calls for more (32GB on Master and Boot node, 16GB on others), and 2GB is cutting it close on the Master node for sure.
  • Assume a single NIC each, All on a common subnet - though other configurations may work
  • Each node must have a hostname in DNS, with forward and reverse lookup working, DHCP is OK
@etpinard
etpinard / electron-plotly.js
Last active August 17, 2021 15:44
Use electron to export plotly.js graphs as images
"Use electron to export plotly.js graphs as images."
@Robbepop
Robbepop / .rustfmt.toml
Created March 16, 2017 18:19
.rustfmt.toml with all configs, descriptions, parameters and defaults for version 0.7.1 of rustfmt.
# ----------------------------------------------------------------------------------
# r u s t f m t - C O N F I G
# ==================================================================================
#
# Version: 0.7.1
# Author : Robbepop <[email protected]>
#
# A predefined .rustfmt.toml file with all configuration options and their
# associated description, possible values and default values for use in other
# projects.
@nexdrew
nexdrew / replicate-package.sh
Created May 26, 2016 15:27
bash script to manually publish a public package to your private npm Enterprise registry
#!/usr/bin/env bash
trap 'exit' ERR
for PACKAGE
do
echo "$PACKAGE"
# download and extract tarball for latest version
curl `npm info $PACKAGE dist.tarball --registry https://registry.npmjs.org` | tar xz
@valyala
valyala / README.md
Last active March 20, 2025 08:44
Optimizing postgresql table for more than 100K inserts per second

Optimizing postgresql table for more than 100K inserts per second

  • Create UNLOGGED table. This reduces the amount of data written to persistent storage by up to 2x.
  • Set WITH (autovacuum_enabled=false) on the table. This saves CPU time and IO bandwidth on useless vacuuming of the table (since we never DELETE or UPDATE the table).
  • Insert rows with COPY FROM STDIN. This is the fastest possible approach to insert rows into table.
  • Minimize the number of indexes in the table, since they slow down inserts. Usually an index on time timestamp with time zone is enough.
  • Add synchronous_commit = off to postgresql.conf.
  • Use table inheritance for fast removal of old data: