This file contains 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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
This file contains 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 | |
# Replaces all _lightweight_ Git tags with an _annotated_ tag | |
# in the current repository | |
echo "Converting lightweight tags to annotated tags..." | |
for tag in $(git tag) | |
do |
This file contains 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
VBoxManage controlvm zoomdb_default_1438294339807_33007 poweroff | |
VBoxManage snapshot zoomdb_default_1438294339807_33007 restore 7.9.0 | |
VBoxManage startvm zoomdb_default_1438294339807_33007 --type headless | |
This file contains 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
boxname = zoomdb_default_1438294339807_33007 | |
VBoxManage controlvm $boxname poweroff | |
VBoxManage snapshot $boxname delete 7.8.2 | |
VBoxManage snapshot $boxname delete 7.9.0 | |
VBoxManage snapshot $boxname restore initial | |
VBoxManage startvm $boxname --type headless | |
migrate() { |
This file contains 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
cp ../platform/build/docker.gradle build | |
cd ~/development/platform && ant assemble-jar && cp dist/zoom.jar ~/development/platform-docker/dist/baseline/WEB-INF/lib && cd ~/development/platform-docker && ./gradlew -b build/docker.gradle -PestationDeployDir=dist/baseline baseline clean |
This file contains 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
git svn rebase | |
ant clean prepare-local-env release baseline | |
eval "$(docker-machine env cpfarm)" | |
./gradlew -b build/docker.gradle -PestationDeployDir=dist/baseline baseline clean | |
This file contains 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
-- Shrink Global DB Log | |
USE [master] | |
GO | |
ALTER DATABASE [zoom_global] SET RECOVERY full WITH NO_WAIT | |
GO | |
USE zoom_global | |
GO | |
BACKUP DATABASE zoom_global TO DISK = N'C:\temp\zoom_global.bak' | |
GO |
This file contains 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
-- Scripts to cleanup zoom database | |
------------------------------------------------ | |
-- Delete assortments with null planograms and their dependencies | |
DELETE from SMART_ALTERNATE_PRODUCTS | |
where SMART_ASSORTMENT_PRODUCT_OID IN ( | |
select SMART_ASSORTMENT_PRODUCT_OID | |
from SMART_ASSORTMENT_PRODUCTS | |
where SMART_PLANOGRAM_OID is null |
This file contains 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
import os | |
import sys | |
def restart(): | |
prefix = 'monitor (pid=%d):' % os.getpid() | |
print('%s Triggering Apache restart.' % prefix, file=sys.stderr) | |
import ctypes | |
ctypes.windll.libhttpd.ap_signal_parent(1) |
This file contains 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
import os | |
import threading | |
import re | |
import win32file | |
import win32con | |
ACTIONS = { | |
1 : "Created", | |
2 : "Deleted", |
NewerOlder