Skip to content

Instantly share code, notes, and snippets.

@christopherlai
christopherlai / Dockerfile
Created Sep 16, 2019
Example Dockerfile for Elixir 1.9.1 umbrella project
View Dockerfile
FROM elixir:1.9.1-alpine as build
ENV MIX_ENV=prod
WORKDIR /build
RUN apk add --no-cache build-base nodejs yarn && \
mix local.hex --force && \
mix local.rebar --force
@ethack
ethack / TypeClipboard.md
Last active Aug 6, 2020
Scripts that simulate typing the clipboard contents. Useful when pasting is not allowed.
View TypeClipboard.md

It "types" the contents of the clipboard.

Why can't you just paste the contents you ask? Sometimes pasting just doesn't work.

  • One example is in system password fields on OSX.
  • Sometimes you're working in a VM and the clipboard isn't shared.
  • Other times you're working via Remote Desktop and again, the clipboard doesn't work in password boxes such as the system login prompts.
  • Connected via RDP and clipboard sharing is disabled and so is mounting of local drives. If the system doesn't have internet access there's no easy way to get things like payloads or Powershell scripts onto it... until now.

Windows

The Windows version is written in AutoHotKey and easily compiles to an executable. It's a single line script that maps Ctrl-Shift-V to type the clipboard.

@danopia
danopia / README.md
Last active Aug 29, 2015
Bower components / asset server for Meteor that avoids the intense hot push delays
View README.md

This route mitigates meteor #3373.

If you aren't experiencing that issue, you don't need this coffee.

To use

$ meteor add patte:mime-npm # and iron:router if you don't use it yet

Also, move your bower folder to .bower_components, right in the root/top of your project (or change the path). Then copy in the assets.coffee file below.

View meteor.cheatsheet.coffee
# METEOR CORE:
Anywhere: Meteor.isClient
Anywhere: Meteor.isServer
Anywhere: Meteor.startup(func)
Anywhere: Meteor.absoluteUrl([path], [options])
Anywhere: Meteor.settings
Anywhere: Meteor.release
@christophermanning
christophermanning / README.mkd
Last active Jul 21, 2020
Hamiltonian Graph Builder
View README.mkd
<style type="text/css">p {text-align:center;width: auto}</style>

Created by Christopher Manning

Gallery

Axle Eight Fibbobaci Florets [![Star]

@huyng
huyng / matplotlibrc
Created Feb 8, 2011
my default matplotlib settings
View matplotlibrc
### MATPLOTLIBRC FORMAT
# This is a sample matplotlib configuration file - you can find a copy
# of it on your system in
# site-packages/matplotlib/mpl-data/matplotlibrc. If you edit it
# there, please note that it will be overridden in your next install.
# If you want to keep a permanent local copy that will not be
# over-written, place it in HOME/.matplotlib/matplotlibrc (unix/linux
# like systems) and C:\Documents and Settings\yourname\.matplotlib
# (win32 systems).
You can’t perform that action at this time.