Skip to content

Instantly share code, notes, and snippets.

View kaipyroami's full-sized avatar
🦆

Kyle Crockett kaipyroami

🦆
View GitHub Profile
@mhkeller
mhkeller / gist:3796135
Created September 27, 2012 19:58
Stacked bar chart in HTML/CSS
All of the google results for this are outdated / don't work. Here's a simple fiddle that stakes div relative to the bottom of its container div.
http://jsfiddle.net/9pXpU/
<div class="colWrapper">
<div class="barContainer">
<div class="bar" style="background-color:#b4cde2;"></div>
<div class="bar" style="background-color:#7ca7cc;"></div>
<div class="bar" style="background-color:#6094c1;"></div>
Clone and compile the Linux kernel
==================================
# Use some extra directory for all the components needed
cd c2c/
# Clone the repository (this will take a *few minutes*)
c2c$ git clone https://github.com/CTU-IIG/802.11p-linux.git
c2c$ cd 802.11p-linux
# Checkout particular branch
@chrismdp
chrismdp / s3.sh
Last active March 5, 2024 12:57
Uploading to S3 in 18 lines of Shell (used to upload builds for http://soltrader.net)
# You don't need Fog in Ruby or some other library to upload to S3 -- shell works perfectly fine
# This is how I upload my new Sol Trader builds (http://soltrader.net)
# Based on a modified script from here: http://tmont.com/blargh/2014/1/uploading-to-s3-in-bash
S3KEY="my aws key"
S3SECRET="my aws secret" # pass these in
function putS3
{
path=$1
@drblue
drblue / fix_onedrive.sh
Last active April 16, 2024 21:54
Fix OneDrive for Mac CPU usage
#!/bin/bash
## Fix OneDrive for Mac CPU usage
##
## Seems this is still a problem 5 years later after I created this little gist.
## I have long since stopped using OneDrive (luckily), but according to
## comments below, I have added the new path for OfficeFileCache for macOS
## Mojave (10.14) and Catalina (10.15).
## Run this on macOS Mojave (10.14) and Catalina (10.15)
find ~/Library/Containers/ -type d -name OfficeFileCache -exec rm -r {} +
@darrenpmeyer
darrenpmeyer / open-vm-tools-vmware-ubuntu-sharing.md
Last active June 18, 2024 08:16
open-vm-tools and VMWare Shared Folders for Ubuntu guests

(NB: adapted from this Ask Ubuntu thread -- tested to work on Ubuntu 16.04 LTS through Ubuntu 22.04 LTS (Jammy).

Unlike using VMWare Tools to enable Linux guest capabilities, the open-vm-tools package doesn't auto-mount shared VMWare folders. This can be frustrating in various ways, but there's an easy fix.

TL;DR

Install open-vm-tools and run:

sudo mount -t fuse.vmhgfs-fuse .host:/ /mnt/hgfs -o allow_other
@ericboehs
ericboehs / rpi
Last active April 1, 2022 23:10
Raspberry Pi Locator
#! /usr/bin/env ruby
require 'rss'
require 'open-uri'
SLEEP = 30
url = 'https://rpilocator.com/feed.rss'
db = nil
# Print cpu/memory usage in bytes when receiving SIGINFO
@ericboehs
ericboehs / slack-noti
Created March 25, 2022 01:42
slack-notify
#! /usr/bin/env bash
curl -s -X POST -H 'Content-type: application/json' --data "{\"text\":\"${1:-Done}\"}" $BOEHS_SLACK_NOTI_HOOK
@orther
orther / disable-tmobile-5g-home-internet-rotuer-wifi.md
Last active January 11, 2024 15:53
JS Code To Disable WiFi for T-Mobile 5G Home Internet Router

This script can be copied into the browser console and used to disable wifi on the T-Mobile 5G Home Internet router. The web interface for the router doesn't allow you to disable it.

Steps

  1. Go to http://192.168.12.1
  2. Open dev console (on mac [cmd]+[opt]+i)
  3. Copy the code from the below JS file and with the password value updated to be your actual password and hit enter
  4. Call the code by typing tmobileHomeInternetDisableWifi() and hitting enter