This file contains 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
var username = ''; | |
var password = ''; | |
var encoded_credentials = new Buffer(username + ':' + password).toString('base64'); | |
fetch('https://example.com', { method: 'POST', headers: {'Authorization': 'Basic ' + encoded_credentials} }) | |
.then(function(res) { | |
return res.json(); | |
}) | |
.then(function(body) { |
This file contains 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
# Usage: see http://www.hurryupandwait.io/blog/setup-a-new-machine-with-just-a-url-and-chocolatey-package | |
# Get RAW URL from this GIST | |
# START http://boxstarter.org/package/nr/url?<RAW URL from GIST> | |
####################### | |
# Windows Configuration | |
Update-ExecutionPolicy Unrestricted | |
Disable-InternetExplorerESC | |
Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowFileExtensions |
This file contains 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
package examples.docs | |
import com.atlassian.applinks.api.ApplicationLink | |
import com.atlassian.applinks.api.ApplicationLinkService | |
import com.atlassian.applinks.api.application.confluence.ConfluenceApplicationType | |
import com.atlassian.jira.issue.Issue | |
import com.atlassian.sal.api.component.ComponentLocator | |
import com.atlassian.sal.api.net.Request | |
import com.atlassian.sal.api.net.Response | |
import com.atlassian.sal.api.net.ResponseException |
This file contains 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
2013-01-31 21:07:07,947 ERROR [TP-Processor12] [atlassian.confluence.servlet.ConfluenceServletDispatcher] sendError Could not execute action | |
-- url: /homepage.action | userName: anonymous | |
org.springframework.transaction.CannotCreateTransactionException: Could not open Hibernate Session for transaction; nested exception is net.sf.hibernate.exception.GenericJDBCException: Cannot open connection | |
at org.springframework.orm.hibernate.HibernateTransactionManager.doBegin(HibernateTransactionManager.java:473) | |
at org.springframework.transaction.support.AbstractPlatformTransactionManager.getTransaction(AbstractPlatformTransactionManager.java:374) | |
at com.atlassian.xwork.interceptors.TransactionalInvocation.getNewTransaction(TransactionalInvocation.java:141) | |
at com.atlassian.xwork.interceptors.TransactionalInvocation.invokeInTransaction(TransactionalInvocation.java:40) | |
at com.atlassian.xwork.interceptors.XWorkTransactionInterceptor.intercept(XWorkTransactionInterceptor.java:56) | |
at com.opensymphony.xwork.DefaultAc |
This file contains 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
Move-LibraryDirectory "My Pictures" "Z:\Pictures" | |
Move-LibraryDirectory "My Video" "Z:\Videos" | |
Move-LibraryDirectory "My Music" "Z:\Music" | |
Move-LibraryDirectory "Downloads" "Z:\Downloads" | |
#Move-LibraryDirectory "Personal" "Z:\Documents" | |
Move-LibraryDirectory "Desktop" "Z:\Desktop" |
This file contains 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
Confluence 4.2.11 thread dump taken on Jul 30, 2012 at 6:44:15 PM: | |
Thread[scheduler_Worker-7,5,main] | |
java.lang.Object.wait(Native Method) | |
org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:543) | |
Thread[team-calendars-worker-0,5,main] | |
sun.misc.Unsafe.park(Native Method) | |
java.util.concurrent.locks.LockSupport.park(LockSupport.java:158) | |
java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:1987) | |
java.util.concurrent.LinkedBlockingQueue.take(LinkedBlockingQueue.java:399) | |
java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:947) |
This file contains 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
VM Summary | |
Sunday, July 29, 2012 6:24:48 AM EDT | |
Connection name: | |
localhost:6969 | |
Virtual Machine: | |
Java HotSpot(TM) 64-Bit Server VM version 19.1-b02 | |
Vendor: | |
Sun Microsystems Inc. |
This file contains 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
Confluence 4.2.5 thread dump taken on Jul 16, 2012 at 11:07:15 AM: | |
Thread[AtlassianEvent::CustomizableThreadFactory-1,5,main] | |
sun.misc.Unsafe.park(Native Method) | |
java.util.concurrent.locks.LockSupport.park(LockSupport.java:158) | |
java.util.concurrent.SynchronousQueue$TransferStack.awaitFulfill(SynchronousQueue.java:422) | |
java.util.concurrent.SynchronousQueue$TransferStack.transfer(SynchronousQueue.java:323) | |
java.util.concurrent.SynchronousQueue.take(SynchronousQueue.java:857) | |
java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:947) | |
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907) | |
java.lang.Thread.run(Thread.java:662) |
This file contains 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
poster.freshBooksAPICall = function (parameters) { | |
var defaultCallback, responseCallBack, options, req; | |
defaultCallback = function (error, response, body) { | |
console.log('DEFAULT LOGGER =========================== ' + error + ' ' + response + ' ' + body); | |
}; | |
responseCallback = function responseCallback(error, response, bodyXML) { | |
// console.log("From Freshbooks API: ", error); | |
// console.log("Response Obj", response); |
This file contains 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
599$ knife data bag list | |
lumberjack | |
600$ knife data bag show lumberjack | |
secrets | |
601$ knife data bag show lumberjack/secrets | |
certificate | |
id | |
key |
NewerOlder