Skip to content

Instantly share code, notes, and snippets.

;;; eassist.el --- EmacsAssist, C/C++/Java/Python/ELisp method/function navigator.
;; Copyright (C) 2006, 2007, 2010 Anton V. Belyaev
;; Author: Anton V. Belyaev <anton.belyaev at the gmail.com>
;; This file is *NOT* part of GNU Emacs.
;; This program is free software; you can redistribute it and/or
;; modify it under the terms of the GNU General Public License as
;; published by the Free Software Foundation; either version 2 of
@cawka
cawka / ndn-update-license.sh
Last active January 2, 2018 18:25
Script to update copyright notices for NDN codebase projects (based on https://gist.github.com/yoursunny/6297f3c70f5441213184)
#!/bin/bash
LICENSE_NFD='''/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/*
* Copyright (c) 2014-2018, Regents of the University of California,
* Arizona Board of Regents,
* Colorado State University,
* University Pierre & Marie Curie, Sorbonne University,
* Washington University in St. Louis,
* Beijing Institute of Technology,
[alias]
d = diff
dw = diff --color-words
lc = log ORIG_HEAD.. --stat --no-merges
undo=reset --hard
all = submodule foreach
sub = submodule
s = status
l = log
g = log --graph --oneline
. /etc/profile
alias ls='ls -G'
alias l='ls -G'
alias vi='aquamacs'
alias crontab="VIM_CRONTAB=true crontab"
alias gerrit='ssh gerrit gerrit'
export EDITOR='vim'
@cawka
cawka / Android.mk
Created November 26, 2016 02:49
Android.mk for libcrystax.so and libcrystax.a, which is needed when compiling using externalNativeBuild/ndkBuild
# Apache 2.0, similar, or compatible license
# place this file to $CRYSTAX_NDK_ROOT/sources/crystax/ folder
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE := crystax_static
LOCAL_SRC_FILES := libs/$(TARGET_ARCH_ABI)/libcrystax.a
include $(PREBUILT_STATIC_LIBRARY)
@cawka
cawka / hangout-link-to-ical.gs
Last active November 24, 2016 02:38
GoogleScript to add Hangout links to iCal
@cawka
cawka / qt5-patch
Last active November 13, 2016 10:22
diff --git a/qttools/src/macdeployqt/shared/shared.cpp b/qttools/src/macdeployqt/shared/shared.cpp
index 5577265..2d614cb 100644
--- a/qttools/src/macdeployqt/shared/shared.cpp
+++ b/qttools/src/macdeployqt/shared/shared.cpp
@@ -803,6 +803,10 @@ void changeInstallName(const QString &bundlePath, const FrameworkInfo &framework
deployedInstallName = framework.deployedInstallName;
}
changeInstallName(framework.installName, deployedInstallName, binary);
+ QString canonicalInstallName = QFileInfo(framework.installName).canonicalFilePath();
+ if (canonicalInstallName != framework.installName) {
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/**
* Copyright (c) 2016, Arizona Board of Regents.
*
* This is free software: you can redistribute it and/or modify it under the terms
* of the GNU General Public License as published by the Free Software Foundation,
* either version 3 of the License, or (at your option) any later version.
*
* This software is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
@cawka
cawka / Vagrantfile
Created October 27, 2016 20:39
Extra Vagrantfile for box creating
Vagrant.configure("2") do |config|
config.ssh.username = "jenkins"
end
#!/bin/sh
# Copyright (C) 2014 Patrick Georgi <patrick@georgi-clan.de>
# licensing: ISC license terms
#
# usage: $0 id-to-keep id-to-merge
# Include proper Host, user, and port configuration in your ~/.ssh/config as `gerrit`
if [ $# -ne 2 ]; then
echo "usage: $0 id-to-keep id-to-merge"