This code reproduces QTBUG-49238.
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 | |
# (C) 2008 Canonical Ltd. | |
# Author: Martin Pitt <martin.pitt@ubuntu.com> | |
# License: GPL v2 or later | |
# modified by David D Lowe and Thomas Detoux | |
# Debian 7 support by pixline <pixline@gmail.com> | |
# It NEEDS /bin/bash, dash won't work (sed issues). | |
# | |
# Setup user and temporary home directory for guest session. |
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
#include "grabberdialog.h" | |
#include <QDebug> | |
#include <QGuiApplication> | |
#include <QLabel> | |
#include <QPixmap> | |
#include <QPushButton> | |
#include <QScreen> | |
#include <QVBoxLayout> | |
#include <QWindow> |
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 | |
# Sendmail replacement inspired by CheckAttach script for mutt. | |
# http://wiki.mutt.org/?ConfigTricks/CheckAttach for the original script. | |
# To use, simply add the following line to your .muttrc: | |
# set sendmail="/path/to/this/script -oi -oem" | |
# Note that -oi -oem are the default parameters given by mutt to sendmail. You | |
# could also use e.g. -t -i or... whatever floats your boat :) | |
# Then restart mutt. |
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 -f | |
SORT="sort -n" | |
filter="-type f" | |
DENIED_EXTS="txt m3u pls jpg jpeg gif nfo srt sub torrent zip rar cbz cbr" | |
if [[ "$1" =~ ^- && "$1" != "--help" ]] ;then | |
if [[ "$1" = "--cat" ]] ; then | |
SORT="cat" |
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
use strict; | |
use vars qw($VERSION %IRSSI); | |
$VERSION = '0.1'; | |
%IRSSI = ( | |
authors => 'Morten M. Neergaard', | |
contact => 'user xim some major IRC networks? =)', | |
name => 'annoy.pl', | |
description => '/annoy <msg> # sends <msg> to all in current channel (except me)', | |
license => 'Who cares', |
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/env python | |
# encoding: utf-8 | |
# Written by Morten Minde Neergaard – m@8d.no | |
# Based on idea from http://therning.org/magnus/archives/251 | |
""" | |
Open a file in a manner similar to gnome-open. | |
Fall back to using xdg-open. | |
Return code: The sum of all return codes given by the called programs. |
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
diff --git a/meta/classes/terminal.bbclass b/meta/classes/terminal.bbclass | |
index 3cfc84b..906fa58 100644 | |
--- a/meta/classes/terminal.bbclass | |
+++ b/meta/classes/terminal.bbclass | |
@@ -4,7 +4,7 @@ OE_TERMINAL[choices] = 'auto none \ | |
${@" ".join(o.name \ | |
for o in oe.terminal.prioritized())}' | |
-OE_TERMINAL_EXPORTS = 'XAUTHORITY SHELL DBUS_SESSION_BUS_ADDRESS DISPLAY EXTRA_OEMAKE SCREENDIR' | |
+OE_TERMINAL_EXPORTS += 'XAUTHORITY SHELL DBUS_SESSION_BUS_ADDRESS DISPLAY EXTRA_OEMAKE SCREENDIR' |
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/env python | |
import re | |
statement_matcher = re.compile(r'^s(.)(?:(?!\1).)*\1(?:(?!\1).)*\1$') | |
def get_interesting_triplets(dictionary_file, statement_file): | |
with open(dictionary_file) as fh: | |
words = [word.strip() for word in fh.readlines()] |
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
# vim file:34 otherfile:1337 -> Open files at respective lines. And in tabs! | |
vim() { | |
declare -a args | |
let fcount=0 | |
hit_dashdash= | |
for arg in "$@" ;do | |
if [[ "$arg" =~ ^- && ! "$hit_dashdash" ]] ;then | |
args+=("$arg") | |
[[ "$arg" = "--" ]] && hit_dashdash=1 | |
continue |
OlderNewer