Skip to content

Instantly share code, notes, and snippets.

@wesQ3
wesQ3 / gist:1782417
Created February 9, 2012 19:51
POST /api/v1/projects.json
// POST http://staginginfo.marketmaker4.com/api/v1/projects.json
{
"project": {
"actor_uid": "7ajxdiGvTvZ8DJoT2uY4",
"list": {
"name": "Test 1329343404",
"companies": [
{
"contacts": [
{
@wesQ3
wesQ3 / gist:5555932
Created May 10, 2013 17:23
Candybox enhancement scratchpad
window.wes = {
eatTask: null,
questTask: null,
titleTask: null,
questFn: function () {
if (!quest.weAreQuestingRightNow && quest.tiredTime === 0)
quest.begin(false, 3);
},
titleFn: function () {
document.title = candies.nbrOwned + 'c|'
@wesQ3
wesQ3 / gist:9898981
Last active January 17, 2019 22:04
Future cheatsheet
State boolean CB CB Returning Future CB Returning Future & taking Future
@wesQ3
wesQ3 / gist:a830b865e07ec16a6ebf
Created March 10, 2015 15:38
Midori browser execute commands (--help-execute)
About About
AddDesktopShortcut Create Launcher
AddNewsFeed Subscribe to News feed
AddSpeedDial Add to Speed dial
Back Back: Go back to the previous page
BookmarkAdd Add Bookmark: Add a new bookmark
Bookmarkbar Bookmarkbar
BookmarkFolderAdd Add a new folder
Bookmarks Bookmarks: Show the saved bookmarks
BookmarksExport Export bookmarks
@wesQ3
wesQ3 / black.ini
Created April 28, 2015 05:42
Mass effect 1 character sliders
#Face code converter v2.0
#Generated: 25.07.2012 13:06:26
#1 means far left. (don't forget to count the 1)
#Face sliders for:
#133.E59.DD1.R14.F1A.17T.HNQ.121.DE8.1C7.2G6.376
#Gender: female
http://kp/user-data/apt/temp/test.mp3 0 seconds, status code 200
GLib-CRITICAL **: Source ID 62738 was not found when attempting to remove it at /opt/lnm-lib/lib/perl5/IO/Async/Loop/Glib.pm line 315.
GLib-CRITICAL **: Source ID 62739 was not found when attempting to remove it at /opt/lnm-lib/lib/perl5/IO/Async/Loop/Glib.pm line 315.
GLib-CRITICAL **: Source ID 62742 was not found when attempting to remove it at /opt/lnm-lib/lib/perl5/IO/Async/Loop/Glib.pm line 315.
GLib-CRITICAL **: Source ID 62743 was not found when attempting to remove it at /opt/lnm-lib/lib/perl5/IO/Async/Loop/Glib.pm line 315.
GLib-CRITICAL **: Source ID 62744 was not found when attempting to remove it at /opt/lnm-lib/lib/perl5/IO/Async/Loop/Glib.pm line 315.
Attempt to free unreferenced scalar: SV 0x1f69e78 at /opt/lnm-lib/lib/perl5/IO/All/Base.pm line 85.
[New Thread 0x6924f460 (LWP 29318)]
[New Thread 0x67a2f460 (LWP 29316)]
[New Thread 0x6822f460 (LWP 29315)]
@wesQ3
wesQ3 / WrapCGI.pm
Last active May 6, 2024 21:28 — forked from frioux/WrapCGI.pm
replacement Plack::App::WrapCGI (perl only)
# from Plack 1.0051 2024-01-05
package Plack::App::WrapCGI;
use strict;
use warnings;
use parent qw(Plack::Component);
use Plack::Util::Accessor qw(script execute _app);
use File::Spec;
use CGI::Emulate::PSGI;
use CGI::Compile;
use Carp;
@wesQ3
wesQ3 / table-sizes.sql
Created June 16, 2022 19:17
MSSQL - Size of all tables in MB
select schema_name(tab.schema_id) + '.' + tab.name as [table],
cast(sum(spc.used_pages * 8)/1024.00 as numeric(36, 2)) as used_mb,
cast(sum(spc.total_pages * 8)/1024.00 as numeric(36, 2)) as allocated_mb
from sys.tables tab
inner join sys.indexes ind
on tab.object_id = ind.object_id
inner join sys.partitions part
on ind.object_id = part.object_id and ind.index_id = part.index_id
inner join sys.allocation_units spc
on part.partition_id = spc.container_id