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/perl | |
# Output monophonic Mozart - Rondo Alla Turca to stdout | |
# Implemented by Vitaly "_Vi" Shukela | |
# Usage: ./rondo.pl | aplay -f cd | |
# Used mozk331c.mid as reference | |
our $vq = 0.2; |
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
71 3 | |
69 3 | |
68 3 | |
69 3 | |
72 12 | |
74 3 | |
72 3 | |
71 3 | |
72 3 | |
76 12 |
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 | |
# Reproduce https://bugzilla.kernel.org/show_bug.cgi?id=58691 | |
# Depends: sshd listening :22, ssh, unshare, setkey(ipsec-tools), iproute2, ip6_tunnel.ko, veth, radvd | |
modprobe ip6_tunnel | |
export MYPID=$$ | |
rm /tmp/unshare_pid |
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 <stdio.h> | |
#include <unistd.h> | |
#include <stdlib.h> | |
#include <sys/types.h> | |
#include <string.h> | |
#ifndef WIN32 | |
#include <netdb.h> | |
#include <sys/socket.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
/* automatically generated by rust-bindgen */ | |
// sources: https://raw.github.com/vi/forsnapshotfs/master/simplecow.h https://raw.github.com/vi/forsnapshotfs/master/simplecow.c | |
use std::libc::*; | |
//pub type backing_read_t = *u8; | |
pub type Struct_simplecow = c_void; | |
#[link_args = "-lsimplecow"] |
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
$ curl -v -H 'Authorization: token <skipped>' -H "Accept: application/vnd.github.manifold-preview" -H "Content-Type: application/zip" --data-binary @virtual_touchscreen.jar "https://uploads.github.com/repos/vi/virtual_touchscreen/releases/54927/assets?name=virtual_touchscreen.jar" | |
* About to connect() to uploads.github.com port 443 (#0) | |
* Trying 192.30.252.97... | |
* connected | |
* Connected to uploads.github.com (192.30.252.97) port 443 (#0) | |
* successfully set certificate verify locations: | |
* CAfile: none | |
CApath: /etc/ssl/certs | |
* SSLv3, TLS handshake, Client hello (1): | |
* SSLv3, TLS handshake, Server hello (2): |
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
trait Drawable { fn draw(&self); } | |
trait VeryDrawable : Drawable + Clone { fn draw_twice(&self) { self.draw(); self.draw(); } } | |
#[deriving(Eq, Clone)] | |
enum Circle { Circle } | |
#[deriving(Eq, Clone)] | |
struct Rectangle; | |
impl Drawable for Circle { fn draw(&self) { println("C"); } } | |
impl Drawable for Rectangle { fn draw(&self) { println("R"); } } |
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
# supply two command line arguments | |
import midi.sequencer.sequencer_alsa as S | |
import midi.sequencer | |
import sys | |
import select | |
sr = midi.sequencer.SequencerRead() | |
sr.subscribe_port(sys.argv[1],sys.argv[2]) | |
p = select.poll() |
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 | |
if [ -z "$1" ]; then | |
echo "Usage: disque-call queue-name < input > output" >&2 | |
exit 1 | |
fi | |
QN="$1"; | |
set -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
// This code demonstrates that with OS's external help | |
// one can crash even Safe Rust's code | |
// Implemented by Vitaly "_Vi" Shukela | |
use std::process::Command; | |
fn getpid() -> i32 { | |
let so = Command::new("sh") | |
.arg("-c") |