This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Template: element-activepage.php | |
* | |
* Available data: $element_id, $type, $id, $name, $classes, $description, $required, $answers, $response, $extra_attr, $response_year, $response_month, $response_day, $years, $months, $days | |
*/ | |
?> | |
<div class="<?php echo esc_attr( implode( ' ', $classes ) ); ?>"> | |
<?php do_action( 'torro_element_start', $element_id ); ?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DOMAIN=$(ls ~/.config/letsencrypt/live/ | head -n 1) | |
uberspace-add-certificate -k ~/.config/letsencrypt/live/${DOMAIN}/privkey.pem -c ~/.config/letsencrypt/live/${DOMAIN}/cert.pem | |
cat >> ${HOME}/.config/letsencrypt/cli.ini <<__EOF__ | |
# To prevent being forced to agree manually to the terms | |
agree-dev-preview = True | |
agree-tos = True |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="loading-bar"></div> | |
<style> | |
.loading-bar { | |
display: none; | |
opacity: 0; | |
position: absolute; | |
top: 0; | |
width: 100%; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jQuery(document).ready(function(){ | |
/* | |
Needs refinement | |
* at the moment, even oneliners get height 10px and will be smaller | |
after being clicked | |
* there is no clue for users that clicking will expand/collapse code sections | |
*/ | |
jQuery('pre').css({height:'10em'}).toggle( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*global module:false*/ | |
module.exports = function(grunt) { | |
// Initialisiert Grunt mit den folgenden Projekteinstellungen | |
grunt.initConfig({ | |
//pkg: grunt.file.readJSON('package.json'), | |
less: { | |
dev: { | |
options: { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*global module:false*/ | |
module.exports = function(grunt) { | |
// Initialisiert Grunt mit den folgenden Projekteinstellungen | |
grunt.initConfig({ | |
less: { | |
development: { | |
options: { | |
paths: ["less"] | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8" /> | |
<!-- | |
Copyright 2012 Christian Jung | |
This program is free software: you can redistribute it and/or modify | |
it under the terms of the GNU General Public License as published by | |
the Free Software Foundation, either version 3 of the License, or |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(function){ | |
loader = setInterval( function(){ | |
jQuery('#bodyContent').load( window.location.href + '#bodyContent>*' ); | |
/* | |
* use '#bodyContent>*' selector for getting just the contents of #bodyContent | |
* but not the #bodyContent itself | |
* in addition: this will strip the script element as well, since we use a selector ;-) | |
*/ | |
}, 300000 ); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
ssh -fC2 -D 9000 -N user@host && google-chrome --proxy-server="socks5://localhost:9000" |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.