Skip to content

Instantly share code, notes, and snippets.

@vshih
vshih / bugmenot.js
Created April 27, 2009 06:39
Ubiquity bugmenot.com - Queries bugmenot.com and posts login information for the current page.
/*
bugmenot.js
Queries bugmenot.com for the current page, populates login information and submits.
Written by Victor Shih (vshih at yahoo.com, http://blog.vicshih.com/2009/04/bugmenot-command-for-ubiquity.html)
Initial idea and some code from Onur Yalazı ([email protected], http://www.yalazi.org/ubiquity) and Brandon Goldsworthy.
*/
const MIN_RATE_PERCENT = 50; // only show entries that rate 50% or more
// ==UserScript==
// @name Amazon Lowest Price Checker
// @namespace http://gigi-net.net
// @include http://www.amazon.co.jp/*
// ==/UserScript==
(function(){
//価格を3ケタ区切りにする関数
function SetPrice(price){
 var num = new String(price).replace(/,/g, "");
 while(num != (num = num.replace(/^(-?\d+)(\d{3})/, "$1,$2")));
//
// Regular Expression for URL validation
//
// Author: Diego Perini
// Created: 2010/12/05
// Updated: 2018/09/12
// License: MIT
//
// Copyright (c) 2010-2018 Diego Perini (http://www.iport.it)
//
@crccheck
crccheck / remove css style bookmarklet.js
Created December 6, 2010 17:33
Remove all CSS styles bookmarklet
javascript:(function(){$('[style]').removeAttr('style'); $('link[type="text/css"]').remove(); $('style').remove();})();
@awilhite
awilhite / session_manager_setup.sh
Created September 25, 2011 23:28 — forked from alex-endfinger/session_manager_setup.sh
Start Chrome OS With Flags. Overide Existing File in /sbin/session_manager_setup.sh
#!/bin/sh
# Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
# Set up to start the X server ASAP, then let the startup run in the
# background while we set up other stuff.
XAUTH_FILE="/var/run/chromelogin.auth"
MCOOKIE=$(head -c 8 /dev/urandom | openssl md5) # speed this up?
@avar
avar / elastic-search-name-matching.sh
Created March 17, 2012 13:41
ElasticSearch Exact Name matching
export http_proxy=
export https_proxy=
curl -XDELETE 'http://localhost:9200/test/'
echo "Creating the mapping"
curl -XPUT 'http://localhost:9200/test/?pretty=1' -d '
{
"mappings" : {
"member" : {

Configure Mail Settings

Before you can send emails with ColdFusion, a mail server you want to use needs to be set. Configuring the mail server can be done in the ColdFusion Administrator.

If you do not have a mail server of your own, your localhost can act as a mail server. ColdFusion will act normally, but since there is no mail server set up on your localhost, emails will not arrive at their destination. Another option is to use the mail server of Gmail (a Gmail account is required for this). The settings for this mail server can be found at the end of this section.

@mogsdad
mogsdad / Rescue Files.gs
Last active June 30, 2025 19:25
This is the full script solution for Stack Overflow Q14518410, "a google apps script to move or restore google drive's files from the trash"http://stackoverflow.com/questions/14518410/a-google-apps-script-to-move-or-restore-google-drives-files-from-the-trash
// See http://stackoverflow.com/questions/14518410/a-google-apps-script-to-move-or-restore-google-drives-files-from-the-trash
var addonName = 'Rescue Files';
var rescueFldrName = 'Rescued Files'; // The name of the folder that rescued files should be placed into
/**
* Adds an addon menu to the active spreadsheet.
*/
function onOpen() {
var ui = SpreadsheetApp.getUi();
@johan
johan / README.md
Last active April 23, 2021 05:00
RFC 5545 compliant (US) Groupon holiday iCal calendar

Groupon US' recognized holidays are:

  • New Year’s Day
  • Memorial Day
  • Independence Day
  • Labor Day
  • Thanksgiving Day
  • day after Thanksgiving
  • day before Christmas
  • Christmas Day
@darcyparker
darcyparker / getInfo.bat
Last active January 24, 2023 22:30
Windows Batch File to collect information about system, and files & dirs in current directory- useful for debugging issues- compare results using diff tool (like kdiff or vimdiff) between machines where issue occurs and does not occur. Note: Parts of batch file depends on md5sum.exe from http://gnuwin32.sourceforge.net/packages/coreutils.htm
@echo off
REM Windows Batch File to collect information about system, and files & dirs in current directory
REM - useful for debugging issues
REM - compare results using diff tool (like kdiff or vimdiff) between machines where issue occurs and does not occur
REM Written by Darcy Parker - [email protected] - 3/28/2013 and updated periodically since then.
REM - See https://gist.github.com/darcyparker/5264774 for updates.
REM Depends on md5sum.exe from http://gnuwin32.sourceforge.net/packages/coreutils.htm
setlocal
REM Get the current directory name