Skip to content

Instantly share code, notes, and snippets.

View jibbius's full-sized avatar

Jack Barker jibbius

View GitHub Profile
@jibbius
jibbius / www.conf
Created December 24, 2013 09:59 — forked from evansolomon/www.conf
; Start a new pool named 'www'.
; the variable $pool can we used in any directive and will be replaced by the
; pool name ('www' here)
[www]
; Per pool prefix
; It only applies on the following directives:
; - 'slowlog'
; - 'listen' (unixsocket)
; - 'chroot'
@jibbius
jibbius / full_example.html
Created May 16, 2013 16:08
jQuery - Expand & Collapse <div>s
<html>
<head>
<title>Title</title>
<style type="text/css">body {background: rgb(253, 251, 207);}.fw_box {width: 430px;float: left;border-style: solid;border-width: 2px;border-radius: 10px;margin: 1px 10px 10px 10px;padding: 10px;position: inherit;border: 2px solid rgb(253, 250, 250);background-color: rgba(255, 255, 255, 0.5);color: #000000;}.fw_content {font-size: 0.8em;word-wrap: break-word;}.fw_box:hover .fw_content {display: block;overflow: auto;}.fw_title {font-size: 1.1em;text-align: center;vertical-align: middle;padding-top: 5px;font-weight: bold;}.fw_box:hover {background: rgba(255,165,165,0.5);}.fw_preview {float: right;width: 45%;height: 288px;background: white;margin: 10px;padding: 10px;border-style: solid;border-radius: 10px;}.fw_list {width: 100%;}.fw_row {width: 100%;overflow: auto;}
</style>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/2.0.0/jquery.min.js"></script>
<script type="text/javascript">
jQuery(document).ready(function(){
/*hide the all of the element with class f
@jibbius
jibbius / drop_table_like.sql
Created May 16, 2013 15:43
MySQL - Drop Tables WHERE tablename like();
/*
* MySQL - Drop Tables WHERE tablename like();
*/
SET @tables = NULL;
SELECT GROUP_CONCAT(table_schema, '.', table_name) INTO @tables FROM information_schema.tables
WHERE table_schema = 'db_1' AND
(
table_name LIKE BINARY 'wp_bp_%'
@jibbius
jibbius / Find_DB_TableColumn.sql
Created April 24, 2013 07:50
FIND DB TABLES/COLUMNS BY NAME - Use this script to find all columns, with a name that is similar to the search term
/******************************************
FIND DB TABLES/COLUMNS BY NAME
- Use this script to find all columns, with a name that is similar to
the search term
*******************************************/
/* Define column name to search for */
DECLARE @term varchar(20) = ''; -- e.g. 'user', 'gst', 'cpi'...etc
-- leave blank to return EVERY database table + column.
@jibbius
jibbius / Clear IE icon cache.bat
Last active December 16, 2015 14:39
Clear IE icon cache: This script is supposed to clear the icon cache, for "favourites" in IE. You may also need to delete cache/browsing history/cookies...etc
REM
REM This script is supposed to clear the icon cache, for "favourites" in IE.
REM You may also need to delete cache/browsing history/cookies...etc
REM
cd /d %userprofile%\AppData\Local
attrib -h IconCache.db
del IconCache.db
pause
@jibbius
jibbius / Snagit_ImgPath.vbs
Last active December 16, 2015 14:39
Snagit: Send Captured File's Path To Clipboard -------------------------------------------------------------- - Ensure snagit is configured to save your capture as a file, that is then sent to an application. - Select this script as the application. - The script will then save the file's path to the clipboard.
'Snagit: Send Captured File's Path To Clipboard
'--------------------------------------------------------------
'- Ensure snagit is configured to save your capture as a file, that is then sent to an application.
'- Select this script as the application.
'- The script will then save the file's path to the clipboard.
Dim Clipboard
Set args = WScript.Arguments
if args.length > 0 then
arg1 = trim(args.Item(0))