Skip to content

Instantly share code, notes, and snippets.

View thelebster's full-sized avatar
:octocat:
Do nothing, it is ok.

Anton Lebedev thelebster

:octocat:
Do nothing, it is ok.
View GitHub Profile
/**
* Module dependencies.
*/
var express = require('express'),
fs = require('fs'),
http = require('http'),
path = require('path'),
mongoose = require('mongoose'),
passport = require("passport"),
/**
* Implements hook_views_default_views_alter()
*
* $handler =& $view->display['DISPLAY_ID']->handler;
*/
function MODULENAME_views_default_views_alter(&$views) {
if (isset($views['admin_views_node'])) {
$handler =& $views['admin_views_node']->display['default']->handler;
@thelebster
thelebster / smsaero_get_xls_reports.js
Created May 22, 2014 21:11
Get XLS reports from http://smsaero.ru/. Uses CasperJS - http://casperjs.org. Run script: casperjs smsaero.js --email=fakemail@fake.com --password=fakepassword
var casper = require('casper').create({
//verbose: true,
//logLevel: 'debug',
userAgent: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_6_8) AppleWebKit/537.22 (KHTML, like Gecko) Chrome/25.0.1364.172 Safari/537.22'
});
casper.cli.drop("cli");
casper.cli.drop("casper-path");
if (casper.cli.args.length === 0 && Object.keys(casper.cli.options).length === 0) {
# Start the old vagrant
$ vagrant init centos-6.3
$ vagrant up
# You should see a message like:
# [default] The guest additions on this VM do not match the install version of
# VirtualBox! This may cause things such as forwarded ports, shared
# folders, and more to not work properly. If any of those things fail on
# this machine, please update the guest additions and repackage the
# box.
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so
# Packages #
<?php
/*
Make Sure you include:
ctools_include('modal');
ctools_modal_add_js();
On the pages you put your link.
*/
#!/bin/bash
# log into your server
ssh root@[server ipaddress]
# change root password
passwd
# update all packages and operating system
apt-get update && apt-get --yes upgrade
dependencies[] = ctools
; Views Handlers
files[] = views/mymodule_handler_handlername.inc
dependencies[] = ctools
; Views Handlers
files[] = views/mymodule_handler_handlername.inc