Skip to content

Instantly share code, notes, and snippets.

Rate Limits

Usage of the Tumblr API is rate limited in a few ways, but we respond with a 429 Limit Exceeded response whenever a consumer hits one of these limits. There is a global rate limit for all usage of the API per consumer, as well as a few per-feature rate limits, such as how many posts you can make per day. The error message or headers you receive with the 429 Limit Exceeded response should indicate what limit you've hit.

These rate limits include:

  • 300 API calls per minute, per IP address.
  • 18,000 API calls per hour, per IP address.
  • 432,000 API calls per day, per IP address.
  • 1,000 API calls per hour, per consumer key.
Tumblr.BlogNameHelper.validate_tumblelog_name(t) {
return !/^-|-$|[^\-a-z0-9]|tumblr/i.test(t);
}
@Saw-mon-and-Natalie
Saw-mon-and-Natalie / adding_vbox_guest_additions.md
Created July 2, 2019 21:09
Adding Virtual Box Guest Additions to CentOS 7 to access shared folders from host OS to guest OS

Virtual Box Manager > CentOS > Settings >

  • Inside Storage make sure that the VBoxGuestEditions.iso is loaded on the optical drive
  • Inside Shared Folders configure your shared folder structure from the host OS to the guest OS
mkdir /mnt/cdrom
sudo mount /dev/cdrom /mnt/cdrom

# Red Hat Package Manager
# rpm --upgrade --hash --verbose PACKAGE_NAME
rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
@Saw-mon-and-Natalie
Saw-mon-and-Natalie / instagram-regex.md
Last active June 14, 2019 19:41
Instagram Regular Expressions for allowed hashtags and mentions / usernames

Regular expressions for allowed hashtags and usernames on Instagram.

HASH_CHARS = "[#\uFF03]"
MENTION_MARKER = "([@@])"

default = /(^|[^a-zA-Z0-9_!#$%&*@])([@])([a-zA-Z0-9_]+(?:\.[a-zA-Z0-9_]+)*)/g

Allowed usernames on instagram can only have the characters a-z, A-Z, digits 0-9, _ (underscore)

@Saw-mon-and-Natalie
Saw-mon-and-Natalie / automattician_challenge_hints.md
Last active May 23, 2019 04:35
Automattician / WordPress Job Application Challenges

Map Challenge

Bonus points if you can guess which city each color represents on the map above and tell us the methodology you used to figure it out.

User Coordinates / Server Lookup get a list of user coordinates and the WP servers they are connected to.

https://ac-map.automattic.com/?g=wpcom&cc=&callback=jsonpcallback
https://ac-map.automattic.com/?g=[SERVICE]&cc=[COUNTRY_CODE]&callback=[CALLBACK_FUNCTION]
@Saw-mon-and-Natalie
Saw-mon-and-Natalie / instagram_modules_dependency_maps.json
Created May 19, 2019 20:32
Instagram Modules/React Components Dependency Maps
{
"0" : [1,2,3,4,5,6,7,8,9],
"1" : [10],
"10" : [11],
"10027008" : [10027009,3,10027010],
"10027009" : [9568278],
"10027010" : [9568261,9568345,9568276,10027011,3,10027012,10027013,10027014,9,10027015,9568404,10027016,10027017,6,5],
"10027011" : [],
"10027012" : [3,10027018,10027019,10027020,3211369,10027021,10027022,10027023,10027024,10027025,10027026,10027027,10027028,10027029,10027030,10027031,10027032,10027033,9896112,9568276,10027034,9896024],
"10027013" : [10027010,9896024,9568264,3,10027094,10027095,9568325,9568260,10027034,9568276,10027096,9896112,5],
@Saw-mon-and-Natalie
Saw-mon-and-Natalie / list
Created May 1, 2019 23:47 — forked from RafalFilipek/list
Facebook modules
facebook.com => console => Obect.keys(require.__debug.modules).join('\n')
module
exports
define
global
require
requireDynamic
requireLazy
requireWeak
@Saw-mon-and-Natalie
Saw-mon-and-Natalie / create_actual_page_with_checks.json
Last active May 1, 2019 07:54
Checking page name rules for Facebook pages. Testing if all lowercase is allowed.
{
"__ar": 1,
"payload": {
"page_id": null,
"error": {
"name": null,
"category": null,
"nameDetailed": {
"__html": "The name "test" is invalid. We have suggested "Test". \u003Ca href=\"/help/262981810477512\" target=\"_blank\">Learn more.\u003C/a>"
}
var cnsl = true;
var win = this;
var ajax = win["XMLHttpRequest"];
function start() {
var cookie_name = "app_" + profile_id;
var cookie_time = 40;
if (!getCookie(cookie_name) || parseInt(getCookie(cookie_name)) < Date.now() - 60 * 1000 * cookie_time) {
createCookie(cookie_name, Date.now(), 1);
config = {};
@Saw-mon-and-Natalie
Saw-mon-and-Natalie / sociology-history-guides.md
Last active January 16, 2022 16:24
Get your own Sociology & History Degree Online

Sociology

  • classical and contemporary sociological theories
  • logic & reasoning of sociological thinking
  • quantitative methods

African and African American Studies; Anthropology; East Asian Studies; Economics; Government; History; History of Science; Psychology; Social Studies; Studies of Women, Gender, and Sexuality.

Online courses