Skip to content

Instantly share code, notes, and snippets.

@jstrassburg
jstrassburg / lvm.md
Last active April 13, 2017 17:52
Linux Logical Volume Management [LVM]

Linux Logical Volume Management [LVM]

Source: https://www.howtoforge.com/linux_lvm

LVM Layout

  • /dev/sdX or /dev/hdX are physical HDDs (SCSI or SATA)
  • /dev/vdX are virtual HDDs (virtualization aware driver)
  • /dev/sda1 would be the first partition on the /dev/sda disk
@lukas-h
lukas-h / license-badges.md
Last active February 28, 2025 08:23
Markdown License Badges for your Project

Markdown License badges

Collection of License badges for your Project's README file.
This list includes the most common open source and open data licenses.
Easily copy and paste the code under the badges into your Markdown files.

Notes

  • The badges do not fully replace the license informations for your projects, they are only emblems for the README, that the user can see the License at first glance.

Translations: (No guarantee that the translations are up-to-date)

#!/bin/bash
# GUI-related packages
pkgs="
xserver-xorg-video-fbdev
xserver-xorg xinit
gstreamer1.0-x gstreamer1.0-omx gstreamer1.0-plugins-base
gstreamer1.0-plugins-good gstreamer1.0-plugins-bad gstreamer1.0-alsa
gstreamer1.0-libav
epiphany-browser
Set-ExplorerOptions -showHidenFilesFoldersDrives -showProtectedOSFiles -showFileExtensions
Enable-RemoteDesktop
cinst 1password
cinst 7zip
cinst 7zip.install
cinst AdobeAIR
cinst adobereader
cinst Atom
cinst markdownpad2
@terrywbrady
terrywbrady / GoogleSpreadsheet.html
Last active February 28, 2025 09:00
Sample HTML/JS to parse a Google Spreadsheet
<!doctype html>
<html>
<head>
<script src="//ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<script type="text/javascript">
var spData = null;
function doData(json) {
spData = json.feed.entry;
}
using System;
using System.Collections.Generic;
using System.Linq.Expressions;
using System.Reflection;
namespace Bleroy.Helpers {
public static class NotNull {
public static TProp Get<TSource, TProp>(this TSource source, Expression<Func<TSource, TProp>> property) where TSource : class {
if (source == null) return default(TProp);
var current = property.Body;
@bradwilson
bradwilson / gist:9276064
Created February 28, 2014 17:53
Using Expression<T> with data theories for better output display in xUnit.net
public static IEnumerable<object[]> ExpirationMethods
{
get
{
return new TheoryDataSet<Expression<Action<Cache>>>
{
cache => cache.Clock.UtcNow.Returns(BaseTime + cache.Duration),
cache => cache.Expire()
};
}
@anami
anami / example.erb
Created May 19, 2011 15:31
Google Maps API V3 extras for Mapstraction
<!DOCTYPE html>
<html>
<head>
<title>Smapping!</title>
<link rel="stylesheet" type="text/css" href="/stylesheet.css"></link>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"></meta>
<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script>
<script type="text/javascript" src="/scripts/jquery-1.5.1.min.js"></script>
<script type="text/javascript" src="/scripts/mxn/mxn.js?(googlev3,[geocoder],[extras])"></script>
<script type="text/javascript">