Skip to content

Instantly share code, notes, and snippets.

@priyadarshan
priyadarshan / 1Some Unix Benchmarks
Last active February 5, 2018 07:40
Unix Benchmarks
s
@priyadarshan
priyadarshan / scratch.lisp
Created January 7, 2018 18:29 — forked from xach/scratch.lisp
Fitting a string into a predetermined width
;;;; scratch.lisp
(defpackage #:scratch
(:use #:cl #:vecto)
(:import-from #:zpb-ttf
#:xmin
#:xmax))
(in-package #:scratch)
@priyadarshan
priyadarshan / gbstore-dmesg.txt
Last active January 7, 2018 14:43
GBSTORE first boot
root@gbstore:~ # dmesg
Copyright (c) 1992-2017 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 11.1-RELEASE-p4 #0: Tue Nov 14 06:12:40 UTC 2017
[email protected]:/usr/obj/usr/src/sys/GENERIC amd64
FreeBSD clang version 4.0.0 (tags/RELEASE_400/final 297347) (based on LLVM 4.0.0)
VT(efifb): resolution 1920x1200
CPU: Intel(R) Xeon(R) CPU E5-1650 v4 @ 3.60GHz (3591.76-MHz K8-class CPU)
@priyadarshan
priyadarshan / argo-first-dmesg.txt
Last active February 5, 2018 07:41
Argo first DMESG
Copyright (c) 1992-2017 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 11.1-RELEASE-p4 #0: Tue Nov 14 06:12:40 UTC 2017
[email protected]:/usr/obj/usr/src/sys/GENERIC amd64
FreeBSD clang version 4.0.0 (tags/RELEASE_400/final 297347) (based on LLVM 4.0.0)
VT(efifb): resolution 1280x1024
CPU: AMD Ryzen Threadripper 1950X 16-Core Processor (3393.70-MHz K8-class CPU)
Origin="AuthenticAMD" Id=0x800f11 Family=0x17 Model=0x1 Stepping=1
@priyadarshan
priyadarshan / gist:68e37a8ec05c2474ce32ac1c7e1ad8c6
Created September 5, 2017 18:22 — forked from pvalkone/gist:9292589
How to set up IPMI Serial-Over-LAN (SOL) on a ASRock C2550D4I motherboard and FreeBSD 10.0-RELEASE
BIOS Setup
----------
1) Boot into the BIOS setup utility (press F2 or DEL) and open Advanced > Serial Port Console Redirection.
2) Disable COM1 and EMS console redirection and enable SOL redirection.
3) Set the SOL console redirection settings as follows:
Aptio Setup Utility - Copyright (C) 2012 American Megatrends, Inc.
Advanced
/----------------------------------------------------+-------------------------\
@priyadarshan
priyadarshan / CHANGES.md
Created September 4, 2017 15:13 — forked from mwpastore/00README.md
Lightning Fast WordPress: Caddy+Varnish+PHP-FPM

2017/03/17

  • Update Varnish service unit files to play nice with Varnish 5.x.

2017/02/02

  • Add more gzip-able content-types.
  • Add note about alternative to Varnish partitioning.

2017/01/30

@priyadarshan
priyadarshan / ox-wp-crayon.el
Created August 24, 2017 08:50 — forked from marcoimmel/ox-wp-crayon.el
org2blog: Wordpress crayon-plugin Backend for Org Export Engine
;;; ox-wp-crayon.el - Wordpress crayon-plugin Backend for Org Export Engine
;;; overrides org-wp-src-block function of org2blog / ox-wp package, https://github.com/punchagan/org2blog
;;; Copyright (C) 2017 [email protected]
;;; Version: 20170110-1
;; This program is free software: you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
;; the Free Software Foundation, either version 3 of the License, or
;; (at your option) any later version.
@priyadarshan
priyadarshan / ssl.rules
Created August 8, 2017 17:11 — forked from konklone/ssl.rules
nginx TLS / SSL configuration options for konklone.com
# Basically the nginx configuration I use at konklone.com.
# I check it using https://www.ssllabs.com/ssltest/analyze.html?d=konklone.com
#
# To provide feedback, please tweet at @konklone or email [email protected].
# Comments on gists don't notify the author.
#
# Thanks to WubTheCaptain (https://wubthecaptain.eu) for his help and ciphersuites.
# Thanks to Ilya Grigorik (https://www.igvita.com) for constant inspiration.
server {
@priyadarshan
priyadarshan / git-mv-with-history
Created May 20, 2017 12:00 — forked from emiller/git-mv-with-history
git utility to move/rename file or folder and retain history with it.
#!/bin/bash
#
# git-mv-with-history -- move/rename file or folder, with history.
#
# Moving a file in git doesn't track history, so the purpose of this
# utility is best explained from the kernel wiki:
#
# Git has a rename command git mv, but that is just for convenience.
# The effect is indistinguishable from removing the file and adding another
# with different name and the same content.
@priyadarshan
priyadarshan / good-commit-message.md
Created May 15, 2017 13:01
How to write a good git commit message that people can read and tools can parse.

Git commit message

How to write a good git commit message that people can read and tools can parse.

First read How to Write a Git Commit Message

The seven rules of a great Git commit message:

  • Separate subject from body with a blank line
  • Limit the subject line to 50 characters