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 / MATRIX.md
Created Feb 9, 2018 — forked from fstab/MATRIX.md
How to use matrix.org and vector.im as an IRC client
View MATRIX.md

How to use matrix.org and vector.im as an IRC client

How to Join an IRC Channel on matrix.org

Join the room #freenode_<#channel>:matrix.org, replacing <#channel> with the name of the IRC channel. For example, in order to join the #prometheus IRC channel, join the room #freenode_#prometheus:matrix.org on matrix.org.

In vector.im, rooms can be joined with the directory symbol on the bottom left.

@oblitum
oblitum / Access NSScreen.scpt
Created Jan 27, 2018 — forked from henryroe/Access NSScreen.scpt
Demonstration of how to use an AppleScript Bundle to enable access to NSScreen in AppleScriptObjC
View Access NSScreen.scpt
(*
Copy and paste this script into a new document in AppleScript Editor.
When saving, select "Script Bundle" as File Type.
Save the file to: "~/Library/Script Libraries/Access NSScreen.scptd"
Note: you may need to create the directory: "~/Library/Script Libraries"
Note: while this gist has the file ending "scpt", by selecting the
"Script Bundle" file type, the file extension "scptd" should be added.
View 1.applescript
tell application "Google Chrome"
repeat with windowId from 1 to counts windows
if title of window windowId contains "tom.scogland@gmail.com - Gmail" then
activate window windowId
end if
end repeat
end tell
@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 / 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

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 / 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>
@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;
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...]
*/
You can’t perform that action at this time.