Skip to content

Instantly share code, notes, and snippets.

@arcilli
arcilli / staruml.md
Created November 3, 2019 11:44
Steps to get the full version of StarUML 3.0.2 - Ubuntu

Credits to kharek for his answer here. But his answer was for an older version (2.8). There are some minor tweaks for getting it to work on the latest version (StarUML-3.0.2-x86_64.AppImage).

Here's a complete guide (for newbies) (it worked for me on Ubuntu 18.04.1 LTS):

  1. Download the latest StarUML .AppImage from the their website staruml.io
  2. Then make the downloaded .AppImage executable by running sudo chmod +x StarUML-3.0.2-x86_64.AppImage
  3. Install npm using apt-get sudo apt install npm
  4. Install asar npm package using sudo npm install -g asar
  5. If you're using npm for the first time, then you can't directly call asar from the terminal. You need to update your $PATH variable to include the .npm-global directory to directly call globally installed npm packages. This can be done by adding export PATH="/home/$USER/.npm-global/bin:$PATH" (may
@arcilli
arcilli / StarUml-V3.md
Created August 10, 2020 13:06 — forked from danteay/StarUml-V3.md
Active StarUml 3 license
@arcilli
arcilli / spotihosts
Last active January 15, 2021 10:39
The hosts file entries to block Spotify audio ad servers.
127.0.0.1 media-match.com
127.0.0.1 adclick.g.doublecklick.net
127.0.0.1 www.googleadservices.com
127.0.0.1 open.spotify.com
127.0.0.1 pagead2.googlesyndication.com
127.0.0.1 desktop.spotify.com
127.0.0.1 googleads.g.doubleclick.net
127.0.0.1 pubads.g.doubleclick.net
127.0.0.1 audio2.spotify.com
127.0.0.1 www.omaze.com
@arcilli
arcilli / kernel-dev.md
Created August 13, 2021 05:42 — forked from vegard/kernel-dev.md
Getting started with Linux kernel development

Getting started with Linux kernel development

Prerequisites

The Linux kernel is written in C, so you should have at least a basic understanding of C before diving into kernel work. You don't need expert level C knowledge, since you can always pick some things up underway, but it certainly helps to know the language and to have written some userspace C programs already.

It will also help to be a Linux user. If you have never used Linux before, it's probably a good idea to download a distro and get comfortable with it before you start doing kernel work.

Lastly, knowing git is not actually required, but can really help you (since you can dig through changelogs and search for information you'll need). At a minimum you should probably be able to clone the git repository to a local directory.

@arcilli
arcilli / starUML.md
Created August 15, 2021 03:22 — forked from trandaison/starUML.md
Get full version of StarUML
@arcilli
arcilli / starUml3.md
Created August 15, 2021 03:35 — forked from jjvillavicencio/starUml3.md
StarUml 3.

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

@arcilli
arcilli / fp_taglessfinal_explanation.md
Created September 1, 2021 17:19 — forked from mmenestret/fp_taglessfinal_explanation.md
FP and tagless final - Fabio Labella

Purity and pure FP

  • purity is a syntactical property of programs, more precisely defined as referential transparency: replacing an expression for its bound value doesn't change meaning (precise definition)
  • side effects are things that break referential transparency (precise definition)
  • There's no direct connection between the concepts of IO, State and so on, and side effects. Traditionally, these things are side effectful (break referential transparency), but you can have abstractions that are pure (don't break ref.trans.)
  • Due to the above, the term purely functional programming is not an oxymoron, it makes perfect sense.
  • In haskell style pure FP, type constructors and algebras are used to represent "things that would otherwise traditionally be side effects (break ref.trans.)". We call these F[_]s effects or computational contexts for brevity. You can see for yourself how this cannot be a precise definition (especially because they could also have kind higher than * -> *, even though most famous a
@arcilli
arcilli / zio-learning-json-3-derives-new-encoders.sc
Created January 3, 2022 07:34 — forked from dacr/zio-learning-json-3-derives-new-codecs.sc
ZIO learning - playing with json writing custom encoder/decoder / published by https://github.com/dacr/code-examples-manager #8228864c-7704-45e0-a60b-28cf2f7b5980/506d20fc27d881a3f3cbd1565fc4af1705d6acb9
// summary : ZIO learning - playing with json writing custom encoder/decoder
// keywords : scala, zio, learning, json, pure-functional, @testable
// publish : gist
// authors : David Crosson
// license : Apache
// id : 8228864c-7704-45e0-a60b-28cf2f7b5980
// created-on : 2021-12-30T17:13:06+01:00
// managed-by : https://github.com/dacr/code-examples-manager
// run-with : scala-cli $scriptFile
@arcilli
arcilli / bashscript.sh
Created May 15, 2022 08:16 — forked from JohnLaTwC/bashscript.sh
Bash script: 077d51016727216dd6216a3722353be274288d411a6295a5d804d251dacd88fc
#!/bin/bash
SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
#This is the Old-ReBuild Lady job copy
#
#Goal:
# The goal of this campaign is as follows;
# - To keep the internet safe.
# - To keep them hackers from causing real damage to organisations.
# - We know you feel We are a potential threat, well We ain't.
@arcilli
arcilli / JsonLens.scala
Created June 8, 2022 07:48 — forked from kirked/JsonLens.scala
A lens wrapper over spray-json
import scala.reflect.ClassTag
import scala.util.{Either, Left, Right}
import spray.json._
object JsonLens {
class Json(val value: Option[JsValue]) {
def /(name: String): Json = Json(value.flatMap(_.asJsObject.fields.get(name)))
def -(name: String): Json = Json(value.map(obj => JsObject(obj.asJsObject.fields - name)))
def apply(index: Int): Json = {