This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Private:10.0.0.0-10.255.255.255 | |
Private:100.64.0.0-100.127.255.255 | |
Local:127.0.0.0-127.255.255.255 | |
Private:172.16.0.0-172.31.255.255 | |
Private:198.18.0.0-198.19.255.255 | |
Private:192.168.0.0-192.168.255.255 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
require 'active_model' | |
require 'minitest/autorun' | |
class Simple | |
include ActiveModel::Model | |
validates :name, allow_blank: true, allow_nil: true, length: { is: 2 } | |
attr_accessor :name |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
google.com | |
facebook.com | |
youtube.com | |
twitter.com | |
instagram.com | |
linkedin.com | |
microsoft.com | |
apple.com | |
wikipedia.org | |
googletagmanager.com |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
"""Set retention on slack conversations to 400 days. | |
Usage: ./set_retention.py [--perform] --token SLACK_TOKEN | |
The `--perform` flag is necessary to actually perform the action. | |
Due to the fact that `conversations.setToken` is not part of the public API | |
the slack legacy token concept will not work. To obtain the API token, | |
open up slack in the browser and observe networking traffic while performing |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
010000 1 | |
010010 1 | |
001010 4 | |
110010 0 | |
100010 4 | |
100010 4 | |
110101 3 | |
010011 1 | |
010110 1 | |
001000 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Intro: | |
I'm Bryce (/u/bboe) Author of PRAW | |
/u/busterroni's Submission: | |
https://www.reddit.com/r/learnpython/comments/5ury27/heres_a_tutorial_i_made_on_creating_a_reddit_bot/ | |
/u/busterroni's Part 1: | |
https://www.youtube.com/watch?v=krTUf7BpTc0 | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
require './common.rb' | |
require 'socket' | |
def main | |
server = server_socket('0.0.0.0', 1024) | |
loop do | |
handle_client(*server.accept) | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
from __future__ import print_function | |
REPO_URL = 'git+git://github.com/sigmavirus24/github3.py.git' | |
import os | |
import sys | |
try: | |
from github3 import login | |
except ImportError: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
from __future__ import print_function | |
from functools import wraps | |
from getpass import getpass | |
from hashlib import sha512 | |
from poplib import POP3_SSL, error_proto | |
import email | |
import os | |
import socket | |
import sys |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
"""Script to generate permenant OAuth tokens for the desired reddit scope.""" | |
from __future__ import print_function | |
import os | |
import praw | |
import sys | |
from pprint import pprint |
NewerOlder