sudo apt-get install compiz-plugins # needed for ring switcher and such.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env fish | |
# | |
# Example working with 'heredoc' documents | |
# | |
# Recommended: Define the heredoc using single quotes | |
# | |
# Use the `fish-heredoc-quote` script to generate quoted document | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import zip/zlib | |
import streams | |
const BufferSize = 16384*2 | |
type | |
GZipInputStream* = ref GZipInputStreamObj | |
GZipInputStreamObj* = object of Stream | |
source: Stream | |
zstream: ZStream |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Nim port of Daniel Lemire's fast newline count `avxcount` | |
# | |
# See https://lemire.me/blog/2017/02/14/how-fast-can-you-count-lines/ | |
# https://github.com/lemire/Code-used-on-Daniel-Lemire-s-blog/blob/master/2017/02/14/newlines.c | |
import os, memfiles, times, strutils | |
{.passc: "-march=native".} | |
{.pragma: imm, header:"immintrin.h".} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os, sets, hashes, strutils, sequtils | |
type | |
HString = object | |
str: string | |
hash: Hash | |
proc hash*(str: HString): Hash = | |
str.hash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import strutils | |
const SHA512Len = 64 | |
proc SHA512(d: cstring, n: culong, md: cstring = nil): cstring {.cdecl, dynlib: "libssl.dylib", importc.} | |
proc SHA512(s: string): string = | |
result = "" | |
let s = SHA512(s.cstring, s.len.culong) | |
for i in 0 .. < SHA512Len: |
Keywords: Intel Centrino Advanced-N 7260, Dell Inspiron 15 Series 7000.
Steps to great wifi performance,
http://www.yourownlinux.com/2014/02/install-upgrade-to-linux-kernel-3-13-5-in-linux.html
March 4th, 2014 Using Intel's 7260 Wifi on Ubuntu 13.10
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Usage: | |
# | |
# Add the following at the top of your buildfile, | |
# | |
# require 'proguard.rb' | |
# | |
# And specify your proguard jar in your project, | |
# | |
# package(:proguard).tap do |proguard| |
NewerOlder