start new:
tmux
start new with session name:
tmux new -s myname
#!/bin/bash | |
echo "Generating an SSL private key to sign your certificate..." | |
openssl genrsa -des3 -out myssl.key 1024 | |
echo "Generating a Certificate Signing Request..." | |
openssl req -new -key myssl.key -out myssl.csr | |
echo "Removing passphrase from key (for nginx)..." | |
cp myssl.key myssl.key.org | |
openssl rsa -in myssl.key.org -out myssl.key |
# Configuration file for Bumblebee. Values should **not** be put between quotes | |
## Server options. Any change made in this section will need a server restart | |
# to take effect. | |
[bumblebeed] | |
# The secondary Xorg server DISPLAY number | |
VirtualDisplay=:8 | |
# Should the unused Xorg server be kept running? Set this to true if waiting | |
# for X to be ready is too long and don't need power management at all. | |
KeepUnusedXServer=true |
When I use git, I'm scared I'll break something. I just talked to an open source celebrity who has used git for 3-4 years who avoids using the CLI because he's afraid he'll break something, and uses Tower when possible. I recently had a client accidentally delete their work because they didn't understand git. My fear of breaking something is well-founded.
You can't put a price on the confidence that source control is supposed to give you. That confidence suffers when people are afraid of causing irreparable damage during normal use.
This article lists a few ideas on what git can do to improve.
;SMBDIS.ASM - A COMPREHENSIVE SUPER MARIO BROS. DISASSEMBLY | |
;by doppelganger (doppelheathen@gmail.com) | |
;This file is provided for your own use as-is. It will require the character rom data | |
;and an iNES file header to get it to work. | |
;There are so many people I have to thank for this, that taking all the credit for | |
;myself would be an unforgivable act of arrogance. Without their help this would | |
;probably not be possible. So I thank all the peeps in the nesdev scene whose insight into | |
;the 6502 and the NES helped me learn how it works (you guys know who you are, there's no |
[mergetool] | |
prompt = false | |
keepBackup = false | |
keepTemporaries = false | |
[merge] | |
tool = winmerge | |
[mergetool "winmerge"] | |
name = WinMerge |
The plan is to create a pair of executables (ngrok
and ngrokd
) that are connected with a self-signed SSL cert. Since the client and server executables are paired, you won't be able to use any other ngrok
to connect to this ngrokd
, and vice versa.
Add two DNS records: one for the base domain and one for the wildcard domain. For example, if your base domain is domain.com
, you'll need a record for that and for *.domain.com
.
{ Turbo Sort } | |
{ Copyright (c) 1985,90 by Borland International, Inc. } | |
program qsort; | |
{$R-,S-} | |
uses Crt; | |
{ This program demonstrates the quicksort algorithm, which } | |
{ provides an extremely efficient method of sorting arrays in } | |
{ memory. The program generates a list of 1000 random numbers } |
module type Base = sig | |
type ('x,'a) m | |
val unit : 'a -> ('x,'a) m | |
val bind : ('x,'a) m -> ('a -> ('x,'b) m) -> ('x,'b) m | |
end | |
module type BaseT = sig | |
module W : Base | |
type ('x,'a) m | |
val lift : ('x,'a) W.m -> ('x,'a) m |
let read_int _ = Scanf.bscanf Scanf.Scanning.stdib " %d" (fun x -> x) | |
let flip f x y = f y x | |
let euler_tour n es root = | |
let dfn1 = Array.make n 0 | |
and dfn2 = Array.make n 0 in | |
let rec dfs i x = | |
dfn1.(x) <- i; | |
dfn2.(x) <- List.fold_left dfs (i+1) es.(x); | |
dfn2.(x) |