Skip to content

Instantly share code, notes, and snippets.

View magmastonealex's full-sized avatar

Alex Roth magmastonealex

View GitHub Profile
-- Logs begin at Sun 2014-03-09 22:16:39 UTC, end at Mon 2014-03-10 17:09:51 UTC. --
Mar 10 16:57:44 localhost systemd-journal[41]: Runtime journal is using 8.0M (max allowed 162.8M, trying to leave 244.2M free of 1.5G available → current limit 162.8M).
Mar 10 16:57:44 localhost systemd-journal[41]: Runtime journal is using 8.0M (max allowed 162.8M, trying to leave 244.2M free of 1.5G available → current limit 162.8M).
Mar 10 16:57:44 localhost kernel: Initializing cgroup subsys cpuset
Mar 10 16:57:44 localhost kernel: Initializing cgroup subsys cpu
Mar 10 16:57:44 localhost kernel: Initializing cgroup subsys cpuacct
Mar 10 16:57:44 localhost kernel: Linux version 3.13.5+ (buildbot@ip-10-245-113-56) (gcc version 4.6.3 (Gentoo Hardened 4.6.3 p1.13, pie-0.5.2) ) #2 SMP Fri Mar 7 19:48:52 UTC 2014
Mar 10 16:57:44 localhost kernel: Command line: root=gptprio: init=/usr/lib/systemd/systemd console=ttyS0,115200n8 console=tty0 ro noswap cros_legacy root=gptprio: root=PARTUUID=7130c94a-213a-4e5a-8e26-6cce9662f132
Ma
<?php
if(isset($_POST["username"])){
$un=$_POST["username"];
$pw=$_POST["password"];
if(verify($un,$pw)){
echo "Correct username/password!";
}else{
echo "Incorrect username/password!";
}
}
@magmastonealex
magmastonealex / ffproc.py
Created September 11, 2015 03:13
Updated ffproc for non-fdk versions of ffmpeg
import shutil
import json
import os
import subprocess
import sys
#comment these two lines if you don't want to queue.
from rq import Connection, Queue
from redis import Redis
preset="slow"
@magmastonealex
magmastonealex / gist:9b2169199eca6918321e
Created September 12, 2015 01:30
Windows Vista Source
/**
* (c) 2007 Misrocoft Corp.
* All rights reserved
*/
#include
class WindowsVista extends WindowsXP implements Nothing
{
<?php
$n = 0;
if(isset($_GET["n"])){
$n = $_GET["n"];
}
$r = 0;
$str = "";
if($n != 0){
for($i=1;$i<=$n;$i++){
<!-- saved from url=(0025)http://magmastone.net/CS/ -->
<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Computer Science - Alex Roth</title>
<link href="./Computer Science - Alex Roth_files/css" rel="stylesheet" type="text/css">
<link href="./Computer Science - Alex Roth_files/index.css" rel="stylesheet" type="text/css">
<script src="./Computer Science - Alex Roth_files/jquery.min.js"></script>
<script src="./Computer Science - Alex Roth_files/index.js"></script>
<style type="text/css"></style></head>
<body style="background-color: rgb(204, 204, 204);">
<?php
for($i=0;$i<9;$i++){
$x=$i+1;
echo "$x ";
}
?>
<?php
$n = 0;
if(isset($_GET["n"])){
$n = $_GET["n"];
}
$r = 0;
if($n != 0){
for($i=1;$i<=$n;$i++){
$r = $r + pow($i, 2);
<!-- saved from url=(0025)http://magmastone.net/CS/ -->
<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Computer Science - Alex Roth</title>
<link href="./Computer Science - Alex Roth_files/css" rel="stylesheet" type="text/css">
<link href="./Computer Science - Alex Roth_files/index.css" rel="stylesheet" type="text/css">
<script src="./Computer Science - Alex Roth_files/jquery.min.js"></script>
<script src="./Computer Science - Alex Roth_files/index.js"></script>
<style type="text/css"></style></head>
<body style="background-color: rgb(204, 204, 204);">
This is a test of gistCMD!