Skip to content

Instantly share code, notes, and snippets.

View antikytheraton's full-sized avatar
💻
configuring nvim

Aaron Arredondo antikytheraton

💻
configuring nvim
View GitHub Profile
@antikytheraton
antikytheraton / oscilloscope.c
Created June 2, 2017 10:19 — forked from chrismeyersfsu/oscilloscope.c
Arduino Poor man's oscilloscope processing code
/*
* Oscilloscope
* Gives a visual rendering of analog pin 0 in realtime.
*
* This project is part of Accrochages
* See http://accrochages.drone.ws
*
* (c) 2008 Sofian Audry (info@sofianaudry.com)
*
* This program is free software: you can redistribute it and/or modify
@antikytheraton
antikytheraton / skeleton-daemon.sh
Created June 29, 2017 19:11 — forked from shawnrice/skeleton-daemon.sh
A template to write a quick daemon as a bash script
#!/bin/sh
# This is a skeleton of a bash daemon. To use for yourself, just set the
# daemonName variable and then enter in the commands to run in the doCommands
# function. Modify the variables just below to fit your preference.
daemonName="DAEMON-NAME"
pidDir="."
pidFile="$pidDir/$daemonName.pid"
@antikytheraton
antikytheraton / gist:e29ab4c598f8d070b78dab489396f80f
Created September 7, 2017 18:14 — forked from econchick/gist:4666413
Python implementation of Dijkstra's Algorithm
class Graph:
def __init__(self):
self.nodes = set()
self.edges = defaultdict(list)
self.distances = {}
def add_node(self, value):
self.nodes.add(value)
def add_edge(self, from_node, to_node, distance):
@antikytheraton
antikytheraton / gist:a35b87b7ec7845e0d71a047a6208e217
Created November 24, 2017 01:14 — forked from cdrx/gist:6952891
Django user registration with a custom user model via a Django REST Framework request
from django.contrib.auth import get_user_model
from rest_framework import status, serializers
from rest_framework.decorators import api_view
from rest_framework.response import Response
class UserSerializer(serializers.ModelSerializer):
class Meta:
model = get_user_model()
#!/home/drspock/scripts/FBInvite/bin/python
import argparse
import requests
import pyquery
def login(session, email, password):
'''
Attempt to login to Facebook. Returns user ID, xs token and
@antikytheraton
antikytheraton / fblogin.py
Created December 8, 2017 21:46 — forked from chm0815/fblogin.py
Facebook Login Script
import sys, urllib, urllib2, cookielib
class FacebookLogin(object):
def __init__(self,user,passw):
self.user=user
self.passw=passw
self.browser = urllib2.build_opener(urllib2.HTTPCookieProcessor(cookielib.CookieJar()))
self.browser.addheaders=[('User-agent', 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:6.0) Gecko/20100101 Firefox/6.0')]
urllib2.install_opener(self.browser)
@antikytheraton
antikytheraton / fblogin_test.py
Created December 8, 2017 21:49 — forked from adoc/fblogin_test.py
py: Simple facebook login
import os
import base64
import flask
import urllib.parse
import requests
app = flask.Flask(__name__)
APP_ID = "ID"
APP_SECRET = "SECRET"
@antikytheraton
antikytheraton / known.json
Last active May 26, 2018 01:14
Visit profile
{
"object_type": "profile",
"friends": true,
"friendship_pending_request": false,
"already_verified": false,
"photos": [
{
"url": "https://www.omniitworld.com/img/team5.jpg"
}
],
@antikytheraton
antikytheraton / unknown.json
Last active May 26, 2018 01:13
Visit profile - unknown
{
"object_type": "profile",
"friends": false,
"friendship_pending_request": true,
"already_verified": false,
"photos": [],
"verifications": [],
"friendships": [],
"profile_data": {
"id": 7,
{
"single": null,
"couple": {
"id_person_one": {
"profiletype": 0,
"nickname": "foo08",
"picture": "https://foo34.jpg",
"country": "México",
"spot": "Aguascalientes",
"city": "Aguascalientes",