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 <vte/vte.h> | |
char *cmd = "(for i in $(seq 1 10); do echo $i; sleep 1; done) & exit"; | |
static void run(VteTerminal *terminal) | |
{ | |
char * const argv[] = { "/bin/bash", "-i", "-c", cmd, NULL }; | |
vte_terminal_spawn_async(terminal, | |
0, NULL, (char **)argv, NULL, 0, NULL, NULL, NULL, -1, NULL, NULL, NULL); | |
} |
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
#define _XOPEN_SOURCE 600 | |
#include <stdlib.h> | |
#include <fcntl.h> | |
#include <unistd.h> | |
#include <sys/select.h> | |
#include <sys/wait.h> | |
#include <sys/ioctl.h> | |
#include <stdio.h> | |
#include <string.h> |
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
# Maintainer: Jason Edson <jaysonedson _AT_ gmail.com> | |
# Contributor: Davi da Silva Böger <dsboger _AT_ gmail.com> | |
# Contributor: Manuel Hüsers <manuel.huesers _AT_ uni-ol.de> | |
# Contributor: Fernando Fernandez <fernando _AT_ softwareperonista.com.ar> | |
# Contributor: Jan de Groot <jgc _AT_ archlinux.org> | |
pkgname=vte3-notification | |
pkgver=0.70.3 | |
pkgrel=1 | |
pkgdesc='Virtual Terminal Emulator widget (GTK3) (plus Fedora patches)' |
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 | |
d=/tmp/git-test | |
git init -q -b master "$d" | |
cd "$d" || exit | |
for i in $(seq 1000); do | |
git commit -q -m commit --allow-empty | |
done |
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
On Tue, Nov 17, 2009 at 2:06 PM, Nanako Shiraishi <nanako3@lavabit.com> wrote: | |
> Quoting Felipe Contreras <felipe.contreras@gmail.com> | |
>> Right, your explanation is more clear: | |
> | |
> You have a funny way of saying "I'm sorry, I wasn't constructive, | |
> and my attitude repelled many participants from the discussion". | |
That's because that's not what I said. If my succinct counter-argument | |
to a side-topic repelled some people from the much more serious | |
discussion, that's fine for me, because it means I'm not making myself |
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 ruby | |
require 'notmuch' | |
$skip = <<EOF.split("\n") | |
xmqqsgg7u3js.fsf@gitster.c.googlers.com | |
CAPig+cRqvd=_n9huD_txEr6EXVrWZx0onReL5bh_mCKy3M3LOg@mail.gmail.com | |
xmqqy2g08o0r.fsf@gitster.c.googlers.com | |
20190930153741.GA6124@chatter.i7.local | |
53844AEF.1080502@alum.mit.edu |
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 ruby | |
ROLES_REGEX = /^([^ \t\n\[\]\(\):]+): ([^<>]+) <(\S+?)>$/ | |
$roles = Hash.new(0) | |
log_args = [ '--no-merges', '--format=%b%x00' ] | |
IO.popen(%w[git log] + log_args + ARGV) do |pipe| | |
pipe.each("\0\n", chomp: true) do |commit| | |
trailer = commit.scrub.split("\n\n").last |
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
# This is now a gem | |
# https://rubygems.org/gems/parseopt | |
class ParseOpt | |
class Option | |
attr_reader :short, :long, :help | |
def initialize(short, long, help, &block) | |
@block = block | |
@short = short |
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 ruby | |
# This script checks all your foreign packages against AUR to find newer versions | |
require 'net/http' | |
require 'json' | |
$packages = {} | |
$all = false |
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 ruby | |
$autogroups = Hash.new { |h,k| h[k] = [] } | |
Dir.glob('/proc/*').each do |e| | |
pid = File.basename(e).to_i | |
next if pid == 0 | |
begin | |
cmdline = File.read(e + '/cmdline').split("\0").join(" ") | |
next if cmdline.empty? |
NewerOlder