This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# put your instance id here | |
instance="dev######" | |
# make sure your password doesn't have shell operators in it | |
credentials="admin:password" | |
while true; do | |
entropy=`rand` | |
outdata="{\"short_description\":\"Automated incident $entropy\"}" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Eg. URL translating en page to es | |
http://translate.google.com/translate?hl=en&sl=en&tl=es&u=http://about.com | |
Define the web interface language to be English by adding | |
hl=en to the end of the URL and after the change the URL will look | |
like this: | |
http://www.google.com/search?hl=en | |
When you use more than one setting code in the URL, you need to use |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Script Include | |
Name: JournalRedactor | |
Client Callable: false | |
Accessible from: All scopes | |
Usage documentation: http://redactor.snc.guru/ | |
*/ | |
var JournalRedactor = Class.create(); | |
JournalRedactor.prototype = { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// just run node pandoc-build.js > output.txt | |
// that will write the contents of this there | |
// and then just copy paste that command and | |
// you should get a good epub. | |
// I always had to cd to the root of the posts | |
// directory to run the command. | |
var fs = require('fs'); | |
var path = require('path'); | |
var output = [ | |
"pandoc -o _book.epub \\\n", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/******/ (function(modules) { // webpackBootstrap | |
/******/ // The module cache | |
/******/ var installedModules = {}; | |
/******/ | |
/******/ // The require function | |
/******/ function __webpack_require__(moduleId) { | |
/******/ | |
/******/ // Check if module is in cache | |
/******/ if(installedModules[moduleId]) { | |
/******/ return installedModules[moduleId].exports; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*Business Rule: Automagically Link*/ | |
/*Table: sys_journal_field*/ | |
/*When: After*/ | |
/*Order: 100*/ | |
/*Insert: true*/ | |
/*Update: true*/ | |
/*jslint sloppy: true, vars: true*/ | |
/*global GlideRecord, current, paddAndLinkRefs*/ | |
function onAfter(current, previous) { | |
//This function will be automatically called when this rule is processed. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Name: push comments to ritm | |
//Table: Catalog Task | |
//When: Before | |
//Insert: false | |
//Update: true | |
(function executeRule(current, previous /*null when async*/) { | |
try{ | |
var sc_req_item = new GlideRecord('sc_req_item'); | |
if(sc_req_item.get(current.request_item)){ | |
sc_req_item.comments = current.comments; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//script include global.choiceUtil | |
//client callable true | |
var choiceUtil = Class.create(); | |
choiceUtil.prototype = Object.extendsObject(AbstractAjaxProcessor, { | |
getHint: function() { | |
try { | |
var returnObj = {}; | |
var hint = new GlideRecord('sys_choice'); | |
hint.addQuery('name', this.getParameter('sysparm_table')); | |
hint.addQuery('field', this.getParameter('sysparm_field')); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8" ?> | |
<j:jelly trim="false" xmlns:j="jelly:core" xmlns:g="glide" xmlns:j2="null" xmlns:g2="null"> | |
<script> | |
window.location.href = '/cms' | |
</script> | |
</j:jelly> |
NewerOlder