Instantly share code, notes, and snippets.

View query.sql
DECLARE @licensenumber VARCHAR(20) = '';
DECLARE @user VARCHAR(20) = ''
SELECT DISTINCT app
FROM applicationauth
WHERE (optionname='READ' OR optionname='SAVE' OR optionname='DELETE' OR optionname='INSERT')
AND groupname IN (SELECT groupuser.groupname FROM groupuser WHERE userid= @user )
AND groupname NOT IN (SELECT varvalue FROM maxvars WHERE varname='ALLUSERGROUP')
OR app NOT IN ('PLUSCTMPLT','PLUSTCLAIM','PLUSTCNTMP','PLUSTCOMP','PLUSTCONST','PLUSTCOUNT','PLUSTDTIMP',
'PLUSTINSP','PLUSTLOGS','PLUSTPOS','PLUSTRS','PLUSTSTKRG','PLUSTTLMCD','PLUSTTMPLT','PLUSTVEND','PLUSTVS',
View shrink.sql
USE <dbname>;
GO
-- Truncate the log by changing the database recovery model to SIMPLE.
ALTER DATABASE <dbname>
SET RECOVERY SIMPLE;
GO
-- Shrink the truncated log file to 1 MB.
DBCC SHRINKFILE (<dbname>_log, 1);
GO
-- Reset the database recovery model.
View http.java
public HttpURLConnection maximoAuthenticationLogin(HttpSession session) throws IOException {
URL url = new URL("/maximo/oslc/login");
HttpURLConnection maximoConnection = (HttpURLConnection) url.openConnection();
maximoConnection.setRequestMethod("POST");
maximoConnection.setRequestProperty("Accept", "application/json");
maximoConnection.setRequestProperty("maxauth", this.encodeCredentials("", ""));
if (maximoConnection.getResponseCode() < 400) {
BufferedReader responseReader =
View ElvUI - Legion
Az/bDQBqCaXWg4jHknoLIr0mVRyGmomKayrVbCnbSJVuQvoloeQ2CM+J2inJXmW30H4JxU/CMJX8JrmsaiiiwUhKwwV1kFT6RiqOSdU5UtVCFUtRaTEpy4GHSKqnVMuItE5CNVFCTKVMRpXpoougrkrlGRHXQdoo0WeEbEawHeKjSpmFMg2J70gyUoK/qMpoQcZLSCcFbiHUaaTOIynugqjGgSi7UFWvn81rKAAf06CpAI3bKumc6OMD3GbzVGESx2/T5hiaiqta25lD0JGGwOHZnK5VlGfzumFZLuDWZvOwkumkVZxz4NKWy+VcU5kKgsTx27S5hms9PKDCBMz7WjUFZnOw6uK/7pQ50aqL/7pT5tqqi/+6U5ZzBDfo16opMJuDVRf/pT8nWnXx33vJXFt18UPW6y+XcwiFPJBnc/JT98yPMBMogxvSBSQGH5MdYSZQdjEdyhxuSFfycTHNQxXyYH6EmUA5cGkMbkgXkBh8THaEmUA5cGmMwiQSvXPOE5J6CCeqkAfzI8wEyoFLY3BDuoDE4GOyI8wEyoFLYxRGmd9QVCEP5iZIDlwagxvSBSQGH5OZIDlwaUxyQcaIKfOjZPlAM1WcH2EmUAY3pAtIDD4mO8JMoOxikl46hxvSlXxcTPPCn6hCHsxNkBy4NAY3pAtIDD4mO8JMoBy4NEZhOpL7HG5IV/KVqobKqEIezI8wEyg3uBWMwQ3pAhKDj8mOMBMoN7gVjBHfewnrJTpzlK6B0jBAFfJgboLkwKUxuCFdQGLwMZkJkgOXxqSMWDqHi4Yf0B/rPxigCnkwP8JMoNzgVjAGN6QLSAw+JjvCTKDc4FYwRkzR0WGUOdyQruQzDIg+DQOiT1QhD+ZHmAmUwQ3pAhKDj8mOMBMou1h/v8/hhnQlHxfTPMqFKuTB3ATJgUtjcEO6gMTgY7IjzATKgUtjFEaRUuZwQ3QPn3R+hJlAGdyQLiAx+JjsCDOBsotJIJvDDdE9fJT5EWYC5Qa3gjG4IV1AYvAx2RFmAuUG
View ViewController.swift
import UIKit
import WebKit
class ViewController: UIViewController, WKUIDelegate {
var webView: WKWebView!
// Instantiate the web view
View docker-compose.yml
version: '2'
services:
wordpress:
image: wordpress:4.6.1-apache
ports:
- 8080:80
volumes:
- ./wp-content:/var/www/html/wp-content