Skip to content

Instantly share code, notes, and snippets.

Miguel Espinoza purefan

Block or report user

Report or block purefan

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
@purefan
purefan / ws-client.cpp
Last active May 10, 2018
cpp ws client - not working
View ws-client.cpp
#include "stdafx.h"
#include <websocketpp/config/asio_no_tls_client.hpp>
#include <websocketpp/client.hpp>
#include <Windows.h>
#include <iostream>
#include <stdio.h>
#include <fstream>
#include <future>
typedef websocketpp::client<websocketpp::config::asio_client> client;
@purefan
purefan / 2017-06-29.json
Last active Jun 29, 2017
Stylus styles
View 2017-06-29.json
This file has been truncated, but you can view the full file.
[
{
"sections": [
{
@purefan
purefan / generic-dark-theme.css
Created Mar 31, 2017
Generic dark theme for Stylish based on Krebs on security
View generic-dark-theme.css
body,
h1, h2, h3,
div > h2,
.post h2,
p,
ol.commentlist,
ol.commentlist li,
ol.commentlist li.even,
li.comment,
#commentform > p > label > small
View keybase.md

Keybase proof

I hereby claim:

  • I am purefan on github.
  • I am purefan (https://keybase.io/purefan) on keybase.
  • I have a public key whose fingerprint is D2CF D858 B1EC C85E C149 B7F6 8E99 4C00 AB86 566A

To claim this, I am signing this object:

View keybase.md

Keybase proof

I hereby claim:

  • I am purefan on github.
  • I am purefan (https://keybase.io/purefan) on keybase.
  • I have a public key ASAGHxbvAk3qB4QbuvMRa98GZ1iMh2xdOvmuZnd7vG_54Qo

To claim this, I am signing this object:

@purefan
purefan / mypinger.sh
Created Jan 26, 2016
Simple ping wrapper
View mypinger.sh
#!/bin/bash
DOCURL=true;
echo $0
runCurl() {
PING=$(curl --connect-timeout 1 --max-time 1 --head -s ${1});
ISUP=false;
if [[ $PING == *"200 OK"* ]]; then
ISUP=true;
@purefan
purefan / gist:b3e72ed6847edfcf7eaa
Created Mar 7, 2015
NullPointer Exception running build-deps.sh
View gist:b3e72ed6847edfcf7eaa
[info] Set current project to tmp-6tdmfihlov (in build file:/tmp/tmp.6tdmfIhloV/)
[info] Packaging /tmp/tmp.6tdmfIhloV/target/scala-2.10/tmp-6tdmfihlov_2.10-0.1-SNAPSHOT-sources.jar ...
[info] Done packaging.
[info] Updating {file:/tmp/tmp.6tdmfIhloV/}tmp-6tdmfihlov...
[info] Resolving org.fusesource.jansi#jansi;1.4 ...
[info] Done updating.
[info] Wrote /tmp/tmp.6tdmfIhloV/target/scala-2.10/tmp-6tdmfihlov_2.10-0.1-SNAPSHOT.pom
[info] :: delivering :: default#tmp-6tdmfihlov_2.10;0.1-SNAPSHOT :: 0.1-SNAPSHOT :: integration :: Sat Mar 07 01:14:23 UTC 2015
[info] delivering ivy file to /tmp/tmp.6tdmfIhloV/target/scala-2.10/ivy-0.1-SNAPSHOT.xml
[info] Packaging /tmp/tmp.6tdmfIhloV/target/scala-2.10/tmp-6tdmfihlov_2.10-0.1-SNAPSHOT-javadoc.jar ...
View gist:4a33210d4bbec670b843
Verifying that +purefan is my Bitcoin username. You can send me #bitcoin here: https://onename.io/purefan
@purefan
purefan / gist:335626db8cf739c9cd08
Created Sep 24, 2014
Sublime natural tab order
View gist:335626db8cf739c9cd08
Put in (Preferences -> Key Bindings - User):
{ "keys": ["ctrl+tab"], "command": "next_view" },
{ "keys": ["ctrl+shift+tab"], "command": "prev_view" }
View front end pretty log
var log=function(){for(var a in arguments)if(0==a){if(-1<arguments[a].indexOf("::")&&(arguments[0]="[ "+arguments[a]+" ]"),arguments[0]!=this.logLastCalled){var b="%c "+Array(20).join(" ")+arguments[a]+Array(40-arguments[a].length).join(" "),c="background: #222;color: #bada55;";-1<arguments[0].indexOf("Error ")&&(b=b.replace("Error ",""),c="background: #222; color: #FF0000;");console.log(b,c)}}else"string"==typeof arguments[a]&&-1<arguments[a].indexOf("Yellow:")?console.log("%c "+arguments[a].replace("Yellow:",""),"background: #222, color: #FFFD40;"):console.log(arguments[a]);this.logLastCalled=arguments[0]};
You can’t perform that action at this time.