Skip to content

Instantly share code, notes, and snippets.

@Aenigma
Aenigma / README.md
Last active May 27, 2021 15:02
Rfcomm Example

Bluetooth Communication

/** Mathematical mod */
function mmod(m, n) {
return (m % n + n) % n;
}
class NavigableTable {
static _populateIDMap(rows) {
let idMap = {};
for (let i = 0; i < rows.length; i++) {
for (var j = 0; j < rows[i].length; j++) {
@Aenigma
Aenigma / getusers.py
Created December 24, 2016 02:32
get usernames on a subreddit bot
import praw
from sets import Set
reddit = praw.Reddit()
submissions = reddit.subreddit
users = Set()
for submission in reddit.subreddit('datasets').new(limit=1000):
submission.comments.replace_more(limit=1000)
for comment in submission.comments.list():
=GetDistance(CONCATENATE(SanitizeGeo(I2), ", ", J2, " ", K2), CONCATENATE(SanitizeGeo(M2), ", ", N2, " ", O2))
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
/*
* Copyright 2014 Kevin Raoofi.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
@Aenigma
Aenigma / .gitignore
Last active October 19, 2017 01:10
Constitution for the FSU Computer Club
build/
@Aenigma
Aenigma / 2014-09-04.md
Last active August 29, 2015 14:06
COSC335 Notes

COSC 335 2014-09-04 Notes

Network Architecture

  • Network edge
    • hosts: clients and servers
    • servers often in data centers
  • Access networks
    • physical media
    • wired
    • wireless
    • communication links

Installing RVM and Ruby

If you're on a Debian based installation, before you install rvm, you need to install a system Ruby and then install build-essentials.

So, to install some requirements, run:

# aptitude update
# aptitude upgrade
# aptitude install ruby build-essential openssl libreadline6 libreadline6-dev curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev ncurses-dev automake libtool bison subversion pkg-config
function Read-CVE() {
$file = "data.csv"
Import-Csv $file | ForEach-Object {
Write-Host "OR [CVE]='$($_."CVE #")'"
}
}
function ReDo-Dates() {
$file = "results.csv"
Import-Csv $file | ForEach-Object {