This gist's comment stream is a collection of webdev apps for OS X. Feel free to add links to apps you like, just make sure you add some context to what it does — either from the creator's website or your own thoughts.
— Erik
| #/bin/sh | |
| RESTART="/etc/init.d/networking restart" | |
| FILEPATH="/etc/network/interfaces" | |
| BACKUPPATH="$FILEPATH.BAK" | |
| RESET_TIME="now + ${1:-5min}" | |
| sudo cp -fp $FILEPATH $BACKUPPATH && \ | |
| sudoedit $FILEPATH && \ | |
| sudo bash -c "echo 'cp -fp $BACKUPPATH $FILEPATH && $RESTART' | at $RESET_TIME" && \ |
| pv ubuntu-14.10-desktop-amd64.img.dmg | sudo dd of=/dev/rdisk3 bs=1m | |
| pv ~/Desktop/linuxmint.iso | sudo dd of=/dev/sdx oflag=direct bs=1048576 |
| from PIL import ImageGrab | |
| import time | |
| import smtplib | |
| import os | |
| import threading | |
| import email | |
| from email.mime.multipart import MIMEMultipart | |
| from email.mime.base import MIMEBase | |
| from email.mime.text import MIMEText | |
| from email.utils import COMMASPACE, formatdate |
| package com.example.miniscout.client; | |
| import org.eclipse.ui.plugin.AbstractUIPlugin; | |
| import org.osgi.framework.BundleContext; | |
| import com.example.miniscout.client.services.LocalDatabaseService; | |
| import com.example.miniscout.shared.IDatabaseService; | |
| public class Activator extends AbstractUIPlugin { |
| cat | grep foo | |
| { cat aabsdf.xx 2>&1 ; } 2>/dev/null | |
| # http://stackoverflow.com/questions/2342826/how-to-pipe-stderr-and-not-stdout?rq=1 | |
| # http://www.gnu.org/software/bash/manual/bashref.html#Redirections | |
| # http://mywiki.wooledge.org/Redirection |
| <persistence xmlns="http://java.sun.com/xml/ns/persistence" | |
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
| xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd" | |
| version="2.0"> | |
| <persistence-unit name="org.hibernate.tutorial.jpa" transaction-type="RESOURCE_LOCAL"> | |
| <description> | |
| Persistence unit for the JPA tutorial of the Hibernate Getting Started Guide | |
| </description> | |
| <provider>org.hibernate.ejb.HibernatePersistence</provider> |