Skip to content

Instantly share code, notes, and snippets.

View hazelybell's full-sized avatar

Hazel Victoria Campbell hazelybell

View GitHub Profile
@hazelybell
hazelybell / gpu_setup.md
Last active April 10, 2019 21:14 — forked from awwong1/gpu_setup.md
Calzone Deep Learning Setup

Calzone Deep Learning Setup

  • Ubuntu 18.10
  • NVIDIA Titan X
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 18.10
### Keybase proof
I hereby claim:
* I am hazelybell on github.
* I am orezpraw (https://keybase.io/orezpraw) on keybase.
* I have a public key ASBEQhhNy4TN9zxa_2wiEr7fJsz9TXKW6PYQ6Kspj8Dm-Ao
To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am orezpraw on github.
  • I am orezpraw (https://keybase.io/orezpraw) on keybase.
  • I have a public key ASBEQhhNy4TN9zxa_2wiEr7fJsz9TXKW6PYQ6Kspj8Dm-Ao

To claim this, I am signing this object:

INRES="1920x1080" # input resolution
OUTRES="1920x1080" # output resolution
FPS="15" # target FPS
GOP="30" # i-frame interval, should be double of FPS,
GOPMIN="15" # min i-frame interval, should be equal to fps,
THREADS="6" # max 6
CBR="800k" # constant bitrate (should be between 1000k - 3000k)
QUALITY="faster" # one of the many FFMPEG preset
AUDIO_RATE="44100"
STREAM_KEY="live_XXXXXXXX_YYYYYYYYYYYYYYYYYYYY" # use the terminal command Streaming streamkeyhere to stream your video to twitch or justin
int main(int argc, char ** argv) {
(void) argc;
(void) argv;
int a[2] = {1, 3};
int * p = &(a[0]);
*(++p) = (*p)++;
return 10 * a[0] + a[1];
}
$(NAME).pdf: *.cls $(NAME).tex *.bib $(FIGS)
$(LATEX) $(LATEX_OPTS) $(NAME).tex
@if(grep "There were undefined references" $(NAME).log > /dev/null);\
then \
$(BIBTEX) $(NAME); \
$(LATEX) $(LATEX_OPTS) $(NAME).tex; \
fi
@if(grep "Rerun" $(NAME).log > /dev/null);\
then \
$(LATEX) $(LATEX_OPTS) $(NAME).tex;\
def inlineCallbacks(f):
from functools import wraps
@wraps(f)
def _(*args, **kwargs):
gen = f(*args, **kwargs)
stop_running = [False]
def cancelled(df_):
assert df_ is df
stop_running[0] = True
if currently_waiting_on:
smartctl 5.43 2012-06-05 r3561 [x86_64-linux-3.8.3-bubbles0] (local build)
Copyright (C) 2002-12 by Bruce Allen, http://smartmontools.sourceforge.net
=== START OF READ SMART DATA SECTION ===
SMART Attributes Data Structure revision number: 10
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE UPDATED WHEN_FAILED RAW_VALUE
1 Raw_Read_Error_Rate 0x000f 117 099 006 Pre-fail Always - 146585664
3 Spin_Up_Time 0x0003 098 098 000 Pre-fail Always - 0
4 Start_Stop_Count 0x0032 098 098 020 Old_age Always - 2822
@hazelybell
hazelybell / gist:5664740
Created May 28, 2013 18:03
GRAPH VIZZZZZ
digraph G {
compound=true;
subgraph cluster_l1l2 {
style=filled;
shape=box;
fillcolor=lightgrey;
compound=true;
label="l1l2.F90";
start [shape=circle, style=filled, fillcolor=white, label="BEGIN PROGRAM"];
end [shape=circle, style=filled, fillcolor=white, label="END PROGRAM"];
@hazelybell
hazelybell / gist:5473593
Created April 27, 2013 15:59
MC Crash log
---- Minecraft Crash Report ----
// My bad.
Time: 4/26/13 9:21 PM
Description: Exception in server tick loop
yh: The save is being accessed from another location, aborting
at ahv.c(SaveHandler.java:113)
at yc.D(World.java:4594)
at in.a(WorldServer.java:1096)