Skip to content

Instantly share code, notes, and snippets.

Francisco Lopes oblitum

Block or report user

Report or block oblitum

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@oblitum
oblitum / clang-hacking.cpp
Created Mar 2, 2014
Fixing libclang bug 13699
View clang-hacking.cpp
#include <clang-c/Index.h>
#include <cstdlib>
#include <iostream>
/*
* Compile with:
* clang++ clang-hacking.cpp -o clang-hacking -lclang
* Run with:
* LIBCLANG_TIMING=1 ./clang-hacking file.cpp line column [clang args...]
*/
View complete.cc
#include <clang-c/Index.h>
#include <cstdlib>
#include <iostream>
/*
* Compile with:
* g++ complete.cc -o complete -lclang -L/usr/lib/llvm
* Run with:
* LIBCLANG_TIMING=1 ./complete file.cc line column [clang args...]
*/
@oblitum
oblitum / poco_http_post_headers.cpp
Created Dec 14, 2015 — forked from jeffcrouse/poco_http_post_headers.cpp
Poco HTTPPOST request with headers
View poco_http_post_headers.cpp
#include <Poco/Net/HTTPClientSession.h>
#include <Poco/Net/HTTPRequest.h>
#include <Poco/Net/HTTPResponse.h>
#include <Poco/StreamCopier.h>
#include <Poco/Path.h>
#include <Poco/URI.h>
#include <Poco/Exception.h>
using namespace Poco::Net;
using namespace Poco;
@oblitum
oblitum / 1-clang-O3.asm
Created Oct 11, 2013
yeppp! a trivial test's clang intel syntax assembly
View 1-clang-O3.asm
call _ZNSt6chrono3_V212system_clock3nowEv
.Ltmp100:
mov r14, rax
.Ltmp101:
#DEBUG_VALUE: i <- 0
.align 16, 0x90
.LBB0_6: # %.lr.ph.i.preheader
# =>This Loop Header: Depth=1
# Child Loop BB0_7 Depth 2
#DEBUG_VALUE: size <- 1024
View postmortem.go
// Better POST-MORTEM than never! 💀
package main
import (
"errors"
"fmt"
)
type RelationshipSet struct {
@oblitum
oblitum / index.html
Created Apr 11, 2016 — forked from biovisualize/index.html
Posting gist/blocks to blogger
View index.html
<!-- Override Gist styling -->
<style type="text/css">
iframe{background-color: #0a0a0a;}
div.gist-syntax {background-color:#0a0a0a!important;}
div.gist {color:#ccc!important;}
span.nt, span.kd, span.k, span.o{color:aliceblue!important;}
.gist .gist-file{border-color:#444!important;}
.gist .gist-file .gist-meta{background-color:#0a0a0a!important;}
</style>
View lxss-wsl-bash-tips.md

Just some notes and references for myself.

  • In bash, you can access your C:\ driver via /mnt/c/
  • ~ = C:\Users\MLM\AppData\Local\lxss\home\mlm and is different from your Windows user directory C:\Users\MLM

How to google things

@oblitum
oblitum / myweechat.md
Created Apr 29, 2017 — forked from pascalpoitras/myweechat.md
My always up-to-date WeeChat configuration (weechat-dev)
View myweechat.md

WeeChat Screenshot

Enable mouse support

/mouse enable

Encrypted password in sec.conf

@oblitum
oblitum / mopidy.md
Created May 25, 2017 — forked from 0x414A/mopidy.md
An installation and setup guide for mopidy on Arch Linux.
View mopidy.md

Mopidy on Arch Linux

mopidy

Installation

Install from the AUR.

@oblitum
oblitum / description.txt
Last active Aug 26, 2017
Adds compose menu bindings for grouping and moving attachments
View description.txt
Adds compose menu bindings for grouping and moving attachments.
Three new bindings:
group-alternatives combine tagged items into a multipart/alternative group
move-up move the current attachment up in the list
move-down move the current attachment down in the list
You can’t perform that action at this time.