Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View Ryanb58's full-sized avatar

Taylor Brazelton Ryanb58

View GitHub Profile
@Ryanb58
Ryanb58 / python-remote-debugger.md
Created December 16, 2017 18:15
Python Remote Debugger

PROGRAM WITH REMOTE DEBUGGER:

import time
from celery.contrib import rdb

while(True):
    time.sleep(1)
    rbd.set_trace()
 a = 1 + 3
@Ryanb58
Ryanb58 / Output
Created May 16, 2017 16:16 — forked from DazWorrall/Output
Testing file upload handling in Flask
in upload handler
in file close
..
----------------------------------------------------------------------
Ran 2 tests in 0.021s
OK
@Ryanb58
Ryanb58 / gist:a01ee640ba510de5044e2f664ced6c2c
Created March 20, 2017 18:38
cool_docker_containers.md

Portainer

UI for managing containers.

docker run -d -v "/var/run/docker.sock:/var/run/docker.sock" -p 9000:9000 portainer/portainer
@Ryanb58
Ryanb58 / jive_document_and_content_downloader.md
Last active September 25, 2023 23:05
Jive Document and Content Downloader

Jive document and blog post downloader.

Resulting file will be of PDF format.

  1. Login to Jive

  2. Hover your mouse over your profile photo in the top right corner and select "Your Content" from the dropdown list.

  3. Select the Details View in the top right pane.

@Ryanb58
Ryanb58 / Javascript_Snippets.md
Created February 16, 2017 16:28
Snippets I create that help me with Javascript

Remove text from the end of a String.

function removeFromEnd(original, textToRemove){
	return original.substring(0, original.length - textToRemove.length);
}
Author: David Lund
IdentTypes
----
ID Desc DataType
1 First Name Char
2 Last Name Char
3 SSN Char
4 StateId Int
5 Foo
@Ryanb58
Ryanb58 / todo-tutorials.md
Last active November 4, 2016 15:15
List of tutorials I want to go through and concepts I want to learn.
@Ryanb58
Ryanb58 / curl.example
Created October 4, 2016 15:05 — forked from schovi/curl.example
How to use httpie instal of curl with elasticsearch
$ curl -XPUT 'http://localhost:9200/twitter/' -d '{
index : {
number_of_shards : 3
number_of_replicas : 2
}
}'