Skip to content

Instantly share code, notes, and snippets.

@zenitraM
zenitraM / gist:2204472
Created March 26, 2012 11:13
Recompiling wpa_supplicant with GNU-TLS instead of OpenSSL

To recompile and reinstall wpasupplicant using GNU-TLS instead of OpenSSL on Ubuntu (and derivated distros):

sudo su
cd /usr/src
apt-get install devscripts
apt-get build-dep wpasupplicant
apt-get install libgnutls-dev
apt-get source wpasupplicant

We then open the file /usr/src/wpasupplicant-x.x.x/debian/config/linux and replace

@zenitraM
zenitraM / gist:2949330
Created June 18, 2012 16:41
Simple template engine
/* Templates to load: */
function Template(templateUrl) {
this.template = false;
this.compiledTemplate= false;
this.templateUrl = templateUrl;
this.draw = function(contents) {
//We compile the template if it isn't compiled yet.
this.compiledTemplate = this.compiledTemplate || Handlebars.compile(this.template);
return this.compiledTemplate(contents);
@zenitraM
zenitraM / keybase.md
Created March 11, 2014 19:36
keybase.md

Keybase proof

I hereby claim:

  • I am zenitraM on github.
  • I am zenitram (https://keybase.io/zenitram) on keybase.
  • I have a public key whose fingerprint is AB19 1165 32ED 5FF7 3A46 D581 D0A2 FC3D 2E57 9F7D

To claim this, I am signing this object:

@zenitraM
zenitraM / flake.nix
Last active December 31, 2023 00:29 — forked from mausch/flake.nix
llama-cpp-python nix flake
{
inputs.llama-cpp.url = "github:zenitram/llama.cpp/llama-python-unfree";
inputs.nixpkgs.url = "github:nixos/nixpkgs/63678e9f3d3afecfeafa0acead6239cdb447574c";
inputs.flake-utils.url = "github:numtide/flake-utils/f9e7cf818399d17d347f847525c5a5a8032e4e44";
outputs = { self, nixpkgs, flake-utils, llama-cpp }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = (import nixpkgs { system = "x86_64-linux"; config.allowUnfree = true; });