Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am gdovicak on github.
  • I am bengdovicak (https://keybase.io/bengdovicak) on keybase.
  • I have a public key ASDKj2DW2t7xTBL_KW_31ewxLRi8HQm0WbZhSAPJ2-4-qwo

To claim this, I am signing this object:

@gdovicak
gdovicak / gist:cce7769910b11165befa
Last active August 29, 2015 14:17
Start Jenkins Build
#!/usr/bin/env ruby
require 'net/http'
require 'json'
jenkins_domain = 'am-ci-jenk01.stl.afcv.net:8080'
user_name = ''
api_key = ''#Can be obtained from http://am-ci-jenk01.stl.afcv.net:8080/user/<your_user_name>/configure
project_name = 'shopper_ratings'
@gdovicak
gdovicak / autotest.sh
Last active August 29, 2015 14:14
phpunit autotest
watchmedo shell-command --patterns="*.php;*.txt" --recursive --command='phpunit ${watch_src_path} | ~/projects/php_autotest/notify.py'
@gdovicak
gdovicak / Laravel Test Example
Created August 4, 2014 16:55
A Laravel test example of setUp and tearDown
class FakeTest extends TestCase{
public function setUp(){
parent::setUp();
}
public function tearDown(){
parent::tearDown();
Mockery::close();
}
}
/usr/local/bin/ctags -R tags ./laravel && /usr/local/bin/ctags -Ra tags ./classes
2bvey:/{^Mo^R0 = ^R0;^[^l\ep^[
@gdovicak
gdovicak / gmail_check.sh
Created April 1, 2014 13:45
Script to check for a phrase in the text of an email in gmail.
curl -u <username>:<password> -k --silent "https://mail.google.com/mail/feed/atom" | grep -oi "Wooo" | say -v "Good News"
@gdovicak
gdovicak / ssl_save.sh
Created April 1, 2014 13:41
Command to save an ssl cert from a website.
echo | openssl s_client -connect google.com:443 2>/dev/null | openssl x509 >> ~/Desktop/foo.cer