I hereby claim:
- I am nileshk on github.
- I am nileshk (https://keybase.io/nileshk) on keybase.
- I have a public key ASAACiFW0FufTmiLvUrY2P8EOMlNvitNsLrQ_ZkirOxW4wo
To claim this, I am signing this object:
sudo pg_dropcluster 10 main --stop | |
sudo pg_upgradecluster 9.6 main | |
sudo pg_dropcluster 9.6 main | |
sudo apt purge postgresql-9.6 postgresql-client-9.6 postgresql-contrib-9.6 |
export interface CandidateInfo { | |
name: string; | |
county: string; | |
position: string; | |
district?: string; | |
url?: string; | |
} | |
export const StateWideCandidates: CandidateInfo[] = [ | |
{name: "Andrew Gillum", county: "", position: "Governer", district: "Florida", url: "https://andrewgillum.com/"}, |
[program:_appname_] | |
command = /home/_username_/.pyenv/versions/venvname/bin/gunicorn -w 1 -b 127.0.0.1:8000 --pythonpath=. --reload wsgi:application | |
directory=/home/_username_/sites/_appname_/ | |
environment=PATH="/home/_username_/.pyenv/versions/venvname/bin:/home/_username_/.pyenv/shims:/home/_username_/.pyenv/bin:",DJANGO_SETTINGS_MODULE="_appname_.settings",HOME="/home/_username_" | |
user=_username_ | |
autostart=true | |
autorestart=true | |
redirect_stderr=true | |
stopsignal=QUIT | |
stderr_logfile=/home/_username_/log/_appname_-stderr.log |
I hereby claim:
To claim this, I am signing this object:
REGEDIT4 | |
[HKEY_CLASSES_ROOT\*\shell] | |
[HKEY_CLASSES_ROOT\*\shell\openwemacs] | |
@="&Emacs" | |
# The above value appears in the global context menu, | |
# i.e., when you right click on a file. | |
# (The '&' makes the next character a shortcut.) | |
"Icon"="C:\\Programs\\emacs\\bin\\emacs.exe,0" | |
# The above uses the icon of the Emacs exe for the context |
#!/bin/bash | |
if [[ "$OSTYPE" == "darwin"* ]]; then | |
export DYLD_LIBRARY_PATH=$(dirname $(which sqlplus)) | |
fi | |
# ... rest of your script that calls Oracle sqlplus |
package com.nileshk; | |
import java.util.function.Function; | |
import java.util.stream.Stream; | |
public class BeanCompareUtil { | |
public static <T> boolean compareBeans(T bean1, T bean2, Function<T, Object>... getters) { | |
return Stream.of(getters).allMatch(getter -> { | |
Object val1 = getter.apply(bean1); |
// Get current URL without the document portion or parameters | |
// For example, if the URL is: | |
// http://hostname:8080/path/to/application/document.html?param1=1¶m2=2 | |
// baseUrl will be: | |
// http://hostname:8080/path/to/application/ | |
var baseUrl = [location.protocol, '//', location.host, location.pathname.split('/').slice(0, -1).join('/'), '/'].join(''); |
<!DOCTYPE html> | |
<%@page import="org.springframework.web.context.WebApplicationContext"%> | |
<%@page import="org.springframework.web.context.support.WebApplicationContextUtils"%> | |
<%@page import="org.apache.commons.dbcp.BasicDataSource" %> | |
<% | |
WebApplicationContext context = WebApplicationContextUtils.getWebApplicationContext(application); | |
BasicDataSource dataSource = (BasicDataSource) context.getBean("dataSource"); | |
%> | |
<html> | |
<head> |
#!/usr/bin/python | |
from __future__ import print_function | |
import string | |
import os | |
import sys | |
import re | |
import argparse | |
from subprocess import Popen, PIPE |