Skip to content

Instantly share code, notes, and snippets.

View dvliman's full-sized avatar

David Liman dvliman

View GitHub Profile
/*
Theme Name: Wellington
Theme URI: https://themezee.com/themes/wellington/
Author: ThemeZee
Author URI: https://themezee.com
Description: Wellington is a clean and simple Magazine WordPress theme with beautiful typography and subtle colors. The theme includes two different post layouts, a featured post slider and thoughtful theme settings in the Customizer.
Version: 1.3
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: wellington
/* cat -- concatenate files and print on the standard output.
Copyright (C) 1988-2018 Free Software Foundation, Inc.
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.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
to uninstall java:
sudo rm -fr /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin
sudo rm -fr /Library/PreferencePanes/JavaControlPanel.prefPane
sudo rm -fr ~/Library/Application\ Support/Java
to uninstall jdk:
sudo rm -rf /Library/Java/JavaVirtualMachines/[version].jdk
@dvliman
dvliman / gist:cd2d3316edf2c852d2a4df86cd2a2781
Created February 23, 2018 22:27
verify fingerprint of .pem file
openssl pkcs8 -in keypair.pem -inform PEM -outform DER -topk8 -nocrypt | openssl sha1 -c
@dvliman
dvliman / main.go
Created January 7, 2018 19:22 — forked from 3n21c0/main.go
A simple golang web server with basic logging, tracing, health check, graceful shutdown and zero dependencies
package main
import (
"context"
"flag"
"fmt"
"log"
"net/http"
"os"
"os/signal"
@dvliman
dvliman / kv.erl
Created October 22, 2017 17:34
erlang benchmark kv
% -*- coding: utf8 -*-
%% Benchmarking code samples.
%% Each benchmark is launched in it's own process to eliminate GC influence.
-module(benchmark).
-export([main/0]).
main() ->
% {Test name, TestFun1, TestFun2, Constructor}
% Constructor runtime isn't counted
user_token username user_email user_phone role_token stime etime
3dd92bb0-8b35-496d-b971-a2c0b9db4bc5 david david@tigertext.com +17142532851 3dd92bb0-8b35-496d-b971-a2c0b9db4bc5 2017-09-19T20:55:38Z 2017-09-19T20:55:38Z
IPPUDO NYC Sale $85.00
RUSSIA HOUSE Sale $250.00
SLEEP NO MORE Sale $468.00
Founding Farmers DC Sale $95.00
PRESS LIQUORS Sale $80.01
DONBURI Sale $81.25
AIRBNB * HMREWFS8BW Sale $678.00 (do i have 2 airbnb accounts?)
@dvliman
dvliman / postgres_queries_and_commands.sql
Created September 6, 2017 00:12 — forked from rgreenjr/postgres_queries_and_commands.sql
Useful PostgreSQL Queries and Commands
-- show running queries (pre 9.2)
SELECT procpid, age(query_start, clock_timestamp()), usename, current_query
FROM pg_stat_activity
WHERE current_query != '<IDLE>' AND current_query NOT ILIKE '%pg_stat_activity%'
ORDER BY query_start desc;
-- show running queries (9.2)
SELECT pid, age(query_start, clock_timestamp()), usename, query
FROM pg_stat_activity
WHERE query != '<IDLE>' AND query NOT ILIKE '%pg_stat_activity%'
curl "https://api.airtable.com/v0/appoAiBETQwaHoz04/creditcards?maxRecords=3&view=Grid%20view" \
-H "Authorization: Bearer keybVVN1Q7Zd7qvhE" | python -m json.tool
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 6700 100 6700 0 0 12175 0 --:--:-- --:--:-- --:--:-- 12181
{
"records": [
{
"createdTime": "2017-08-30T05:03:45.000Z",
"fields": {