Skip to content

Instantly share code, notes, and snippets.

package com.example.jacksondemo.dto;
import java.time.LocalDate;
import java.util.ArrayList;
import java.util.List;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
public class Message {
@peanutpi
peanutpi / DoublyLinkedListImpl.java
Created June 1, 2018 12:21
Test Doubly Linked list
public class DoublyLinkedListImpl {
private Node head;
private Node tail;
private int size;
public DoublyLinkedListImpl() {
size = 0;
}
/**
package com.peanutlabs.cron;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
import org.springframework.scheduling.support.CronSequenceGenerator;
public class SpringCronTester {
@peanutpi
peanutpi / dns.md
Last active May 8, 2017 15:01
DNS Understanding

DNS Management

Domain Registrars

  • domain registrar is normally the place where you purchased/obtained your domain
  • Your registrar could be a business that only does domain registration or even your web host itself.
  • whenever a request for a domain is made, the registrar is the first place that gets referenced for information.

Nameservers

  • they identify what set of servers any requests should reference in order to obtain a domain’s DNS records.
  • Your domain should have it’s nameservers pointed to wherever you are intending to manage your site’s DNS records.
@peanutpi
peanutpi / nginx_tuning.md
Last active April 26, 2017 18:36
Nginx Tuning

General Tuning

Worker Processes and Worker Connections

nginx uses a fixed number of workers, each of which handles incoming requests. The general rule of thumb is that you should have one worker for each CPU-core your server contains.

You can count the CPUs available to your system by running:

$ grep ^processor /proc/cpuinfo | wc -l
Functional Programming Principles in Scala
https://www.coursera.org/learn/progfun1?recoOrder=7&utm_medium=email&utm_source=recommendations&utm_campaign=recommendationsEmail~recs_email_2016_08_07_17%3A57
Data Structures and Performance
https://www.coursera.org/learn/data-structures-optimizing-performance
Cloud Computing Concepts, Part 1
https://www.coursera.org/learn/cloud-computing
Learn to Program: Crafting Quality Code