Skip to content

Instantly share code, notes, and snippets.

View stainful's full-sized avatar

Vladimir Luss stainful

  • Tbilisi, Georgia
View GitHub Profile
@bcherny
bcherny / using-typescript-and-angular-1.x-in-the-real-world.md
Last active October 9, 2022 12:55
Using Typescript + Angular 1.x in the Real World

Work in progress!

A little while ago I started using Typescript with the Angular 1.5 app I'm working on, to help ease the migration path to Angular 2. Here's how I did it. We'll go example by example through migrating real world code living in a large, mostly non-Typescript codebase.

Let's start with a few of the basic angular building blocks, then we'll go through some of the higher level patterns we derived.

Filters

Javascript

@jtyberg
jtyberg / vpn_fix.sh
Last active February 17, 2020 03:25 — forked from christian-blades-cb/vpn_fix.sh
fix network routing issues caused by Cisco AnyConnect with VirtualBox and boot2docker on Mac OS X
#!/usr/bin/env bash
# Fix network routing issues caused by Cisco AnyConnect VPN when using
# VirtualBox and boot2docker on Mac OS X.
#
# Environment:
# Mac OS X 10.9.5
# VirtualBox 4.3.20
# Cisco AnyConnect 3.1.04074
# boot2docker v1.4.1 (Git commit: 43241cb)
var AppConstants = require('../constants/AppConstants.js');
var AppDispatcher = require('../dispatchers/AppDispatcher.js');
var api = require('../utils/api');
var ActionTypes = AppConstants.ActionTypes;
module.exports = {
create_customer: function(data){
api.customer.create(data);
}
var gulp = require('gulp');
var browserify = require('browserify');
var notify = require('gulp-notify');
var source = require('vinyl-source-stream');
var watchify = require('watchify');
var plumber = require('gulp-plumber');
var less = require('gulp-less');
var csso = require('gulp-csso');
var watch = require('gulp-watch');
var envify = require('envify');
@jedi4ever
jedi4ever / dns tuning ssh login speedup vagrant
Created May 27, 2013 13:37
speeding up DNS/SSH connections in vagrant
- Tune /etc/ssh/sshd_config
UseDNS no # Disable DNS lookups
GSSAPIAuthentication no # Disable negotation of slow GSSAPI
don't forget to restart it, use a script provider to set it , or create it with veewee or snapshot it
- Tune Vagrantfile
vb.customize ["modifyvm", :id, "--natdnshostresolver1", "on"]