Skip to content

Instantly share code, notes, and snippets.

View markstreich's full-sized avatar

Mark markstreich

View GitHub Profile
@markstreich
markstreich / innobackupex-runner.sh
Created November 23, 2011 03:10 — forked from dalecaru/innobackupex-restore.sh
Script to run innobackupex script (for all databases on server), check for success, and apply logs to backups.
#!/bin/sh
#
# Script to run innobackupex script (for all databases on server), check for success, and apply logs to backups.
#
# (C)2010 Owen Carter @ Mirabeau BV
# This script is provided as-is; no liability can be accepted for use.
# You are free to modify and reproduce so long as this attribution is preserved.
#
INNOBACKUPEX=innobackupex-1.5.1
@markstreich
markstreich / gist:3667944
Created September 7, 2012 17:27
PhantomJS: Ajax response capture through console.log
var page = require('webpage').create();
page.open('http://www.website.com/', function (status) {
if (status === 'success') {
captureAjaxResponsesToConsole();
}
});
function captureAjaxResponsesToConsole() {
// logs ajax response contents to console so sublime's onConsoleMessage can use the contents
@markstreich
markstreich / gist:4502902
Created January 10, 2013 15:34
AHK Clipboard Quote Escape
F12::
X:=""""
Y:=""""""
Z=%Clipboard%
StringReplace,Z,Z,%X%,%Y%,All
StringReplace,Z,Z,`n,,All
StringReplace,Z,Z,`r,,All
Clipboard=%Z%
return
@markstreich
markstreich / gist:3be128c2a2a823326bca
Created December 4, 2014 16:50
SIOSocket CocoaPod Podfile
source 'https://github.com/CocoaPods/Specs.git'
link_with ['socketiotest', 'socketiotestTests']
pod 'SIOSocket', '~> 0.2.0'
This file has been truncated, but you can view the full file.
// see my comment here: https://github.com/pipedrive/client-nodejs/issues/340
/* eslint-disable max-classes-per-file */
declare module 'pipedrive' {
export class ApiClient {
authentications: any;
}
export class DealsApi {
constructor(client: any);
@markstreich
markstreich / custom_css.css
Last active May 25, 2023 22:12
Monokai Kagi theme
.app-logo {
display: none;
}
.theme_dark {
--background-color: #221f22;
--header-bg: #2d2a2e;
--search-result-title: #66d9ef;
--result-item-title-border: transparent;
--color-primary_visited: #ae81ff;
@markstreich
markstreich / search.css
Created February 9, 2023 09:11
Kagi inline "more search"
/* search */
._0_more_search_bangs_list_box {
border:0;
}
._0_more_search_user_bang_item {
min-height:unset;
padding-top:2px;
padding-bottom:2px;
}
.serp_nav_end .k_ui_dropdown_data_list {