This file contains 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
{ | |
"dependencies": { | |
"textract": { | |
"version": "2.2.0", | |
"dependencies": { | |
"marked": { | |
"version": "0.3.9" | |
} | |
} | |
} |
This file contains 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
namespace CascadeDelete.Models | |
{ | |
public class DataContext: DbContext | |
{ | |
public virtual DbSet<Resident> Residents { get; set; } | |
public virtual DbSet<City> Cities { get; set; } | |
public virtual DbSet<ResidentCityOwn> ResidentCityOwn { get; set; } | |
protected override void OnModelCreating(DbModelBuilder modelBuilder) | |
{ |
This file contains 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
namespace CascadeDelete.Migrations | |
{ | |
using System; | |
using System.Data.Entity.Migrations; | |
public partial class Test : DbMigration | |
{ | |
public override void Up() | |
{ | |
CreateTable( |
This file contains 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 | |
# usage: ./deploy.sh <github_repo> <app_name> | |
# perform local testing | |
repo=$1 | |
git clone $repo _repo | |
cd _repo | |
npm install | |
npm test |
This file contains 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
# Here's an example that shows you can load ntuser.dat manually | |
# I load the admin ntuser.dat to a new registry hive | |
# called 'admin_profile' under HKU root hive | |
# | |
# syntax: reg load <root key>\<subkey> <path> | |
# path: C:\Users\<username>\NTUSER.DAT | |
# | |
reg load hku\admin_profile c:\users\administrator\ntuser.dat | |
reg unload admin_profile |
This file contains 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
$curUserNameStr = $ENV:Username; | |
$curUser = New-Object System.Security.Principal.NTAccount($curUserNameStr); | |
$curUserSID = $curUser.Translate([System.Security.Principal.SecurityIdentifier]); | |
$curUserSIDStr = $curUserSID.Value; |
This file contains 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
## | |
# Host Database | |
# | |
# localhost is used to configure the loopback interface | |
# when the system is booting. Do not change this entry. | |
## | |
127.0.0.1 localhost <local_computer_name> | |
255.255.255.255 broadcasthost |
This file contains 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
# Add it to the end of your .bashrc as start-up command | |
source ~/.bash_profile |
This file contains 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
SET PAGESIZE 100; | |
SET LINESIZE 100; | |
define_editor='vi'; | |
SET SERVEROUTPUT ON; | |
SET VERIFY OFF; |
This file contains 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
export ORACLE_HOME="/Applications/oracle/product/instantclient_64" | |
export PATH=$ORACLE_HOME/bin:$PATH | |
export DYLD_LIBRARY_PATH=$ORACLE_HOME/lib | |
# Set ORACLE_PATH to the location where you store your custom "login.sql" | |
export ORACLE_PATH="/Applications/oracle/product/instantclient_64/sqlplus/admin" | |
alias sqlplus='rlwrap sqlplus' |