Skip to content

Instantly share code, notes, and snippets.

View wwahammy's full-sized avatar

Eric Schultz wwahammy

View GitHub Profile
((SELECT * FROM payments LEFT OUTER JOIN supporters ON supporters.id = payments.supporter_id)
EXCEPT ALL (SELECT * FROM payments INNER JOIN supporters ON supporters.id = payments.supporter_id))
UNION ALL
((SELECT * FROM payments INNER JOIN supporters ON supporters.id = payments.supporter_id)
EXCEPT ALL (SELECT * FROM payments LEFT OUTER JOIN supporters ON supporters.id = payments.supporter_id))
function a() : string |number
{
return ""
}
function b(){
let foo = a()
if( typeof foo === "number")
{
console.log(foo.toFixed())
So let's consider a small business that runs a website that happens to run on GPL'd software. They don't know anything about the GPL but they paid a local web shop to set it up on their shared web host. They don't have to know that the GPL requires them to provide source code if they convey a copy because they don't convey
Let's say the same business runs a wwebsite that runs on AGPL software. They don't know anything about the AGPL but they paid a local web shop to set it up on their shared web host. What happens when someone requests a copy of the source? The answer will likely be "what's source code?"
The local business doesn't want to pay someone to get them the source. And we can't even tell them "give us the contents of directory holding the web site" because that might contain private configuration information which isn't covered by the AGPL.
This is why I don't normally recommend AGPL software to anyone unless they already understand licensing and source code.
@wwahammy
wwahammy / feeds.conf
Created January 14, 2015 22:31
Initial feeds.conf
src-git packages https://github.com/openwrt/packages.git
src-git luci https://github.com/openwrt/luci.git
src-git routing https://github.com/openwrt-routing/packages.git
src-git telephony https://github.com/openwrt/telephony.git
src-git management https://github.com/openwrt-management/packages.git
#src-git oldpackages http://git.openwrt.org/packages.git
#src-svn xwrt http://x-wrt.googlecode.com/svn/trunk/package
#src-svn phone svn://svn.openwrt.org/openwrt/feeds/phone
#src-svn efl svn://svn.openwrt.org/openwrt/feeds/efl
#src-svn xorg svn://svn.openwrt.org/openwrt/feeds/xorg
@wwahammy
wwahammy / 99_set-network-ipaddr
Last active August 29, 2015 14:13
Setting IP address as part of our first boot script
#!/bin/sh
uci -q set network.lan.ipaddr=10.0.2.15
uci -q commit network
exit 0
@wwahammy
wwahammy / index.html
Created January 13, 2015 21:47
Index.html for the learning_package web page
<html>
<head>
<title>Our learning webpage</title>
</head>
<body><h1>Hey look, you created and installed the package!</h1></body>
</html>
@wwahammy
wwahammy / Makefile
Last active August 29, 2015 14:13
Makefile for learning_package
include $(TOPDIR)/rules.mk
PKG_NAME:=learning_webpage
PKG_VERSION:=1
PKG_RELEASE=$(PKG_SOURCE_VERSION)
PKG_MAINTAINER:=Your name <[email protected]>
PKG_LICENSE:=ISC
include $(INCLUDE_DIR)/package.mk
@wwahammy
wwahammy / buildFilters.js
Last active August 29, 2015 14:06
How do I get buildFilters always return the function from createMatchFunction
/**
* I want this to always return the promise that resoslves to the result of createMatchFunction(ignore)
*
* this is in a larger file but it's not relevant
*/
function buildFilters(dir, options) {
var jpmignorePath = path.join(dir, ".jpmignore");
//fs is from require('fs-promises')
@wwahammy
wwahammy / HALP.js
Last active August 29, 2015 14:03
Help me Kyle, you're my only hope!
smtp = require('smtp-protocol')
Q = require('q')
EventEmitter = require('events').EventEmitter
class LightSMTPServer extends EventEmitter
constructor: () ->
runServer: (userHandlers, options) ->
@wwahammy
wwahammy / ReallyDeleteVSExperimental.ps1
Created May 13, 2014 15:22
For when you want to REALLY clear your Visual Studio Experimental environment
Get-Item -Path "HKCU:\Software\Microsoft\VisualStudio\*Exp*" | Remove-Item -Recurse