Skip to content

Instantly share code, notes, and snippets.

View danielandersson's full-sized avatar
👨‍🎨
Being creative!

Daniel Andersson danielandersson

👨‍🎨
Being creative!
View GitHub Profile
#include <stdio.h>
#include <stdint.h>
// Philips Sonicare NFC Head Password calculation by @atc1441
uint16_t CRC16(uint16_t crc, uint8_t *buffer, int len) // Default CRC16 Algo
{
while(len--)
{
crc ^= *buffer++ << 8;
int bits = 0;
do

Keybase proof

I hereby claim:

  • I am danielandersson on github.
  • I am dandersson (https://keybase.io/dandersson) on keybase.
  • I have a public key ASCb9mpwflyu_wSFeJ0rwda_24ms8-X2gcy35oydwsOr2wo

To claim this, I am signing this object:

@danielandersson
danielandersson / darkify_slack.sh
Created September 25, 2018 14:32
Change Slack theme to Night-Mode
#! /bin/bash
# Don't want to interpret variables whilst reading from the HEREDOC - thus the single quotes... potto
cat << 'EOF' >> /Applications/Slack.app/Contents/Resources/app.asar.unpacked/src/static/ssb-interop.js
document.addEventListener('DOMContentLoaded', function() {
$.ajax({
url: 'https://cdn.rawgit.com/laCour/slack-night-mode/master/css/raw/black.css',
success: function(css) {
$("<style></style>").appendTo('head').html(css);
}
@danielandersson
danielandersson / latex_osx.md
Created July 6, 2017 13:09
Thesis LaTeX Guide for OSX

Thesis LaTeX Guide for OSX

Requirements

# Install Basic TeX
brew cask install basictex

# Install Skim (awesome pdf viewer with autoreload)
brew cask install skim
@danielandersson
danielandersson / osx_install.sh
Created June 6, 2017 16:59 — forked from t-io/osx_install.sh
Install most of my Apps with homebrew & cask
#!/bin/sh
echo Install all AppStore Apps at first!
# no solution to automate AppStore installs
read -p "Press any key to continue... " -n1 -s
echo '\n'
echo Install and Set San Francisco as System Font
ruby -e "$(curl -fsSL https://raw.github.com/wellsriley/YosemiteSanFranciscoFont/master/install)"
echo Install Homebrew, Postgres, wget and cask
ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
@danielandersson
danielandersson / twitterfindname.go
Created May 30, 2016 11:36 — forked from christianchristensen/twitterfindname.go
Check all 2 letter twitter usernames for availability
package twitterfindname
import (
"encoding/json"
"fmt"
"io/ioutil"
"net/http"
"strings"
)
We couldn’t find that file to show.
.shadow-stuff {
-moz-border-radius: 0% 0% 100% 100% / 0% 0% 8px 8px;
-webkit-border-radius: 0% 0% 100% 100% / 0% 0% 8px 8px;
border-radius: 0% 0% 100% 100% / 0% 0% 8px 8px;
-moz-box-shadow: rgba(0,0,0,.30) 0 2px 3px;
-webkit-box-shadow: rgba(0,0,0,.30) 0 2px 3px;
box-shadow: rgba(0,0,0,.30) 0 2px 3px;
}
.container {