Skip to content

Instantly share code, notes, and snippets.

View xanecs's full-sized avatar

Leon Kamm xanecs

View GitHub Profile

Keybase proof

I hereby claim:

  • I am xanecs on github.
  • I am xanecs (https://keybase.io/xanecs) on keybase.
  • I have a public key whose fingerprint is 5951 432E F4AC E6D3 F79C 9618 410B 8182 C1C2 14AC

To claim this, I am signing this object:

@xanecs
xanecs / _elementaryOS_on_C720.md
Last active July 12, 2021 17:02
elementaryOS Loki on Acer Chromebook C720

This guide will show you how to install and configure elementaryOS Loki on your Acer C720 or C720p. I'm assuming you have installed some sort of Linux on your Chromebook before and already know your way around in Developer Mode. If not, read and follow https://www.chromium.org/chromium-os/developer-information-for-chrome-os-devices/acer-c720-chromebook sections "Developer Mode" and "Legacy Boot".

Installation

Nothing special here: Download the ISO from https://elementary.io (put in $0 as an amount to download the ISO for free, although you should consider donating)

@xanecs
xanecs / gist:b20f9f32dd2cd3028aba
Created February 20, 2016 15:36
C Number guessing game
#include <stdio.h>
#include <stdlib.h>
int main () {
srand(time(NULL));
int randNum = rand() % 9999;
while (1) {
printf("Guess a number: ");
int guessNum;
scanf("%d", &guessNum);
execute pathogen#infect()
syntax on
filetype plugin indent on
set autoindent
let g:airline_powerline_fonts = 1
let g:airline#extensions#tabline#enabled = 1
nnoremap <C-i> :bnext<CR>
nnoremap <C-u> :bprev<CR>
@xanecs
xanecs / wifiprox.py
Created February 5, 2016 18:10
Read out wifi signal strength of client devices from a monitor-mode interface
#! /usr/bin/env/python
from scapy.all import *
import binascii
def PacketHandler(pkt):
if pkt.haslayer(Dot11):
if pkt.addr2 == 'cc:c3:xx:xx:xx:xx':
print(-(256-int.from_bytes(pkt.notdecoded[-4:-3], byteorder='big')))

Keybase proof

I hereby claim:

  • I am xanecs on github.
  • I am xanecs (https://keybase.io/xanecs) on keybase.
  • I have a public key whose fingerprint is BF44 BF36 AC3B 9BCE 22E9 1026 D780 181C 7B5E 8A1F

To claim this, I am signing this object:

@xanecs
xanecs / SassMeister-input-HTML.html
Created September 10, 2014 13:41
Generated by SassMeister.com.
<aside class="sidebar">
<h3>Menu</h3>
</aside>
<div class="content" style="background-image: url(http://placekitten.com/1920/384);">
<nav class="content-top">
<h3>Leonadi</h3>
</nav>
</div>
@xanecs
xanecs / SassMeister-input-HTML.html
Created September 9, 2014 23:35
Generated by SassMeister.com.
<aside class="sidebar">
<h3>Menu</h3>
</aside>
<div class="content" style="background-image: url(http://placekitten.com/1920/384);">
<nav class="content-top">
<h3>Leonadi</h3>
</nav>
</div>