Skip to content

Instantly share code, notes, and snippets.

View MaXFalstein's full-sized avatar
🏠
Working from home

MaX Falstein MaXFalstein

🏠
Working from home
View GitHub Profile
@oodavid
oodavid / README.md
Last active June 12, 2024 00:28 — forked from aronwoost/README.md
Deploy your site with git

Deploy your site with git

This gist assumes:

  • you have a local git repo
  • with an online remote repository (github / bitbucket etc)
  • and a cloud server (Rackspace cloud / Amazon EC2 etc)
    • your (PHP) scripts are served from /var/www/html/
    • your webpages are executed by apache
  • apache's home directory is /var/www/
@stottsan
stottsan / instagram.html
Created November 30, 2012 17:44
Client-side (jQuery/HTML) and server-side (Node.js) code for my Heroku-based Instagram feed reader.
<link rel="stylesheet" href="/css/instagram.css" type="text/css" />
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.18/jquery-ui.min.js"></script>
<div class="instagram"></div>
<div class="load-more btn">Gimme more photos...</div>
<div class="error">Oops, there was an error getting the photos...</div>
<script src="/js/instagram.js"></script>

Exploiting Lua 5.1 on 32-bit Windows

The following Lua program generates a Lua bytecode program called ignore-unsigned-sga.fnt, which in turn loads a DLL from within an extremely locked down Lua 5.1 sandbox in a program called RelicCOH2.exe. The remainder of this document attempts to explain how this program works by a whirlwind tour of relevent bits of the Lua 5.1 virtual machine.

if string.dump(function()end):sub(1, 12) ~= "\27Lua\81\0\1\4\4\4\8\0" then
  error("This generator requires a 32-bit version of Lua 5.1")
end

local function outer()
  local magic -- In bytecode, the stack slot corresponding to this local is changed
@thedillonb
thedillonb / frontendDevlopmentBookmarks.md
Created November 28, 2013 04:31 — forked from dypsilon/frontendDevlopmentBookmarks.md
A badass list of frontend development resources I collected over time.
@conatus
conatus / ello.md
Last active April 13, 2023 19:32
Ello API

Ello API

This is a basic exploration of the Ello API. Completely unofficial, your mileage my vary, don't smash their servers as they are likely very busy.

Methods return HTML for their representation where appropriate which is a nice little pattern. Everything returns application/json.

Like this:

{
 "id": ,

Keybase proof

I hereby claim:

  • I am jasondrowley on github.
  • I am jdr (https://keybase.io/jdr) on keybase.
  • I have a public key whose fingerprint is 3C40 D634 61D4 50C6 F557 F4B0 A696 D7DC FAB0 76F7

To claim this, I am signing this object:

A lot of these are outright stolen from Edward O'Campo-Gooding's list of questions. I really like his list.

I'm having some trouble paring this down to a manageable list of questions -- I realistically want to know all of these things before starting to work at a company, but it's a lot to ask all at once. My current game plan is to pick 6 before an interview and ask those.

I'd love comments and suggestions about any of these.

I've found questions like "do you have smart people? Can I learn a lot at your company?" to be basically totally useless -- everybody will say "yeah, definitely!" and it's hard to learn anything from them. So I'm trying to make all of these questions pretty concrete -- if a team doesn't have an issue tracker, they don't have an issue tracker.

I'm also mostly not asking about principles, but the way things are -- not "do you think code review is important?", but "Does all code get reviewed?".

@thedillonb
thedillonb / index.js
Last active April 23, 2017 00:59
NodeJS Graceful shutdown of a HTTP server
'use strict';
const http = require('http');
function addGracefulShutdown(server) {
const oldClose = server.close;
const connections = {};
let shouldDestroy = false;
let connectionId = 0;
function destroy(socket) {
@mbostock
mbostock / .block
Last active October 30, 2022 16:09
Polar Clock II
license: gpl-3.0
height: 960
anonymous
anonymous / euroflag.svg
Created June 24, 2016 11:14
New European Flag
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.