Skip to content

Instantly share code, notes, and snippets.

@jfmherokiller
jfmherokiller / Makefile
Created September 20, 2016 16:38
wabbitsign Makefile
CC = $(CROSS_COMPILE)clang
LD = $(CROSS_COMPILE)ld
LDFLAGS += -lc -lm
LDFLAGS += -lgmp -lcrypto
export CFLAGS
export LDFLAGS
# Suffix Rules
.SUFFIXES: .c
diff --git a/src/conky.cc b/src/conky.cc
index 6522ce1..07625cf 100644
--- a/src/conky.cc
+++ b/src/conky.cc
@@ -129,6 +129,549 @@
#include <microhttpd.h>
#endif
+#include <assert.h>
+#include <string.h>
This file has been truncated, but you can view the full file.
<!DOCTYPE html>
<html lang="en">
<head>
<link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:200,200i,300,300i,400,400i,600,600i,700,700i,900,900i" rel="stylesheet">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible">
<title>asciinema - Record and share your terminal sessions, the right way</title>
<style>
@jfmherokiller
jfmherokiller / CLion_Ninja.md
Last active November 3, 2016 18:47 — forked from nevkontakte/CLion_Ninja.md
Ninja support for CLion IDE

Ninja support for CLion IDE

This script enables Ninja-powered builds in CLion IDE by wrapping around CMake, which it uses. See my blog post for details.

Disclaimer

This script is provided AS IS with no guarantees given or responsibilities taken by the author. This script relies on undocumented features of CLion IDE and may lead to instability of build and/or IDE. Use it on your own risk under WTFPL terms.

@jfmherokiller
jfmherokiller / TRORQWV13762CDDF4C.json
Last active November 3, 2016 19:55
the magical part of infinate jukebox
{"response": {"status": {"code": 0, "message": "Success", "version": "4.2"}, "track": {"status": "complete", "info": {"title": "Call Me Maybe", "url": "http://static.echonest.com/audio2/01 Call Me Maybe 1.mp3", "artist": "Carly Rae Jepsen", "tag": "tag", "ready": true, "id": "TRORQWV13762CDDF4C"}, "song_id": "SOXLHDK1372FC963BC", "artist": "Carly Rae Jepsen", "samplerate": 44100, "title": "Call Me Maybe", "analysis": {"bars": [{"duration": 1.99956, "start": 0.76559, "confidence": 0.39}, {"duration": 1.98793, "start": 2.76515, "confidence": 0.486}, {"duration": 1.99906, "start": 4.75307, "confidence": 0.757}, {"duration": 1.99325, "start": 6.75214, "confidence": 0.194}, {"duration": 2.00363, "start": 8.74538, "confidence": 0.684}, {"duration": 2.00462, "start": 10.74901, "confidence": 0.29}, {"duration": 1.99523, "start": 12.75363, "confidence": 0.594}, {"duration": 1.49697, "start": 14.74886, "confidence": 0.613}, {"duration": 2.00731, "start": 16.24584, "confidence": 0.445}, {"duration": 1.99665, "start": 18
#!/bin/sh
LISTS=$1
[ -z $LISTS ] && LISTS=BASE16
NZ=nzone
if grep -q Ubuntu /proc/version; then
VER=Ubuntu
PS="ps -A"
PACKAGES="hostapd dnsmasq sudo iptables procps cron net-tools wireless-tools pciutils module-init-tools coreutils grep sed"
[ $(dpkg -l $PACKAGES | grep -ce ^ii) -lt 13 ] && sudo apt-get update && sudo apt-get install $PACKAGES
SCRIPTROOT=/usr/local/bin
@jfmherokiller
jfmherokiller / program.cs
Last active March 13, 2017 02:07
movable.sed parser
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace movablesedtest
{
//refrenced from here https://www.3dbrew.org/wiki/Nand/private/movable.sed
/*Offset Size Description
*0x0 0x4 Magic "SEED"
@jfmherokiller
jfmherokiller / ipfscrape.ps1
Created May 30, 2017 04:06
ipfs-scrape powershell version
Param(
[string]$URL
)
$olddirectory = (Get-Item -Path ".\" -Verbose).FullName
function New-TemporaryDirectory {
$parent = [System.IO.Path]::GetTempPath()
[string] $name = [System.Guid]::NewGuid()
Param(
[Parameter(Mandatory=$true,ValueFromPipeline=$true)]
[string]$URL
)
$tempfile = New-TemporaryFile
& wget.exe -q --user-agent="Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36" --output-document=$tempfile $URL
$filehash = (ipfs add --pin=false -Q "$tempfile")
@jfmherokiller
jfmherokiller / ipfs-git-rehost.ps1
Created July 6, 2017 03:48
ipfs git rehost script powershell edition
Param(
[Bool]$unpack = $false,
[string]$existing = "",
[Parameter(Mandatory=$true,ValueFromPipeline=$true)][string]$GitRepo,
[string]$name = ""
)
function New-TemporaryDirectory {
$parent = [System.IO.Path]::GetTempPath()
[string] $name = [System.Guid]::NewGuid()