Skip to content

Instantly share code, notes, and snippets.

Rkhunter (Rootkit Hunter) Installation and Monitoring for Linux.md

Last Updated 2020-04-13 by Kevin Roth

Detection of rootkit and other intrusions for Linux with rkhunter. Installation and nightly email reports.

Install rkhunter

$ sudo yum install rkhunter
@stefanolsen
stefanolsen / Startup.cs
Created April 20, 2019 09:25
Code listings for blog post about cache busting and long time caching. Read about it here: https://stefanolsen.com/posts/cache-busting-2-an-update-for-aspnet-core/
using Microsoft.AspNetCore.Builder;
using Microsoft.Net.Http.Headers;
public class Startup
{
public void Configure(IApplicationBuilder app)
{
var staticFileOptions = new StaticFileOptions
{
OnPrepareResponse = context =>
@JoeyBurzynski
JoeyBurzynski / 55-bytes-of-css.md
Last active May 12, 2025 13:07
58 bytes of css to look great nearly everywhere

58 bytes of CSS to look great nearly everywhere

When making this website, i wanted a simple, reasonable way to make it look good on most displays. Not counting any minimization techniques, the following 58 bytes worked well for me:

main {
  max-width: 38rem;
  padding: 2rem;
  margin: auto;
}
@mikowl
mikowl / oneliners.js
Last active February 19, 2025 05:20
👑 Awesome one-liners you might find useful while coding.
// Inspired by https://twitter.com/coderitual/status/1112297299307384833 and https://tapajyoti-bose.medium.com/7-killer-one-liners-in-javascript-33db6798f5bf
// Remove any duplicates from an array of primitives.
const unique = [...new Set(arr)]
// Sleep in async functions. Use: await sleep(2000).
const sleep = (ms) => (new Promise(resolve => setTimeout(resolve, ms)));
// or
const sleep = util.promisify(setTimeout);
@lmas
lmas / crt.css
Created March 24, 2019 18:45
Add CRT scanlines, screen flicker and color separation effects
/*Stolen from http://aleclownes.com/2017/02/01/crt-display.html*/
/*This adds a "crt scanlines" effect to the screen*/
.crt-scanlines::before {
content: " ";
display: block;
position: absolute;
top: 0;
left: 0;
bottom: 0;
@vanjacosic
vanjacosic / gdpr_template.md
Created August 3, 2018 12:36
GDPR email template

Email template for requesting data deletion

To:

Their Data Protection Officer, usually [email protected]

Subject:

Request for erasure (GDPR)

@una
una / links.md
Last active January 13, 2019 01:27
a-css-carol--links
@nolanlawson
nolanlawson / how_to_take_an_etl_trace.md
Last active November 15, 2019 23:47
Instructions for taking an ETL trace for Edge or IE

How to take a trace of a website issue in Edge/IE

Taking a trace

Method 1: Feedback Hub

  1. In Feedback Hub, click "Add new Feedback"
  2. Choose "Microsoft Edge" as the category
@olehmelnyk
olehmelnyk / rgbToPantone.js
Created December 30, 2017 17:47
Parsing 3rd party website for RGB to Pantone
/**
* Parsing 3rd party website
* not sure how accurate/valid/outdated it is
* and this resource might be closed any time
* but https://github.com/teelaunch/pms-pantone-color-chart
* uses this site here https://github.com/teelaunch/pms-pantone-color-chart/blob/master/pantone.js#L9
* */
async function rgbToPantone(RGB){
return fetch(`http://www.netfront.fr/Services/rgb2pantone/pantone.htm?r=${RGB[0]}&g=${RGB[1]}&b=${RGB[2]}`)
.then(resolve => resolve.text())
{
"name": "evil_chat",
"private": true,
"dependencies": {
"@rails/webpacker": "^3.2.0",
"coffeescript": "1.12.7",
"normalize.css": "^7.0.0"
},
"scripts": {
"lint-staged": "$(yarn bin)/lint-staged"