Skip to content

Instantly share code, notes, and snippets.

View clarkwinkelmann's full-sized avatar

Clark Winkelmann clarkwinkelmann

View GitHub Profile
<link href="../topeka-elements/category-icons.html" rel="import">
<link href="../core-icon/core-icon.html" rel="import">
<polymer-element name="my-element">
<template>
<style>
#design_host {
position: absolute;
width: 100%;
@clarkwinkelmann
clarkwinkelmann / server.php
Created March 30, 2015 13:45
PHP Wrapper for arp-scan command
<?php
// Must be run as root
$arp_scan = shell_exec('arp-scan --interface=eth0 --localnet');
$arp_scan = explode("\n", $arp_scan);
$matches;
foreach($arp_scan as $scan) {
@clarkwinkelmann
clarkwinkelmann / Blender.desktop
Created April 2, 2015 18:54
Blender desktop file, compatible with "open with..." and prevents duplication of icon in launcher
[Desktop Entry]
Name=Blender
Comment=To place in /usr/share/applications/ or $HOME/.local/share/applications/
Exec=/PATH/TO/BLENDER/FOLDER/blender %U
Terminal=false
Type=Application
Encoding=UTF-8
Icon=/PATH/TO/BLENDER/FOLDER/icons/scalable/apps/blender.svg
StartupNotify=true
StartupWMClass=Blender
@clarkwinkelmann
clarkwinkelmann / regexp
Created April 3, 2015 14:24
Remove plural forms of words in a list (sorted alphabetically)
Search: \r\n(.+)\r\n\1S
Replace with: \r\n\1
@clarkwinkelmann
clarkwinkelmann / timelapse.sh
Last active August 29, 2015 14:21
Timelapse
~/Téléchargements/ffmpeg-2.4.3-64bit-static/ffmpeg -f image2 -pattern_type glob -i "*.JPG" -r 60 -vcodec libx264 timelapse.mp4
@clarkwinkelmann
clarkwinkelmann / test.sh
Created June 19, 2015 14:01
Try all images from the directory as html backgrounds
#!/bin/bash
echo "<h1>BACKGROUND TEST</h1>" > test.html
for f in *.JPG; do echo "<p>$f</p><div style=\"background-image: url($f); height: 500px;\"></div>" >> test.html; done
@clarkwinkelmann
clarkwinkelmann / xorg.conf
Last active December 20, 2017 05:49
Headless server with 4x NVIDIA GeForce allowing remote desktop on Display:0 and overclocking via nvidia-settings
# Links
# - http://ubuntuforums.org/showthread.php?t=1832456
# - https://foldingforum.org/viewtopic.php?f=16&t=25075
Section "ServerLayout"
Identifier "Layout0"
Screen 0 "Screen0" 0 0
Screen 1 "Screen1" 1280 0
Screen 2 "Screen2" 1280 0
Screen 3 "Screen3" 1280 0
@clarkwinkelmann
clarkwinkelmann / TetrisBot.c
Created September 7, 2015 16:52
The original TetrisBot for CEEBOT
extern void object::Tetris()
{
/*
######### ####### ######### ####### ### #######
######### ####### ######### ######## ### ########
### ### ### ### ### ### ####
### ##### ### ######## ### ######
### ### ### ####### ### ####
### ####### ### ### ### ### ########
### ####### ### ### ### ### #######
@clarkwinkelmann
clarkwinkelmann / keybase.md
Created September 23, 2015 21:31
Keybase, here I am

Keybase proof

I hereby claim:

  • I am clarkwinkelmann on github.
  • I am clarkwinkelmann (https://keybase.io/clarkwinkelmann) on keybase.
  • I have a public key whose fingerprint is C02A 650D AD85 C824 92A0 FBF7 4FAB 7FF6 E9B7 2E9D

To claim this, I am signing this object:

@clarkwinkelmann
clarkwinkelmann / KernelPurge.md
Created November 7, 2015 12:16
How to purge old linux images

Purge old Linux images

What's taking place on /boot ?

ls -A -S -l /boot/

Installed kernel packages:

dpkg -l linux-image-* | grep ^ii