Skip to content

Instantly share code, notes, and snippets.

LinkPlugin xwin.so
MkDir1 ./out/linux/optimize/plugins/video/loader/dds
C++ ./out/linux/optimize/plugins/video/loader/dds/ddsloader.o
LinkPlugin csbmpimg.so
ObjTagMetaData csbmpimg.so
DoSplitDebugInfo csbmpimg.so
C++ ./out/linux/optimize/plugins/video/loader/dds/dds.o
./out/linux/optimize/plugins/video/canvas/xwindow/libgobject-2.0.so.0.stub.o:(.data.__bss_start+0x0): multiple definition of `__bss_start'
./out/linux/optimize/plugins/video/canvas/xwindow/libXaw.so.7.stub.o:(.data.__bss_start+0x0): first defined here
./out/linux/optimize/plugins/video/canvas/xwindow/libgobject-2.0.so.0.stub.o:(.data._edata+0x0): multiple definition of `_edata'
@roman-yagodin
roman-yagodin / ps-build-cs.sh
Last active August 29, 2015 14:02
Building CS with default gcc, plus quoted paths
#!/bin/bash
cd $(dirname $0)
source ps-params.sh
# clean
cd "$PS_BUILD/cs"
jam clean
# update
@roman-yagodin
roman-yagodin / RenameFolder_DoRename
Last active August 29, 2015 14:02
T-SQL SPs for sync folder rename in DNN Platform with content in HTML, Blog and Forum modules from common/YYMMDD to common/YY/YYMMDD sheme
USE [Dotnetnuke7]
GO
/****** Object: StoredProcedure [dbo].[RenameFolder_DoRename] Script Date: 09.06.2014 11:56:33 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
-- =============================================
-- Author: <Author,,Name>
-- Create date: <Create Date,,>
@roman-yagodin
roman-yagodin / _R7_Feedback.cshtml
Created October 13, 2014 11:00
Feedback helper exploring (Razor, Javascript, jQuery, Rangy)
@{
var errorTabID = Request.QueryString["errortabid"];
var errorContext = Request.QueryString["errorcontext"] ?? "";
if (!string.IsNullOrWhiteSpace(errorTabID))
{
var textAreaID = "#dnn_ctr9144_Feedback_txtBody";
var errorTabUrl = "http://" + Dnn.Portal.PortalAlias.HTTPAlias + "?tabid=" + errorTabID;
<script type="text/javascript">
@roman-yagodin
roman-yagodin / combine.cs
Last active August 29, 2015 14:11
Script to combine source files into single text file
#!/usr/bin/csharp
using System;
using System.IO;
using R7.Scripting;
class Combine
{
public void Run ()
{
@roman-yagodin
roman-yagodin / charcreate.xml.patch
Last active August 29, 2015 14:12
PAWS patches
--- /A/data/gui/charcreate.xml
+++ /B/data/gui/charcreate.xml
@@ -166,14 +166,14 @@
<!-- Face customization area -->
<widget name="customization" factory="pawsWidget" >
<frame x="565" y="170" width="200" height="100"/>
- <widget name="Custom Choice Set 1 <" factory="pawsButton" toggle="no">
+ <widget name="Custom Choice Set 1 &lt;" factory="pawsButton" toggle="no">
<frame x="0" y="0" width="25" height="20"/>
<buttonup resource="arrowLeft"/>
USE [Dotnetnuke7]
GO
/****** Object: StoredProcedure [dbo].[R7_DnnCleanup] Script Date: 07.05.2015 11:27:52 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
-- =============================================
-- Author: Roman M. Yagodin
-- Create date: 07.05.2015
@roman-yagodin
roman-yagodin / simpletask gtd.md
Created February 4, 2016 05:22 — forked from alehandrof/simpletask gtd.md
How to GTD with Simpletask

How to GTD with Simpletask

This is a guide to implementing Getting Things Done (GTD) using [Simpletask][] by [Mark Janssen][].

Simpletask uses the [todo.txt][] syntax, but has sufficient differences and quirks of its own to be worth describing in detail---at least, that's the story I'm going with. I actually began this guide as an exploration of my own trusted system. Personal workflows are by definition eccentric; I have included only what seems to me to be broadly useful.

This implementation of GTD covers the "standard" classifications: next actions by context, projects, somedays, agendas by person and meeting, etc. In a departure from strict GTD, each entry in these lists is also tagged with an area of focus, interest or responsibility. I find that the ability to slice the system by this extra dimension is worth the additional complexity at the processing and organizing stages. Limitations, issues and workarounds are discussed at the end.

Before we begin, some words of wisdom

@roman-yagodin
roman-yagodin / build_android.sh
Created September 23, 2016 09:43 — forked from Calinou/build_android.sh
Compile Godot for Android easily
#!/bin/sh -x
# This script compiles Android debug and release templates from a Godot Git clone.
# It needs to be run from a GNU/Linux system. The compilation process will automatically
# use all CPU threads available.
# You will need to install Android SDK (API 19) and NDK (latest, as of May 2016).
# Place this script at the root of your Godot Git clone.
# CC0 1.0 Universal
@roman-yagodin
roman-yagodin / compress-pdf-with-gs.md
Created March 27, 2017 10:29 — forked from drawveloper/compress-pdf-with-gs.md
Compress PDF files with ghostscript

This can reduce files to ~15% of their size (2.3M to 345K, in one case) with no obvious degradation of quality.

ghostscript -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/printer -dNOPAUSE -dQUIET -dBATCH -sOutputFile=output.pdf input.pdf

Other options for PDFSETTINGS:

  • /screen selects low-resolution output similar to the Acrobat Distiller "Screen Optimized" setting.
  • /ebook selects medium-resolution output similar to the Acrobat Distiller "eBook" setting.
  • /printer selects output similar to the Acrobat Distiller "Print Optimized" setting.
  • /prepress selects output similar to Acrobat Distiller "Prepress Optimized" setting.