This file contains hidden or 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 | |
| //usr/bin/env stty -echo; sudo staprun -T 30 `stap -p4 "$0"` "$@"; stty echo; exit | |
| // 2048.stp - written by NeoCat | |
| // Inspired by https://github.com/gabrielecirulli/2048/ | |
| // Licensed under MIT license or GPLv2 | |
| // Join the numbers and get to the 2048 tile! | |
| // HOW TO PLAY: Use your arrow keys to move the tiles. When two tiles with the same number touch, they merge into one! |
This file contains hidden or 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
| /* | |
| * Avoid creation of zombie process by child processes. | |
| * build: gcc -O2 ignchld.c -o ignchld | |
| * usage: ignchld bad-command-that-creates-zombie-processes [args ...] | |
| */ | |
| #include <signal.h> | |
| #include <string.h> | |
| #include <unistd.h> |
This file contains hidden or 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 | |
| use strict; | |
| use warnings; | |
| use SOAP::Lite; | |
| my $user = '******'; | |
| my $pass = '******'; | |
| my $client = SOAP::Lite->new(proxy => 'http://ideone.com/api/1/service'); |
This file contains hidden or 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 x /* ++[>[-]+>>++++++++++[>++++++[>++++++<-]>++<<<<[[-]>+>>>>,----------<<<<<]>[<+>-]>>>>[>+>+<<-]<[>>-<<-]>>>>+<[[-]>-<]>[[-]<<[+]<<<<<<[-]>>[-]+<<>>>>>>>>]>>>>>>>>>>[>+<-]<[>+<-]<[>+<-]<[>+<-]<[>+<-]<[>+<-]<[>+<-]<[>+<-]<[>+<-]<<<<[>>>>+<<<<-]<<<<-]<<<[>>+>+<<<-]>>[<<+>>-]>-[[-]>>>>>>>+++++++++[>>>>>>>>>>>>>>>>>>>>[>+<-]<[>+<-]<[>+<-]<[>+<-]<[>+<-]<[>+<-]<[>+<-]<[>+<-]<[>+<-]<[>+<-]<[>+<-]<[>+<-]<[>+<-]<[>+<-]<[>+<-]<[>+<-]<[>+<-]<[>+<-]<[>+<-]<<-]<<<<<<<]<<<-]>>>>>>>>>>>>>>>>>>>>[>>>>>>>>>+<<<<<<<<<-]<[>>>>>>>>>+<<<<<<<<<-]<[>>>>>>>>>+<<<<<<<<<-]<[>>>>>>>>>+<<<<<<<<<-]<[>>>>>>>>>+<<<<<<<<<-]<[>>>>>>>>>+<<<<<<<<<-]<[>>>>>>>>>+<<<<<<<<<-]<[>>>>>>>>>+<<<<<<<<<-]<[>>>>>>>>>+<<<<<<<<<-]<++++++++[>>>>>>>>>>[<<<<<<<<+<+>>>>>>>>>-]<<<<<<<<[>>>>>>>>+<<<<<<<<-]+++++++++[<[[<<+>>-]<<->>]<<[>>+<<-]>>>-]<[[-]>>>>>>>>>---------->+<<<<<<<<<<][<+>-]>[<+>-]>[<+>-]>[<+>-]>[<+>-]>[<+>-]>[<+>-]>[<+>-]>[<+>-]>[<+>-]>[<+>-]>[<+>-]>[<+>-]>[<+>-]>[<+>-]>[<+>-]>[<+>-]>[<+>-]><<<<<<<<<<<<<<<<<<<-]>>>>>>>>>>>>+++++++++[<<[[- |
This file contains hidden or 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/ruby | |
| require 'net/imap' | |
| require 'nokogiri' | |
| require 'twitter' | |
| require 'cgi' | |
| require 'open-uri' | |
| mail_user = '***@gmail.com' | |
| mail_password = '***' | |
| mail_label = 'Ingress' |
This file contains hidden or 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
| /* twicliの設定→ユーザスタイルシートに下記をペーストして保存 */ | |
| /* サムネールをマウスオーバーで拡大しない */ | |
| .thumbnail-image:hover { max-width: 32px; width: 32px\9; } | |
| /* tweetをクリックで選択した時にサムネールを拡大 */ | |
| div.selected img.thumbnail-image { width: auto; max-width: 300px; } |
This file contains hidden or 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/sh | |
| IB_ADDR=172.24.100.1 | |
| TARGET_IQN=iqn.2015-05.com.example:test | |
| if [ $EUID -ne 0 ]; then | |
| sudo "$0" "$@" | |
| exit $? | |
| fi |
This file contains hidden or 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 <stdlib.h> | |
| #include <string.h> | |
| #include <oauth.h> | |
| int main(int argc, char **argv) | |
| { | |
| char *consumer_key = "*********************"; | |
| char *consumer_secret = "******************************************"; | |
| char *access_token = "********-*****************************************"; |
This file contains hidden or 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 <iostream> | |
| using namespace std; | |
| namespace vtstring { | |
| // 文字列を表す可変引数テンプレート | |
| template <char... a> struct vtstring; | |
| template <char a, char... b> | |
| struct vtstring<a, b...> | |
| { |
This file contains hidden or 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
| require 'oauth' | |
| request = OAuth::RequestProxy.proxy( | |
| "method" => 'GET', | |
| "uri" => 'https://betastream.twitter.com/2b/user.json', | |
| "parameters" => { | |
| "oauth_consumer_key" => "******************", | |
| "oauth_token" => "***-******************", | |
| "oauth_nonce" => OAuth::Helper.generate_key, | |
| "oauth_timestamp" => OAuth::Helper.generate_timestamp, |
OlderNewer