Skip to content

Instantly share code, notes, and snippets.

@samueldowens
samueldowens / .md
Created November 9, 2017 19:37 — forked from katienreed/.md
Okta/Namely SCIM Configuration Guide

Configuration Steps

Configure your Provisioning settings for the Namely/Okta SCIM Integration as follows:

  1. Check the enable provisioning features box.

  2. In the SubDomain field: enter your Namely subdomain. For example, if you log into https://acme.namely.com, enter: acme. For the current steps, I will use my own sandbox as an example with reed-sandbox. Image

  3. API Authentication

var PranaSnippet = {
triggerOn: false,
alreadyTriggered: false,
currentlyInTriggerArea: false,
Model: {},
Controller: {},
View: {}
}
@samueldowens
samueldowens / gist:8374333
Created January 11, 2014 17:58
checking port 80
♥ sudo lsof -i:80
Password:
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
httpd 822 root 5u IPv6 0xa2d943d26f90cbaf 0t0 TCP *:http (LISTEN)
httpd 826 _www 5u IPv6 0xa2d943d26f90cbaf 0t0 TCP *:http (LISTEN)
httpd 858 _www 5u IPv6 0xa2d943d26f90cbaf 0t0 TCP *:http (LISTEN)
httpd 859 _www 5u IPv6 0xa2d943d26f90cbaf 0t0 TCP *:http (LISTEN)
httpd 860 _www 5u IPv6 0xa2d943d26f90cbaf 0t0 TCP *:http (LISTEN)
Google 1743 myusername 234u IPv4 0xa2d943d273b69ff7 0t0 TCP 192.168.101.110:61990->a23-45-65-19.deploy.static.akamaitechnologies.com:http (ESTABLISHED)
@samueldowens
samueldowens / gist:8374060
Created January 11, 2014 17:36
contents of username.conf
<Directory "/Users/samuelowens/Development/">
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
@samueldowens
samueldowens / gist:8374007
Created January 11, 2014 17:34
httpd.conf file
#
# This is the main Apache HTTP server configuration file. It contains the
# configuration directives that give the server its instructions.
# See <URL:http://httpd.apache.org/docs/2.2> for detailed information.
# In particular, see
# <URL:http://httpd.apache.org/docs/2.2/mod/directives.html>
# for a discussion of each configuration directive.
#
# Do NOT simply read the instructions in here without understanding
# what they do. They're here only as hints or reminders. If you are unsure
@samueldowens
samueldowens / gist:7647253
Last active December 29, 2015 08:59
Domain Model Brainstorm/Notes
Users
Name(text_field)
Permissions(integer)
GitHub_id(text_field)
Issues
Description(text_field)[character limited]
Resolved(boolean)
user_id
timestamp
@samueldowens
samueldowens / _config.yml
Created October 28, 2013 15:50
_config.yml
# ----------------------- #
# Main Configs #
# ----------------------- #
url: http://samueldowens.github.io
title: Traversing the Internets
subtitle: Web Development in NYC
author: Samuel Owens
simple_search: http://google.com/search
description:
@samueldowens
samueldowens / config.ru
Created October 21, 2013 17:50
simple sinatra config.ru
# # config.ru
require 'sinatra'
get '/' do
"Hello Sinatra!"
end
get '/hello/:name' do |n|
"Hello #{n}!"
@samueldowens
samueldowens / database.rb
Created October 17, 2013 13:41
database outline for putting data into a DB from an array
class Database
@@db = SQLite3::Database.new('articles.db')
@@db.execute("CREATE TABLE if NOT EXISTS articles(id INTEGER PRIMARY KEY ASC, title TEXT UNIQUE, url TEXT, parent_url TEXT, points INTEGER);")
def self.insert(array)
array.each do |article|
sql = "REPLACE INTO articles(title, url, parent_url, points) VALUES (?,?,?,?)"
@@db.execute(sql, article.title, article.url, article.parent_url, article.points)
end
@samueldowens
samueldowens / nokogiri_stuff.rb
Created October 17, 2013 13:37
Scrape from previous project on the student website.
#get list of links to crawl
require 'nokogiri'
require 'open-uri'
require 'pry'
require 'sqlite3'
main_page = Nokogiri::HTML(open('http://students.flatironschool.com/'))
students_list = main_page.css('.home-blog ul')
student_list_item = students_list.css('.blog-thumb a')