Skip to content

Instantly share code, notes, and snippets.

View manniresystems's full-sized avatar

manniresystems

View GitHub Profile
@manniresystems
manniresystems / default_creds.txt
Created December 17, 2022 22:55 — forked from Bedrovelsen/default_creds.txt
shodan_webcam_dorks.txt
ACTI - admin:123456 or Admin:123456
American Dynamics - admin:admin or admin:9999
Avigilon - admin:admin
Axis(new) - No default login
Axis(traditional) - root:pass
Basler - admin:admin
Brickcom - admin:admin
Canon - root:camera
Cisco - No default login
Dahua - admin:admin
Acta: admin / 123456
Appro: admin / 9999
Avigilon: admin / admin
Axis: root / pass
Basler: admin / admin
Boschs: service / service
Brickcom: admin / admin
Canon: root / (Camera Model)
CBC: admin / admin
CNB: root / admin
<?php
class HttpRequest
{
private $_httpRequest;
public function __construct($httpRequest)
{
$this->_httpRequest = $httpRequest;
}
@manniresystems
manniresystems / AdbCommands
Created October 27, 2019 05:46 — forked from Pulimet/AdbCommands
Adb useful commands list
== Adb Server
adb kill-server
adb start-server
== Adb Reboot
adb reboot
adb reboot recovery
adb reboot-bootloader
== Shell
@manniresystems
manniresystems / counter.function.js
Created October 20, 2019 17:05 — forked from saintplay/counter.function.js
Add counter for Firestore Collection
// functions/income/counter.function.js
'use strict'
const functions = require('firebase-functions')
const admin = require('firebase-admin')
// Prevent firebase from initializing twice
try { admin.initializeApp(functions.config().firebase) } catch (e) {}
@manniresystems
manniresystems / php
Created October 20, 2019 16:02 — forked from jasonbyrne/php
Beginnings of a Firestore CRUD Library for PHP
<?php
namespace PHPFireStore {
class FireStoreDocument {
private $fields = [];
private $name = null;
private $createTime = null;
private $updateTime = null;
@manniresystems
manniresystems / get_image_path_with_image_style.php
Created September 14, 2019 16:27 — forked from slivorezka/get_image_path_with_image_style.php
Drupal 8: Get Image URL / URI with Image Style
<?php
use Drupal\file\Entity\File;
use Drupal\image\Entity\ImageStyle;
// File ID.
$fid = 123;
// Load file.
$file = File::load($fid);
// Get origin image URI.
$image_uri = $file->getFileUri();
// Load image style "thumbnail".
@manniresystems
manniresystems / raspbian-list-open-ports.sh
Created September 10, 2019 00:27
Raspberry Pi Raspbian list open ports
netstat -lnt | grep LISTEN | awk '{ print ( $4 ) }' | awk 'BEGIN{FS=":"} { print $(NF) }' | sort -n | uniq
import express, { Router, Request } from 'express';
import admin from 'firebase-admin';
admin.initializeApp({
credential: admin.credential.applicationDefault()
});
const db = admin.firestore();
const router = Router()
router.get('/', async (req, res, next) => {
@manniresystems
manniresystems / FirebaseToFirestore.js
Created September 6, 2019 08:41 — forked from JoeRoddy/FirebaseToFirestore.js
Convert Firebase Database JSON to Firestore Collections
var db = firebase.firestore();
var content = require("./sourceData.json");
content &&
Object.keys(content).forEach(contentKey => {
const nestedContent = content[contentKey];
if (typeof nestedContent === "object") {
Object.keys(nestedContent).forEach(docTitle => {
firebase
.firestore()