Skip to content

Instantly share code, notes, and snippets.

View cjac's full-sized avatar

C.J. Collier cjac

View GitHub Profile
PS C:\Users\Administrator> python -m pip freeze
pypiwin32==222
pywin32==222
scons==2.5.1
You are using pip version 9.0.1, however version 9.0.3 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.
PS C:\Users\Administrator> type .\test-pywin32.py
#try:
import msvcrt
import win32api
import win32con
mvcrt.get_osfhandle
win32api.SetHandleInformation
win32con.HANDLE_FLAG_INHERIT
#except ImportError(e):
# print \

Keybase proof

I hereby claim:

  • I am cjac on github.
  • I am cjac (https://keybase.io/cjac) on keybase.
  • I have a public key ASCjNO9c3DLr8SgJJI7cxKZJQNKZePP3sRJEo5rhI1hU0Qo

To claim this, I am signing this object:

#!/usr/bin/perl -w
use strict;
use Net::GitHub;
use Data::Dumper::Concise;
my $oauth_token = qx(gpg --decrypt ../default.gpg 2>/dev/null);
use Net::GitHub;
my $gh = Net::GitHub->new( version => 3,
import java.util.regex.Pattern;
import java.util.regex.Matcher;
import java.util.Scanner;
import java.io.File;
import java.io.FileNotFoundException;
public class FindText {
public static void main(String[] args) {
Pattern pattern =
Pattern.compile("^iotivity-(?!merge-\\d+\\.\\d+-rel)");
15:11:48 Checking for C++ header file arpa/inet.h... no
15:11:48 Checking for C++ header file fcntl.h... yes
15:11:48 Checking for C++ header file grp.h... no
15:11:48 Checking for C++ header file in6addr.h... no
15:11:48 Checking for C++ header file linux/limits.h... no
15:11:48 Checking for C++ header file memory.h... yes
15:11:48 Checking for C++ header file net/if.h... no
15:11:48 Checking for C++ header file netdb.h... no
15:11:48 Checking for C++ header file netinet/in.h... no
15:11:48 Checking for C++ header file pthread.h... no
23:03:04 Checking for C++ header file arpa/inet.h... no
23:03:04 Checking for C++ header file fcntl.h... no
23:03:04 Checking for C++ header file grp.h... no
23:03:04 Checking for C++ header file in6addr.h... no
23:03:04 Checking for C++ header file linux/limits.h... no
23:03:04 Checking for C++ header file memory.h... no
23:03:04 Checking for C++ header file net/if.h... no
23:03:04 Checking for C++ header file netdb.h... no
23:03:04 Checking for C++ header file netinet/in.h... no
23:03:04 Checking for C++ header file pthread.h... no
#ps1_sysnative
Set-ExecutionPolicy Unrestricted
$baseDir = 'c:\j'
$javaExe="C:\Program Files\Java\jdk1.8.0_144\bin\java.exe"
$destinationSlaveJarPath = "$baseDir\e\slave.jar"
$logfile="$baseDir\jenkins.log"
$errlog="$baseDir\jenkins-err.log"
$jenkinsServerUrl="${JENKINS_URL}"
$jenkinsServerUrl=$jenkinsServerUrl -replace '/$', ''
[[email protected] ~]# free
total used free shared buff/cache available
Mem: 18496788 14596024 188840 164008 3711924 3338368
Swap: 524284 9240 515044
[[email protected] ~]# free
total used free shared buff/cache available
Mem: 18496788 13682996 174188 164008 4639604 4250656
Swap: 524284 9240 515044
[[email protected] ~]# free
total used free shared buff/cache available
C:\Users\cjcollier>c:\Python27\Scripts\scons.py
scons: *** No SConstruct file found.
File "C:\Python27\Lib\site-packages\scons-2.5.0\SCons\Script\Main.py", line 912,
in _main