Skip to content

Instantly share code, notes, and snippets.

@saillinux
saillinux / placeFileInAllGithubRepos.php
Created June 20, 2019 15:36 — forked from bchecketts/placeFileInAllGithubRepos.php
Quick script to place a single file in every repository in your Github organization
<?php
## Generate a Github user token at https://github.com/settings/tokens
$githubToken = 'EnterYourGithubTokenHere';
## Your organization name (from https://github.com/yourOrganizationName)
$organization = 'yourOrganizationName';
## Enter the name of the remote file you want to place
$remoteFile = "pull_request_template.md";
#!/usr/bin/env perl
use 5.016;
use common::sense;
use utf8::all;
# Use fast binary libraries
use EV;
use Web::Scraper::LibXML;
use YADA 0.039;
@saillinux
saillinux / tree.pl
Created May 10, 2012 07:28 — forked from gypark/tree.pl
substr과 재귀호출 vs 정규표현식 벤치마크
#!/usr/bin/env perl
use strict;
use warnings;
use Benchmark qw/:all/;
# 입력 (A,(B,(D,(d,_,_),_),(E,_,_)),(C,(F,_,(f,_,_)),(G,(g,_,_),_)))
# 위 입력을 받아 A를 root로 하는 트리 구조를 구성
#
# G
# g
@saillinux
saillinux / DbcpActiveConnectionMonitor.java
Created March 9, 2012 04:28 — forked from benelog/ConnectionMonitor.java
Btrace scripts to monitor DBCP
import static com.sun.btrace.BTraceUtils.*;
import java.lang.reflect.Field;
import java.util.Map;
import com.sun.btrace.BTraceUtils.Sys;
import com.sun.btrace.annotations.BTrace;
import com.sun.btrace.annotations.OnEvent;
import com.sun.btrace.annotations.OnMethod;
import com.sun.btrace.annotations.Self;