Skip to content

Instantly share code, notes, and snippets.

View DrSnowbird's full-sized avatar
🏄‍♀️
Focusing

DrSnowbird DrSnowbird

🏄‍♀️
Focusing
View GitHub Profile
@Lh4cKg
Lh4cKg / mongodb_backup.py
Created January 22, 2020 07:50
MongoDB Dump And Restore Database With Python PyMongo Driver
import bson
from pymongo import MongoClient
def dump(collections, conn, db_name, path):
"""
MongoDB Dump
@kerihenare
kerihenare / docker-compose.yml
Last active February 18, 2022 21:50
Quick MAMP docker example
version: '2'
services:
web:
image: php:apache
restart: unless-stopped
volumes:
- $PWD:/var/www
ports:
- 80:80
@sunapi386
sunapi386 / guacaadduser.md
Created October 20, 2015 01:46
Guacamole Add User

Adding a user

Create a user

Then create the user; remember setting to his password to "chessman123"

sudo adduser binsun

Modifying guacamole's user login data

@stephenhardy
stephenhardy / git-clearHistory
Created April 26, 2013 22:14
Steps to clear out the history of a git/github repository
-- Remove the history from
rm -rf .git
-- recreate the repos from the current content only
git init
git add .
git commit -m "Initial commit"
-- push to the github remote repos ensuring you overwrite history
git remote add origin [email protected]:<YOUR ACCOUNT>/<YOUR REPOS>.git