Skip to content

Instantly share code, notes, and snippets.

View AizenSousuke's full-sized avatar

AizenSousuke

  • Singapore
  • 14:51 (UTC +08:00)
View GitHub Profile
var mongoose = require('mongoose');
var Schema = mongoose.Schema;
var assert = require('assert')
console.log('\n===========');
console.log(' mongoose version: %s', mongoose.version);
console.log('========\n\n');
var dbname = 'testing_geojsonPoint';
@davidrenne
davidrenne / gist:7468636
Created November 14, 2013 15:21
VMWARE Port forwarding instructions
Testing with Internet Explorer / NAT Port Forwarding
It is possible to connect to the rails server inside the linux virtual machine from the host computer.
This allows testing the development site with Internet Explorer.
Note: This assumes the CentOS vm is running in NAT networking mode.
1) Find out what ip address the vm is using. Open a terminal in the vm and run /sbin/ifconfig
For this example the eth0 inet addr is 192.168.179.128.
2) Open System > Administration > Security Level and Firewall. (Enter the root password if necessary.)
3) On the "Firewall Options" tab, open the "Other ports" section and add ports 3000 and 8080.
4) Click ok and confirm the changes.
2) On the windows host, open C:\ProgramData\VMware\vmnetnat.conf with a text editor.
@petehouston
petehouston / markup
Created October 17, 2014 07:20
[Bootstrap] Text overlay center inside the image
<div class="row" id="box-search">
<div class="thumbnail text-center">
<img src="img/cafe.jpg" alt="" class="img-responsive">
<div class="caption">
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Ab, quisquam?</p>
</div>
</div>
</div>
@PurpleBooth
PurpleBooth / README-Template.md
Last active March 25, 2025 08:20
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

@alirobe
alirobe / reclaimWindows10.ps1
Last active March 20, 2025 21:10
This Windows 10 Setup Script turns off a bunch of unnecessary Windows 10 telemetery, bloatware, & privacy things. Not guaranteed to catch everything. Review and tweak before running. Reboot after running. Scripts for reversing are included and commented. Fork of https://github.com/Disassembler0/Win10-Initial-Setup-Script (different defaults). N.…
###
###
### UPDATE: For Win 11, I recommend using this tool in place of this script:
### https://christitus.com/windows-tool/
### https://github.com/ChrisTitusTech/winutil
### https://www.youtube.com/watch?v=6UQZ5oQg8XA
### iwr -useb https://christitus.com/win | iex
###
### OR take a look at
### https://github.com/HotCakeX/Harden-Windows-Security
@jagrosh
jagrosh / Github Webhook Tutorial.md
Last active March 24, 2025 18:02
Simple Github -> Discord webhook

Step 1 - Make a Discord Webhook

  1. Find the Discord channel in which you would like to send commits and other updates

  2. In the settings for that channel, find the Webhooks option and create a new webhook. Note: Do NOT give this URL out to the public. Anyone or service can post messages to this channel, without even needing to be in the server. Keep it safe! WebhookDiscord

Step 2 - Set up the webhook on Github

  1. Navigate to your repository on Github, and open the Settings Settings
@trandaison
trandaison / starUML.md
Last active February 23, 2025 14:28
Get full version of StarUML
@florentbr
florentbr / #selenium-chrome-authentication-extension
Last active July 31, 2024 20:57
Chrome extension to automatically set the credentials.
To build the extension, update the username/password and zip `background.js` and `manifest.json` in a single archive.
@timvisee
timvisee / SUBREDDIT_LIST.md
Last active March 1, 2025 11:34
Get a list of subreddits you're subscribed to on reddit. https://timvisee.com/blog/list-export-your-subreddits/

As posted on: https://timvisee.com/blog/list-export-your-subreddits/

Get a list of your subreddits

To obtain a list of your subreddits, do the following:

  • First make sure you're logged in on reddit, on a desktop browser.
  • Then visit reddit.com/subreddits.
  • Then put the following snippet in your browsers address bar, and press Enter.
    Make sure javascript: is included at the beginning, your browser might remove it while copy-pasting for security reasons:
@bradtraversy
bradtraversy / django_cheat_sheet.md
Last active March 23, 2025 20:59
Django command cheat sheet

Django 2.x Cheat Sheet

Creating a virtual environment

We need to create a virtual env for our app to run in: More Here Run this command in whatever folder you want to create your venv folder

python -m venv ./venv