Skip to content

Instantly share code, notes, and snippets.

View Roach's full-sized avatar
:octocat:
🤷🏻‍♂️

Roach Roach

:octocat:
🤷🏻‍♂️
View GitHub Profile
@Roach
Roach / fetch-verified-emails.py
Created January 26, 2022 00:57
Fetch GitHub org members with role and verified domain email
import csv
import os
import requests
import sys
# Verify the org name variable has been passed
sys_args = sys.argv
if len(sys_args)==1:
print("Please provide the GitHub org name")
print("{} <github-org>".format(sys_args[0]))
import json
from twitter import *
# Twitter app credentials
token = "..."
token_secret = "..."
consumer_key = "..."
consumer_secret = "..."
# Twitter client
@Roach
Roach / link-buttons.py
Created December 8, 2017 18:01
Slack Link Buttons and Deep Links Example
/**
*
* Sends a message to a channel.
* @param username Set your bot&#39;s user name. Must be used in conjunction with &#x60;as_user&#x60; set to false, otherwise ignored. See [authorship](#authorship) below.
* @param threadTs Provide another message&#39;s &#x60;ts&#x60; value to make this message a reply. Avoid using a reply&#39;s &#x60;ts&#x60; value; use its parent instead.
* @param attachments Structured message attachments.
* @param unfurlLinks Pass true to enable unfurling of primarily text-based content.
* @param text Text of the message to send. See below for an explanation of [formatting](#formatting). This field is usually required, unless you&#39;re providing only &#x60;attachments&#x60; instead.
* @param unfurlMedia Pass false to disable unfurling of media content.
* @param parse Change how messages are treated. Defaults to &#x60;none&#x60;. See [below](#formatting).
{
"token": "{{verification_token}}",
"team_id": "{{team_id}}",
"api_app_id": "{{app_id}}",
"event": {
"type": "team_join",
"user": {
"id": "{{user_id}}",
"team_id": "{{team_id}}",
"name": "{{user_name}}",
Hi <recruiter>,
I'll definitely pass this along to a few engineers I know who might be interested.
Would there be anyone in your group who might be able to assist some of the non-engineer folks? There's a lot of great talent available in a variety of roles from support to policy and operations. I feel like these folks are often overlooked in the search for great engineers.
Looking forward to hearing from you,
<name>
=============================
#!/usr/bin/env ruby
require 'json'
require 'htmlentities'
require 'twitter'
sets = %w(
Base
CAHe1
CAHe2
response.on('data', function(chunk) {
data += chunk.toString('utf8');
//is heartbeat?
if (data == '\r\n') {
stream.emit('heartbeat');
return;
}