Skip to content

Instantly share code, notes, and snippets.

🙄
Creating

Yashua cyberwombat

🙄
Creating
Block or report user

Report or block cyberwombat

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:cba15f923c8e44bfa51f927323f8c670
Cipher# 0 : TLS_RSA_WITH_AES_256_CBC_SHA256
Cipher# 1 : TLS_DHE_RSA_WITH_AES_256_CBC_SHA256
Cipher# 2 : TLS_DHE_DSS_WITH_AES_256_CBC_SHA256
Cipher# 3 : TLS_RSA_WITH_AES_256_CBC_SHA
Cipher# 4 : TLS_DHE_RSA_WITH_AES_256_CBC_SHA
Cipher# 5 : TLS_DHE_DSS_WITH_AES_256_CBC_SHA
Cipher# 6 : TLS_RSA_WITH_AES_128_CBC_SHA256
Cipher# 7 : TLS_DHE_RSA_WITH_AES_128_CBC_SHA256
Cipher# 8 : TLS_DHE_DSS_WITH_AES_128_CBC_SHA256
Cipher# 9 : TLS_RSA_WITH_AES_128_CBC_SHA
View base64.txt
T1RUTwAKAIAAAwAgQ0ZGIKomfKYAAAl0AABh1E9TLzJpNAVNAAABEAAAAGBjbWFwzFTwSwAAA9gAAAV8aGVhZIrevHgAAACsAAAANmhoZWGDPn/nAAAA5AAAACRobXR4VlH8fQAAa0gAAAK0bHRhZ2V+AAQAAG38AAAAEm1heHAArVAAAAABCAAAAAZuYW1lYZCvBQAAAXAAAAJocG9zdAADAAAAAAlUAAAAIAABAAAAAQAAYqnXfF8PPPUAAwPoAAAAANYWvGkAAAAA1ha8af+Z/4uAAQM7AAAAAwACAAAAAAAAAAEAAAM7/zgAAIAB/5kAAIBoAAEAAAAAAAAAAAAAAAAAAACtAABQAACtAAAAAwH6AZAABQAAAooCuwAAAIwCigK7AAAB3wAxAQIAAAAAAAAAAAAAAACAAAAnAAAACAAAAAAAAAAAWFhYWABAACAhIgM7/zgAAAM7AHUAAAABAAAAAAG8AkQAIAAgAAAAAAASAN4AAAAEAAAAAAB8AAAAAQAAAAAAAQAIAHwAAQAAAAAAAgAHAJQAAQAAAAAAAwAmAKkAAQAAAAAABAAIAHwAAQAAAAAABQAlARsAAQAAAAAABgAIAHwAAQAAAAAAEAAIAHwAAQAAAAAAEQAHAJQAAwABBAkAAAB8AAAAAwABBAkAAQAQAIQAAwABBAkAAgAOAJsAAwABBAkAAwBMAM8AAwABBAkABAAQAIQAAwABBAkABQBKAUAAAwABBAkABgAQAIQAAwABBAkAEAAQAIQAAwABBAkAEQAOAJsAqQAxADkAOQA5ACAARQB0AGgAYQBuACAARAB1AG4AaABhAG0AICAQACAARgBvAG4AdABoAGUAYQBkACAARABlAHMAaQBnAG4AICAQACAAaAB0AHQAcAA6AC8ALwB3AHcAdwAuAGYAbwBuAHQAaABlAGEAZAAuAGMAbwBtQ3Jvd0JlYWsAQwByAG8AdwBCAGUAYQBrUmVndWxhcgBSAGUAZwB1AGwAYQByTWFjcm9tZWRp
@cyberwombat
cyberwombat / gist:f2b8e15618f732ee543e95efe34a28bd
Last active Oct 24, 2017
4xx handling with various HTTP client libs for node
View gist:f2b8e15618f732ee543e95efe34a28bd
// request-promise-native
const body = request({ url: url, json: true })
const res = await t.throws(body);
console.log(res.error)
// node-fetch
const body = await fetch(url)
console.log(await body.json())
View gist:2d5c3850708eadeef2dc2df7146d2fc7
// Find all files which contain 'blah' from current dir
find . -type 'f' -exec grep -H 'blah' {}\;
@cyberwombat
cyberwombat / api.js
Created Nov 13, 2016
Walmart API authentication in Node
View api.js
import { createSign, randomBytes } from 'crypto'
import axios from 'axios'
import { resolve } from 'url'
const PK_HEADER = '\n-----BEGIN PRIVATE KEY-----\n'
const PK_FOOTER = '\n-----END PRIVATE KEY-----\n'
const BASE_URL = 'https://marketplace.walmartapis.com/'
const WALMART_CONSUMER = "b68d2a72....";
@cyberwombat
cyberwombat / test.php
Last active Aug 30, 2016
preg_replace
View test.php
<?php
$html =
"<div class=\"row home-pg-feed-item pl0 pr0 ml0 mr0\" data-type=\"video\">" .
"<div class=\"col-lg-4 col-xs-4 pl0\">" .
"<a href=\"/clinical-dialogue.php?v={{ url }}\"><img src=\"{{ thumb-sm }}\" alt=\"img\"/></a>" .
"</div>" .
"<div class=\"col-lg-8 col-xs-8 pr0 \">" .
"<h4 class=\"mb5\">{{ title }}</h4>" .
"<a href=\"/clinical-dialogue.php?v={{ url }}\" class=\"watch-link\">Watch the video</a>" .
"<p>{{ summary }}</p>" .
View bootstrap-4.0.0-alpha.3.min.css
/*!
* Bootstrap v4.0.0-alpha.3 (http://getbootstrap.com)
* Copyright 2011-2016 The Bootstrap Authors
* Copyright 2011-2016 Twitter, Inc.
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
*//*! normalize.css v4.0.0 | MIT License | github.com/necolas/normalize.css */html{font-family:sans-serif;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}body{margin:0}article,aside,details,figcaption,figure,footer,header,main,menu,nav,section,summary{display:block}audio,canvas,progress,video{display:inline-block}audio:not([controls]){display:none;height:0}progress{vertical-align:baseline}[hidden],template{display:none}a{background-color:transparent}a:active,a:hover{outline-width:0}abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted}b,strong{font-weight:inherit}b,strong{font-weight:bolder}dfn{font-style:italic}h1{font-size:2em;margin:.67em 0}mark{background-color:#ff0;color:#000}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relati
@cyberwombat
cyberwombat / preview.js
Created May 25, 2016
Angular delayed image load directive
View preview.js
/*
* Angular directive to insert an image from a source that may require a few seconds
* to become available such as a thumb created by server to AWS S3.
* This directive checks if the image yields an error, if so it will loop a HEAD request
* every intevrval (default to 500ms, 5 times), If that fails then it will jus use the
* fallback image
* This directive will only peform an HTTP request when the initial loading image fails
*/
angular.module('app').directive('preview', function(stickerService, $http, $interval) {
return {
@cyberwombat
cyberwombat / Statistics.js
Created Apr 17, 2014
Loading Segment.io analytics.js open source version async
View Statistics.js
// Create a dummy analytics object until real loaded
window.analytics || (window.analytics = []);
window.analytics.methods = ['identify', 'track', 'trackLink', 'trackForm', 'trackClick', 'trackSubmit', 'page', 'pageview', 'ab', 'alias', 'ready', 'group', 'on', 'once', 'off'];
window.analytics.factory = function(method) {
return function() {
var args = Array.prototype.slice.call(arguments);
args.unshift(method);
window.analytics.push(args);
return window.analytics;
};
View gist:5321180
{
"name": "gonegreen",
"domains": [
"gonegreenstore.com",
"www.gonegreenstore.com"
],
"version": "0.0.0-69",
"dependencies": {
"express": ">= 3.0.0rc2",
"passport": "*",
You can’t perform that action at this time.