Skip to content

Instantly share code, notes, and snippets.

View lischenko's full-sized avatar

Vitaly Lischenko lischenko

View GitHub Profile
# draft, needs to be tested
# homebrew + caskroom
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew install caskroom/cask/brew-cask
# emacs
brew install emacs
# clojure
@lischenko
lischenko / .emacs
Last active December 18, 2015 20:39
My emacs configuration
;; proxy settings
;;(setq url-proxy-services '(("no_proxy" . "work\\.com")
;; ("http" . "proxy:8080")))
(add-to-list 'exec-path "/usr/local/bin")
(custom-set-variables
;; custom-set-variables was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
@lischenko
lischenko / update-wp.sh
Created January 26, 2013 10:53
A script I use to update all my wordpress sites at once.
#!/bin/bash
# A script I use to update all my wordpress sites at once.
#
# # e*f*m.ru
# n******-o*****.ru
# pri*.ru
# s*-l.ru
#
# TODO: add database back up
import java.util.Collections;
import java.util.Map;
import java.util.Properties;
import javax.sql.DataSource;
import org.apache.commons.dbcp.BasicDataSourceFactory;
import org.springframework.jdbc.core.namedparam.NamedParameterJdbcTemplate;
public class Main {
@lischenko
lischenko / pom-call-ant.xml
Created January 14, 2013 12:10
From <a href='http://stackoverflow.com/questions/7484729/how-to-set-up-eclipse-pde-build-with-indigo'>stack overflow</a>. <br> Maven based build against "Eclipse for RCP and RAP Developers" plus delta pack plus SWTBot. Both were deployed to my Maven repository and are unpacked during the build (if required). <br> See pom-define-tp.xml for an exa…
<!-- Delegate execution to PDE/Build via ant -->
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<version>1.7</version>
<executions>
<execution>
<phase>compile</phase>
<configuration>
<target>
<ant antfile="${pdebuild.antDelegateBuildfile}">