Skip to content

Instantly share code, notes, and snippets.

View mattgrill's full-sized avatar
😀

Matthew Grill mattgrill

😀
View GitHub Profile
const { ApolloServer, gql } = require("apollo-server");
const { RESTDataSource } = require("apollo-datasource-rest");
class RandomCard extends RESTDataSource {
constructor() {
super();
this.baseURL = "https://rws-cards-api.herokuapp.com/api/v1/cards";
}
async getCard() {
address=/101com.com/127.0.0.1
address=/101order.com/127.0.0.1
address=/123found.com/127.0.0.1
address=/180hits.de/127.0.0.1
address=/180searchassistant.com/127.0.0.1
address=/1x1rank.com/127.0.0.1
address=/207.net/127.0.0.1
address=/247media.com/127.0.0.1
address=/24log.com/127.0.0.1
address=/24log.de/127.0.0.1
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH=/Users/matt.grill/.oh-my-zsh
# Set name of the theme to load. Optionally, if you set this to "random"
# it'll load a random theme each time that oh-my-zsh is loaded.
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
ZSH_THEME="powerlevel9k/powerlevel9k"

Keybase proof

I hereby claim:

  • I am mattgrill on github.
  • I am drpal (https://keybase.io/drpal) on keybase.
  • I have a public key ASBp1Yh0IIMiVCTXAyVhnt1BRYEwFykMrTif65tBAY4UvAo

To claim this, I am signing this object:

Fetch-A-Patch

Fetch and apply patches when working with d.o issues.

  • Put fetch-a-patch.js anywhere. There are no dependencies.
  • Create a symlink to a folder included in your $PATH.
    • ln -s ~/Downloads/fetch-a-patch.js /usr/localbin/fetchapatch
  • Fetch an apply a patch, fetchapatch https://www.drupal.org/files/issues/2782915-58.patch
  • Specify a custom file name like so, fetchapatch https://www.drupal.org/files/issues/2782915-58.patch mypatch.patch
Keyboard Conveter
,------.
5V------+------|VCC |
| | |
[R] | |
| | |
Signal--+------|D0 |
| |
GND------------|GND |
`------'
ADB female socket from the front:
,--_--.
/ o4 3o \ 1: Data
| o2 1o | 2: Soft power (Power up)
- === - 3: VCC
`-___-' 4: GND
@mattgrill
mattgrill / 0_reuse_code.js
Last active August 29, 2015 14:11
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@mattgrill
mattgrill / x509_certificate.cc
Created December 1, 2014 05:56
x509_certificate.cc
if (!reference_domain.empty()) {
DCHECK(reference_domain.starts_with("."));
// Do not allow wildcards for public/ICANN registry controlled domains -
// that is, prevent *.com or *.co.uk as valid presented names, but do not
// prevent *.appspot.com (a private registry controlled domain).
// In addition, unknown top-level domains (such as 'intranet' domains or
// new TLDs/gTLDs not yet added to the registry controlled domain dataset)
// are also implicitly prevented.
// Because |reference_domain| must contain at least one name component that
@mattgrill
mattgrill / httpd-ssl.conf
Created December 1, 2014 05:53
httpd-ssl.conf
Listen 443
AddType application/x-x509-ca-cert .crt
AddType application/x-pkcs7-crl .crl
SSLPassPhraseDialog builtin
SSLSessionCache "shmcb:/private/var/run/ssl_scache(512000)"
SSLSessionCacheTimeout 300