Skip to content

Instantly share code, notes, and snippets.

View gist:a345df4571da9ccf6a7eed4fe00a0cb1
<s:Envelope
xmlns:s="http://www.w3.org/2003/05/soap-envelope"
xmlns:a="http://www.w3.org/2005/08/addressing"
xmlns:u="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
<s:Header>
<a:Action s:mustUnderstand="1">http://schemas.xmlsoap.org/ws/2005/02/trust/RST/SCT</a:Action>
<a:MessageID>urn:uuid:5382e44f-1711-4291-8e6d-64086192e485</a:MessageID>
<a:ReplyTo>
<a:Address>http://www.w3.org/2005/08/addressing/anonymous</a:Address>
</a:ReplyTo>
@cj
cj / 1_welcome.txt
Created Feb 13, 2020 — forked from hjertnes/doom.txt
Doom Emacs Cheatsheet
View 1_welcome.txt
Before you doom yourself, there are a few things you should know:
1. Whenever you edit your doom! block in ~/.doom.d/init.el or modify your
modules, run:
bin/doom refresh
This will ensure all needed packages are installed, all orphaned packages are
removed, and your autoloads files are up to date. This is important! If you
forget to do this you will get errors!
@cj
cj / doom.txt
Created Feb 13, 2020 — forked from hjertnes/doom.txt
Doom Emacs Cheatsheet
View doom.txt
SPC
SPC: find file
, switch buffer
. browse files
: MX
; EX
< switch buffer
` eval
u universal arg
x pop up scratch
View compat.js
import compat from 'preact/compat'
export * from 'preact/compat';
export default compat;
View compat.js
import compat from 'preact/compat'
export * from 'preact/compat';
export default compat;
View UserList.jsx
import m from 'mithril'
import User from '../models/User'
const Container = '.p-10.bg-pri'
const UserListItem = {
view({ attrs: { user } }) {
return (
<div class="user-list">
{user.firstName} {user.lastName}
View json
{
"before": [
"<leader>",
"u"
],
"after": [],
"commands": [
{
"command": "redo",
"args": []
View graphqlRequestUsingFetch.js
fetch('https://api.graph.cool/simple/v1/cixos23120m0n0173veiiwrjr', {
method: 'post',
mode: 'cors',
headers: new Headers({'content-type': 'application/json'}),
body: JSON.stringify({
operationName: null,
query: `{
Movie(id: "cixos5gtq0ogi0126tvekxo27") {
id
title
@cj
cj / gitlab.sh
Created Feb 24, 2016 — forked from sanand0/gitlab.sh
Installing Gitlab
View gitlab.sh
# Gitlab 5.1: https://github.com/gitlabhq/gitlabhq/blob/5-1-stable/doc/install/installation.md
# Set up an AWS EC2 Ubuntu 12.04 LTS Server.
# Use ap-southeast-1b: spot pricing is smoother
# Log in as ubuntu@
sudo apt-get -y update
sudo apt-get -y upgrade
# Install the required packages.
View Gemfile
gem 'roda', '2.5.0'
gem 'wedge', github: 'wedge/wedgeio'