Skip to content

Instantly share code, notes, and snippets.

View darth30joker's full-sized avatar

Darth Joker darth30joker

View GitHub Profile
@darth30joker
darth30joker / Microsoft.PowerShell_profile.ps1
Last active August 8, 2020 23:08
PowerShell 7 customisation
Import-Module posh-git
$GitPromptSettings.DefaultPromptPath.ForegroundColor = 0xFFA500
import os
from os.path import getsize
import struct
class CDate:
def __init__(self, year=0, month=0, day=0)
self.year = year
self.month = month
self.day = day
/*! use killbill; */
/*! SET storage_engine=INNODB */;
DROP TABLE IF EXISTS accounts;
CREATE TABLE accounts (
record_id serial unique,
id varchar(36) NOT NULL,
external_key varchar(128) NULL,
email varchar(128) DEFAULT NULL,
$ mvn clean package
[MVNVM] Using maven: 3.0.5
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for com.groupon.api:umapi:war:1.20.0-SNAPSHOT
[WARNING] 'dependencies.dependency.systemPath' for com.groupon.clients:mx-clients:jar should use a variable instead of a hard-coded path /Users/davidx/Projects/Groupon/PaymentsChina/mx-clients/target/mx-clients-1.19.6-SNAPSHOT.jar @ line 50, column 25
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
#! /usr/bin/env bash
###################################################################################
# #
# Copyright 2010-2011 Ning, Inc. #
# #
# Ning licenses this file to you under the Apache License, version 2.0 #
# (the "License"); you may not use this file except in compliance with the #
# License. You may obtain a copy of the License at: #
[c_dxie@merchant-wallet-app1-staging log]$ cat /var/groupon/log/unicorn/merchantwallet.log
I, [2015-08-28T00:01:01.539149 #15837] INFO -- : master done reopening logs
I, [2015-08-28T00:01:01.556826 #15837] INFO -- : master reopening logs...
I, [2015-08-28T00:01:01.626600 #15856] INFO -- : worker=0 done reopening logs
I, [2015-08-28T00:01:01.631777 #15865] INFO -- : worker=3 done reopening logs
I, [2015-08-28T00:01:01.645392 #15837] INFO -- : master done reopening logs
I, [2015-08-28T00:01:01.645702 #15856] INFO -- : worker=0 reopening logs...
I, [2015-08-28T00:01:01.651287 #15865] INFO -- : worker=3 reopening logs...
I, [2015-08-28T00:01:01.659092 #15837] INFO -- : master reopening logs...
I, [2015-08-28T00:01:01.660397 #15862] INFO -- : worker=2 done reopening logs
NUM = {
'1': 'one',
'2': 'two',
'3': 'three',
'4': 'four',
'5': 'five',
'6': 'six',
'7': 'seven',
'8': 'eight',
'9': 'nine',
@darth30joker
darth30joker / Rakefile
Last active August 29, 2015 14:12
Ruby homework
task :default => :test
task :test do
sh 'rspec calc_spec.rb'
end
@darth30joker
darth30joker / calc.py
Created December 20, 2014 12:49
homework
#!/usr/bin/env python3
import re
import math
class CalculationException(Exception):
pass
class Calculation:
lxie:test3 git:(master*) $ grunt build
Running "clean:dist" (clean) task
Cleaning .tmp...OK
Cleaning dist/index.html...OK
Cleaning dist/scripts...OK
Cleaning dist/styles...OK
Running "jade:dist" (jade) task
>> 1 file created.