Skip to content

Instantly share code, notes, and snippets.

Mike Acton macton

Block or report user

Report or block macton

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
macton / cpuid_features.c
Last active Aug 20, 2019
Print cpuid features
View cpuid_features.c
// See: Intel Intrinsics Guide
// See: CPUID Explorer
// See: Playing with cpuid
// See: MSDN __cpuid, __cpuidex
// See: Notes on MMX/SSE and a searchable table of intrinsics.
// See: AMD CPUID Specification
#if defined(__GNUC__)
#include <stdint.h>
#include <cpuid.h>
macton / 00_webapp_tips.txt
Last active Jul 18, 2019
random webapp tips
View 00_webapp_tips.txt
Cross-domain file load in jsfiddle
Using jquery.treeview + angular.js
- Dynamically loading json description of tree
- Building DOM with angular
- Calling $.treeview after DOM contructed.
500 items:
5000 items:
View Setup Raspberry Pi 3.txt
Enabling SSH
Connecting to WPA2-Enterprise Wifi Network
How to Mount an External Hard Drive on the Raspberry Pi
(chroot) Install common stuff
View vim_tips.txt
Find & Replace non-printable characters in vim
1) Find hexa value of that non-printable character. Move your cursor to that character and press ‘ga’.
2) In escape mode, execute this ‘:%s/\%x85/\r/gc’. In my case, hexadecimal value of that non-printable character is 85. I replaced that with ‘\r’.
View mingw-clang-build
Installation steps for getting a functional Clang++ build running on Windows 8 and MinGW.
1. Assumes mingw and gcc installed.
b. Add c:\mingw\bin to PATH
View style.css
// Simple, readable style.css template
body {
font-family: "Georgia", "Verdana", "Lucida Grande", sans-serif;
margin: 20px auto;
width: 95%;
font-size: 70%;
line-height: 1.4;
macton / 00 win8_tips.txt
Last active Dec 23, 2016
Windows 8 Tips
View 00 win8_tips.txt
Tips for Windows 8
View git_cheatsheet.txt
Git cheatsheets
Git concepts
Repository - Collection of commit history of files being managed (not directories)
Working directory - Files in local file system (may or may not be tracked)
macton / smbmount
Last active Oct 28, 2016
smb mount linux
View smbmount
$ sudo apt-get install smbclient
$ sudo apt-get install cifs-utils
$ sudo mkdir /mnt/something
$ sudo mount -t cifs //host/something -o,password=psswd /mnt/something
macton / chromebook_tips.txt
Last active Apr 4, 2016
Random tidbits for Chromebook
View chromebook_tips.txt
Turn off power down on time out
Turn off power down on lid close
$ sudo stop powerd
Open port 22 for ssh
$ sudo iptables -A INPUT -p tcp --dport ssh -j ACCEPT
Set hostname
$ sudo hostname <new-hostname>
You can’t perform that action at this time.