Skip to content

Instantly share code, notes, and snippets.

View SneakyWhoami's full-sized avatar
🛸
the cool stuff is in phabricator

Chris SneakyWhoami

🛸
the cool stuff is in phabricator
  • Somewhere near Pacific Ocean
View GitHub Profile
@princebot
princebot / install_wormhole.bat
Created July 29, 2017 17:44
Install Python magic-wormhole on Windows.
::
:: This script installs wormhole (https://github.com/warner/magic-wormhole) and
:: its prerequisites. Run this as an administrator.
::
:: Install chocolatey.
@"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin"
:: Install Python 3.
choco install -y python
@nealrs
nealrs / page.html
Created October 28, 2016 18:23
twitter player card sample
<!DOCTYPE html>
<html>
<head>
<meta content='text/html; charset=UTF-8' http-equiv='Content-Type' />
<meta name="twitter:card" content="player" />
<meta name="twitter:site" content="@wakeyio" />
<meta name="twitter:title" content="Hemopure ~ Wakey Wakey #26" />
<meta name="twitter:description" content="Hemopure is an artificial blood (HBOC) that’s saving lives in South Africa. It’s shelf stable and 100% compatible with all blood types." />
<meta name="twitter:image" content="https://wakey.io/public/img/thumbs/26.png" />
<meta name="twitter:player" content="https://wakey.io/embed/26" />
@nealrs
nealrs / responsive-screens.js
Created January 29, 2016 03:44 — forked from ryanmark/responsive-screens.js
Easy responsive screenshots with Phantom.js
/*
* Take a set of full height screenshots for a range of screensizes.
* phantomjs responsive-screens.js http://www.cnn.com/ png
*
* This will create a directory tree in your current directory which
* mirrors the URL. All files will be named with the current time.
* You can run this on a cron to build an archive of screenshots.
**/
var page = new WebPage(),
@prurigro
prurigro / archroot.sh
Last active June 17, 2021 22:31
An overlayfs-based chroot management script for deployable arch build environments
#!/usr/bin/env bash
#
# archroot
# An overlayfs chroot management script for deployable arch build environments
#
# Version 1.18
#
# Written by Kevin MacMartin
# Released under the MIT license
// An example of how to bind a C++ class in four scripting languages: lua, squirrel, mruby, and angelscript.
// Written by James S Urquhart ( http://www.cuppadev.co.uk/ ). Feel free to experiment!
#include <stdarg.h>
#include <stdio.h>
#include <assert.h>
// Lua includes
extern "C"
{
@skyhisi
skyhisi / qt-xinclude-processor.cpp
Created September 29, 2013 20:01
Basic XInclude processor written using Qt QXmlStreamReader/QXmlStreamWriter
#include <QtCore>
int main(int argc, char** argv)
{
QCoreApplication app(argc, argv);
if (argc < 2)
{
qDebug() << "Usage:" << argv[0] << "INFILE OUTFILE";
return 1;
#pragma once
#ifndef __ASBIND_H__
#define __ASBIND_H__
//=========================================================
/*
asbind.h - Copyright Christian Holmberg 2011
This program is free software: you can redistribute it and/or modify