Skip to content

Instantly share code, notes, and snippets.

View meska's full-sized avatar
👽

Marco meska

👽
View GitHub Profile
/**
* @author Jacky Nguyen
* @author Kirill Konshin (patched version for Sencha Touch 2.2.x)
* @class Common.MouseWheelDrag
*
* Ext.Loader.setPath('Common', '/path/to/your/app/common');
*
* Ext.application({
* // ...
* eventPublishers: {
@meska
meska / email_logger.py
Last active August 29, 2015 14:08 — forked from pamelafox/email_logger.py
fix double emails
#!/usr/bin/env python
#
# based on XMPPLoggingHandler, Copyright 2011 Calvin Rien,
# based on ExceptionRecordHandler, Copyright 2007 Google Inc.
#
# Licensed 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
#
# http://www.apache.org/licenses/LICENSE-2.0
@meska
meska / xapian-virtualenv-p3.sh
Last active August 29, 2015 14:24
Script for install xapian bindings on python3 virtualenv
pkgver=1.3.3
mkdir -p $VIRTUAL_ENV/src && cd $VIRTUAL_ENV/src
curl -O http://oligarchy.co.uk/xapian/$pkgver/xapian-core-$pkgver.tar.xz && tar xf xapian-core-$pkgver.tar.xz
curl -O http://oligarchy.co.uk/xapian/$pkgver/xapian-bindings-$pkgver.tar.xz && tar xf xapian-bindings-$pkgver.tar.xz
cd $VIRTUAL_ENV/src/xapian-core-$pkgver
./configure --prefix=$VIRTUAL_ENV && make && make install
export LD_LIBRARY_PATH=$VIRTUAL_ENV/lib
@meska
meska / README.md
Created March 13, 2016 23:57 — forked from nicerobot/README.md
Mac OS X uninstall script for packaged install of node.js

To run this, you can try:

curl -ks https://gist.githubusercontent.com/nicerobot/2697848/raw/uninstall-node.sh | bash

I haven't tested this script doing it this way but i run a lot of my Gists like this so maybe this one'll work too.

Alternatively,

curl -ksO https://gist.githubusercontent.com/nicerobot/2697848/raw/uninstall-node.sh

chmod +x ./uninstall-node.sh

@meska
meska / docker-machine-vmfusion.sh
Created April 6, 2016 10:00
Basic workflow for docker-machine on Mac with VMWare Fusion
# Get everything ready on a Mac
brew install docker docker-machine docker-compose
# Create a new machine (based on the 1.8.1 boot2docker iso)
docker-machine create --driver vmwarefusion --vmwarefusion-memory-size 2048 --vmwarefusion-boot2docker-url https://github.com/boot2docker/boot2docker/releases/download/v1.9.1/boot2docker.iso osxdock
# Bring the machine up
docker-machine start osxdock
# Configure Shell
@meska
meska / 0_reuse_code.js
Created April 13, 2017 12:35
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@meska
meska / Install-Update-Spigot.txt
Created June 2, 2017 10:25 — forked from unitycoder/Install-Update-Spigot.txt
Install & Update Spigot Minecraft
// install
> yum install java-1.8.0-openjdk
> yum install screen
> mkdir minecraft
> cd minecraft
> wget -O BuildTools.jar https://hub.spigotmc.org/jenkins/job/BuildTools/lastSuccessfulBuild/artifact/target/BuildTools.jar
> yum install git
> git config --global --unset core.autocrlf
> java -jar BuildTools.jar
~~run> java -Xms512M -Xmx1G -XX:+UseConcMarkSweepGC -jar spigot-1.11.2.jar~~
@meska
meska / waitForKeyElements.js
Last active February 8, 2019 08:38 — forked from BrockA/waitForKeyElements.js
A utility function, for Greasemonkey scripts, that detects and handles AJAXed content.
/*--- waitForKeyElements(): A utility function, for Greasemonkey scripts,
that detects and handles AJAXed content.
Usage example:
waitForKeyElements (
"div.comments"
, commentCallbackFunction
);
@meska
meska / install_homebrew_m1.sh
Created May 11, 2022 15:22 — forked from Molin-L/install_homebrew_m1.sh
Install Homebrew on Apple silicon device/M1.
# Install ARM Homebrew to /opt/homebrew
# 安装ARM版本的Homebrew 到 /opt/homebrew
mkdir /opt/homebrew
sudo chown -R $(whoami) /opt/homebrew
curl -L https://github.com/Homebrew/brew/tarball/master | tar xz --strip 1 -C /opt/homebrew
# Install x86 Homebrew
arch -x86_64 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
@meska
meska / schemas.xmlsoap.org.xml
Created May 2, 2024 08:09 — forked from nc9/schemas.xmlsoap.org.xml
schemas.xmlsoap.org/soap/encoding/ mirror
<?xml version="1.0" encoding="UTF-8"?>
<!-- Schema for the SOAP/1.1 encoding
Portions © 2001 DevelopMentor.
© 2001 W3C (Massachusetts Institute of Technology, Institut National de Recherche en Informatique et en Automatique, Keio University). All Rights Reserved.
This document is governed by the W3C Software License [1] as described in the FAQ [2].
[1] http://www.w3.org/Consortium/Legal/copyright-software-19980720
[2] http://www.w3.org/Consortium/Legal/IPR-FAQ-20000620.html#DTD
By obtaining, using and/or copying this work, you (the licensee) agree that you have read, understood, and will comply with the following terms and conditions: