Skip to content

Instantly share code, notes, and snippets.

View misterzik's full-sized avatar
:octocat:
On the hub!

Nick misterzik

:octocat:
On the hub!
  • Nomad, somewhere called earth ...
View GitHub Profile
@misterzik
misterzik / Vanilla Javascript Plugin - Boilerplate
Created December 13, 2016 17:04
Vanilla Javascript Plugin
// Create an immediately invoked functional expression to wrap our code
(function() {
var privateVar = "You can't access me in the console"
}());
@bradoyler
bradoyler / node-standards-v6.md
Last active February 5, 2020 05:58
Nodejs (6.x) standards

Node Standards (v6.x)

The 7 Commandments of Node:

  1. processes shall be small, and start instantly
  2. always communicate via message bus (Redis, RabbitMQ)
    • this is intended to avoid blocking IO like a slow HTTP request
  3. each process shall log to stdout
    • it's not the responsibility of the app to route logs
  4. a process shall not maintain state
  • avoid in-memory session ids, socket connections, etc
@yoyosan
yoyosan / cleancrap.md
Last active November 15, 2024 12:41
How to clean kdetmpdevfsi or .ICEd-unix suspicious files/folders or processes

Problem

I've recently been hacked on my VPS(using Centos 7.6 and CWP up to date) and the following files/folders were created:

  • /tmp/.ICEd-unix
  • /var/tmp/.ICEd-unix
  • /tmp/kdevtmpfsi
  • /var/tmp/kinsing

The following processes were running and using 100% CPU and Memory:

@cc32d9
cc32d9 / atomicassets_cleos_example.sh
Created June 5, 2021 08:21
AtomicAssets cleos example
alias wtcleos='cleos -v -u https://testnet.wax.pink.gg'
cleos wallet unlock -n testnet
wtcleos push action atomicassets createcol '["cc32dninenft", "loremipsumdo", true, [], [], 0.05, []]' -p cc32dninenft
wtcleos push action atomicassets addcolauth '["loremipsumdo", "cc32dninenft"]' -p cc32dninenft
wtcleos push action atomicassets createschema '["cc32dninenft", "loremipsumdo", "tempor",
[{"name":"name", "type":"string"}, {"name":"commodo", "type":"string"}, {"name":"consequat", "type":"uint32"}, {"name":"ullamco", "type":"float"}]]' -p cc32dninenft