Skip to content

Instantly share code, notes, and snippets.

@NanoDano
NanoDano / powershell_http_example.md
Created June 3, 2020 20:51
Powershell make HTTP GET request
@NanoDano
NanoDano / nasm_examples.md
Created June 3, 2020 20:48
Nasm NetAssembler Assembly examples

nasm Net Assembler Assembly

Compile and link

Compile with:

nasm -f elf64 file.asm
# or -f elf for 32 bit
@NanoDano
NanoDano / mongodb_queries_commands.md
Created June 3, 2020 20:42
MongoDB example commands and queries from WebGenome project

Sample MongoDB commands

show dbs
use <db>  # also creates
show collections
db.getCollectionNames()
db.showCollections()
db.domains.getIndexes()
db.domains.stats()
@NanoDano
NanoDano / dart_lang_basis.md
Created June 3, 2020 20:41
Dart language basics
@NanoDano
NanoDano / crystal_lang_basics.md
Created June 3, 2020 20:37
Crystal language basics
@NanoDano
NanoDano / clojure_basics.md
Created June 3, 2020 20:33
Clojure install and hello world basics
# local_play.yaml
- name: Local play
hosts: localhost
connection: local
tasks:
- name: Create a text file
command: touch test.txt
- name: Rename the file
command: mv test.txt test.md
@NanoDano
NanoDano / rpms_by_size.sh
Last active May 19, 2019 17:34
RPM list packages by size
# See which packages take up the most space
rpm -qa --queryformat '%10{size} - %-25{name} \t %{version}\n' | sort -n
# or simply
rpm -qa --queryformat '%{size} %{name}\n' | sort -n
@NanoDano
NanoDano / drupal8_rest_api_create_node.py
Last active February 25, 2019 02:58
Drupal 8 REST API example
# Requires all 4 of the REST modules to be turned on
# HAL
# HTTP Basic Authentication
# RESTful Web Services
# Serialization
import requests
import json