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
#!/usr/bin/python | |
# -*- coding: utf-8 -*- | |
# Copyright (c) 2012 Martin Ueding <[email protected]> | |
""" | |
Based on a Question from "Physics - Stack Exchange". | |
http://physics.stackexchange.com/questions/20083/riddle-about-speed | |
""" |
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 | |
# This script is in the public domain. | |
# Based on an idea by Fabien Udriot | |
# see http://pastie.org/4225971 | |
# Enter your username for typo3.org here. If no username is entered here, you | |
# will be promted for it during execution. | |
username="" |
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
class Colorcodes(object): | |
""" | |
Provides ANSI terminal color codes which are gathered via the ``tput`` | |
utility. That way, they are portable. If there occurs any error with | |
``tput``, all codes are initialized as an empty string. | |
The provides fields are listed below. | |
Control: |
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
#!/usr/bin/python3 | |
# -*- coding: utf-8 -*- | |
# Copyright © 2013-2014 Martin Ueding <[email protected]> | |
# Licensed under The GNU Public License Version 2 (or later) | |
import argparse | |
import re | |
import shutil |
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
// Copyright © 2014 Martin Ueding <[email protected]> | |
#include <iostream> | |
#include <regex> | |
int main() { | |
std::string haystack {"This\nhas\nnewlines."}; | |
std::regex regex {"\n"}; | |
std::string replacement {"\n# "}; | |
std::string result {std::regex_replace(haystack, regex, replacement)}; |
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
#!/usr/bin/python3 | |
# -*- coding: utf-8 -*- | |
# Copyright © 2015 Martin Ueding <[email protected]> | |
# Licensed under The MIT License | |
import argparse | |
def main(): | |
options = _parse_args() |
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
mu@fedora-22-beta:~ SSH 17.8s su 2015-05-25 17:06:46 | |
Passwort: | |
[root@fedora-22-beta mu]# dnf install rubygem-rails | |
Last metadata expiration check performed 0:00:00 ago on Mon May 25 17:07:37 2015. | |
Abhängigkeiten sind aufgelöst. | |
=============================================================================================================================================================================================================================================== | |
Paket Arch Version Paketquelle Größe | |
================================================================================================================================= |
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
// Copyright © 2015 Martin Ueding <[email protected]> | |
// Try to leak as many file descriptors until the program crashes. | |
#include <stdio.h> | |
#include <stdlib.h> | |
int main(int argc, char **argv) { | |
char filename[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
#!/usr/bin/python3 | |
# -*- coding: utf-8 -*- | |
# Copyright © 2015 Martin Ueding <[email protected]> | |
# Licensed under The MIT License | |
''' | |
Installs documentation packages for all installed TeXLive packages on Fedora | |
22. |
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 | |
# Copyright © 2016 Martin Ueding <[email protected]> | |
set -e | |
set -u | |
set -x | |
width=2480 | |
half_height=$(( 3508 / 2 )) |
OlderNewer