This file contains hidden or 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
---------------------------------------------------------------------------------------------------- | |
OWASP Top Ten | |
https://owasp.org/www-project-top-ten/ | |
The CWE Top 25 | |
https://www.sans.org/top25-software-errors/ | |
2022 CWE Top 25 Most Dangerous Software Weaknesses | |
https://cwe.mitre.org/top25/archive/2022/2022_cwe_top25.html |
This file contains hidden or 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
// Core | |
const functions = require('firebase-functions'); | |
const admin = require('firebase-admin'); | |
admin.initializeApp(functions.config().firebase); | |
const db = admin.database(); | |
admin.auth().createUser({ | |
uid: uid, | |
displayName: displayName, | |
photoURL: photoURL |
This file contains hidden or 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
(ns cljs.compiler-options-schema | |
(:require | |
[clojure.spec :as s] | |
[clojure.string :as string] | |
;; for initial dev | |
[clojure.test :refer [deftest is testing]])) | |
(defn non-blank-string? [x] (and (string? x) (not (string/blank? x)))) | |
(defonce ^:private registry-ref (atom {})) |
This file contains hidden or 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
from __future__ import print_function | |
import cv2 | |
from googleapiclient import discovery | |
import httplib2 | |
from oauth2client.client import GoogleCredentials | |
import base64 | |
from PIL import Image | |
from PIL import ImageDraw | |
from matplotlib import pyplot as plt | |
from os import system |
This file contains hidden or 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
// Today's time is needed to get the bounding for the request | |
$currentTime = time(); | |
// Beginning and end of the day | |
$startTime = strtotime("midnight", $currentTime); | |
$endTime = strtotime("tomorrow", $startTime); | |
$smon = date("m", $startTime)-1; | |
$sday = date("d", $startTime); | |
$syear = date("Y", $startTime); |
This file contains hidden or 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
#!/bin/bash | |
# Based on the scripts written by class101 of xda-developers.com: | |
# http://forum.xda-developers.com/showpost.php?p=57490025&postcount=205 | |
# | |
# This script enables a secure tunnel for your android phone to "reverse tether" | |
# and access the internet/a private network via the following steps: | |
# | |
# 1. Establish a level 3 (TAP) tunnel from your local host to a remote server via SSH (tap0) | |
# 2. Establish a level 3 interface between your local host and your android phone via USB (usb0) |
This file contains hidden or 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
(ns todo-server.core | |
(:require | |
[cljs.nodejs :as nodejs] | |
[figwheel.client :as fw])) | |
(nodejs/enable-util-print!) | |
(defonce express (nodejs/require "express")) | |
(defonce serve-static (nodejs/require "serve-static")) | |
(defonce http (nodejs/require "http")) |
This file contains hidden or 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
;;;; asf's emacs config | |
;;; Packages: | |
(require 'package) | |
(setq package-archives '(("gnu" . "http://elpa.gnu.org/packages/") | |
("marmalade" . "http://marmalade-repo.org/packages/") | |
("melpa" . "http://melpa.milkbox.net/packages/"))) | |
(package-initialize) | |
;;; Bootstrap package config: |