Skip to content

Instantly share code, notes, and snippets.

View dgavedissian's full-sized avatar

David Avedissian dgavedissian

  • GitHub Staff
  • United Kingdom
View GitHub Profile
@jassinm
jassinm / .ycm_extra_conf.py
Last active April 7, 2020 04:05
c++11 youcompleteme
import os
import ycm_core
from clang_helpers import PrepareClangFlags
# Set this to the absolute path to the folder (NOT the file!) containing the
# compile_commands.json file to use that instead of 'flags'. See here for
# more details: http://clang.llvm.org/docs/JSONCompilationDatabase.html
# Most projects will NOT need to set this to anything; you can just change the
# 'flags' list of compilation flags. Notice that YCM itself uses that approach.
compilation_database_folder = ''
@foozmeat
foozmeat / timed_capture.sh
Last active June 3, 2021 20:16
A bash script to take screenshot every 60 seconds and then add a timestamp to it. Useful for creating time-lapse videos.
#!/bin/sh
# Help from http://dptnt.com/2009/08/add-date-time-stamp-to-jpeg-photos-using-free-software-mac-linux-nix-edition/
# install the LCD font - http://www.dafont.com/digital-7.font
# install imagemagick via homebrew
# Install Time Lapse Assembler to make the movie - http://www.dayofthenewdan.com/projects/time-lapse-assembler-1/
set -e
font="$HOME/Library/Fonts/digital-7 (mono).ttf"
outputfolder="$HOME/Downloads/caps"