Skip to content

Instantly share code, notes, and snippets.

<!DOCTYPE>
<html>
<head>
<title>Selenium Test Example Page</title>
</head>
<body style="margin: 20px" onload="checkParams()">
<h2>Selenium Test Example Page</h2>
<p id="intro">
@0xF1o
0xF1o / typo3-6.2-quickinstall.sh
Last active August 29, 2022 14:31
ment to be run from a bash shell: source <(curl -sSLk http://git.io/vLlAM)
# quick install:
# source <(curl -sSLk https://gist.githubusercontent.com/piccaso/2ff65b87ef907f286b9d/raw/typo3-6.2-quickinstall.sh)
curl -sSLk -o typo3_src.tgz 'https://get.typo3.org/6.2'
tar -zxf typo3_src.tgz
rm typo3_src.tgz
ln -s typo3_src-6.2.* typo3_src
ln -s typo3_src/index.php index.php
ln -s typo3_src/typo3 typo3
@0xF1o
0xF1o / 0_reuse_code.js
Last active August 29, 2015 14:20
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
# curl https://gist.githubusercontent.com/piccaso/431d30e5c979e3d2ba1f/raw | bash
# related: http://bit.ly/1AJNMRA http://git.io/vk9it
# clone somewhere...
cd `mktemp -d` && git clone https://git.typo3.org/Packages/TYPO3.CMS.git && cd TYPO3.CMS/
{
# setup/reset
WORKINGBRANCH="TYPO3_7-0"
jQuery(document).ready(function($){
'use strict';
function nurseLinks(){
$('a').each(function(i,e){
function trySel(sel){
if($(sel).length > 0){ $(e).attr('href', sel); return true; }
return false;
}
var h = e.hash.toString().match(/^#.+/);
@0xF1o
0xF1o / img2linkedvmdk.bat
Created July 29, 2015 17:34
create a linked vmdk for a raw (dd style) disk image - acts like a real drive
VBoxManage.exe internalcommands createrawvmdk -filename "%1-linked.vmdk" -rawdisk "%1"
@pause
@0xF1o
0xF1o / lobmosq.c
Created September 6, 2016 10:15
libmosquitto example
/*
needs libmosquitto-dev
$ gcc -o libmosq libmosq.c -lmosquitto
*/
#include <stdio.h>
#include <mosquitto.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
using System;
using System.Linq;
using FluentAssertions;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace UriAppend
{
public static class UriExtensions
{
public static Uri Append(this Uri baseUri, string relativeUrl) => new Uri(baseUri, relativeUrl);
Tracing enabled
--- Invoked dotnet [version: 2.0.6, commit hash: 74b1c703813c8910df5b96f304b0f2b78cdf194d] main = {
dotnet
WebApiSample.dll
}
Reading fx resolver directory=[/usr/share/dotnet/host/fxr]
Considering fxr version=[..]...
Considering fxr version=[2.0.6]...
Considering fxr version=[.]...
Detected latest fxr version=[/usr/share/dotnet/host/fxr/2.0.6]...