Skip to content

Instantly share code, notes, and snippets.

@aspineon
aspineon / NodejsCheatsheet.md
Created February 13, 2024 14:01 — forked from somahargitai/NodejsCheatsheet.md
Node.js cheatsheet
// Node.js CheatSheet.
// Download the Node.js source code or a pre-built installer for your platform, and start developing today.
// Download: http://nodejs.org/download/
// More: http://nodejs.org/api/all.html
// 0. Synopsis.
// http://nodejs.org/api/synopsis.html
@aspineon
aspineon / bash-cheatsheet.sh
Created April 18, 2022 12:34 — forked from LeCoupa/bash-cheatsheet.sh
Bash CheatSheet for UNIX Systems --> UPDATED VERSION --> https://github.com/LeCoupa/awesome-cheatsheets
#!/bin/bash
#####################################################
# Name: Bash CheatSheet for Mac OSX
#
# A little overlook of the Bash basics
#
# Usage:
#
# Author: J. Le Coupanec
# Date: 2014/11/04
@aspineon
aspineon / postgres cheatsheet.md
Created August 27, 2021 09:57 — forked from apolloclark/postgres cheatsheet.md
postgres cheatsheet

Postgres Cheatsheet

This is a collection of the most common commands I run while administering Postgres databases. The variables shown between the open and closed tags, "<" and ">", should be replaced with a name you choose. Postgres has multiple shortcut functions, starting with a forward slash, "". Any SQL command that is not a shortcut, must end with a semicolon, ";". You can use the keyboard UP and DOWN keys to scroll the history of previous commands you've run.

Setup

installation, Ubuntu

http://www.postgresql.org/download/linux/ubuntu/ https://help.ubuntu.com/community/PostgreSQL

@aspineon
aspineon / spring-cheatsheet.java
Created August 27, 2021 09:55 — forked from jahe/spring-cheatsheet.java
Spring Cheatsheet
// Return JSON without Jackson mapping classes
@RequestMapping("/users")
public @ResponseBody Map<String, String> getUsers () {
Map<String, String> map = new HashMap<String, String>();
map.put("user", "Clark Kent");
return map;
}
@aspineon
aspineon / ansible-summary.md
Created June 27, 2021 15:07 — forked from andreicristianpetcu/ansible-summary.md
This is an ANSIBLE Cheat Sheet from Jon Warbrick

An Ansible summary

Jon Warbrick, July 2014, V3.2 (for Ansible 1.7)

Configuration file

intro_configuration.html

First one found from of

@aspineon
aspineon / figure.png
Created June 11, 2021 23:18 — forked from CMCDragonkai/figure.png
Create a Surface Plot from a Matrix #numpy #matplotlib #python
figure.png
@aspineon
aspineon / mac-setup-redis.md
Created July 27, 2020 10:59 — forked from tomysmile/mac-setup-redis.md
Brew install Redis on Mac

type below:

brew update
brew install redis

To have launchd start redis now and restart at login:

brew services start redis
@aspineon
aspineon / Dockerfile
Created July 21, 2020 16:09 — forked from viktorbenei/Dockerfile
docker-compose.yml (v3) example
FROM ubuntu:16.04
RUN apt-get update -qq
RUN apt-get install -y postgresql-client
FROM java:8-alpine
MAINTAINER Your Name <you@example.com>
ADD abc.jar /opt/app/app.jar
EXPOSE 3000
CMD ["java", "-jar", "/opt/app/app.jar"]