This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# | |
# Author: Stefan Buck | |
# https://gist.github.com/stefanbuck/ce788fee19ab6eb0b4447a85fc99f447 | |
# | |
# | |
# This script accepts the following parameters: | |
# | |
# * owner | |
# * repo |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PANDOC=/usr/local/bin/pandoc | |
OPTIONS=-s -S --toc --toc-depth=2 -f markdown --latex-engine=xelatex \ | |
-V mainfont="Palatino" -V sansfont="Helvetica" -V monofont="Menlo" -V fontsize=12pt -V urlcolor=blue \ | |
-V geometry:a4paper -V geometry:margin=2cm \ | |
--highlight-style=tango | |
DOCS=user-manual.pdf installation.pdf | |
%.pdf : %.md |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rm -f database-diagram.pdf | |
# Use PyCharm CE JDK | |
JDK="/Applications/PyCharm CE.app/Contents/jdk/Contents/Home/jre/bin/java" | |
"$JDK" -classpath $(echo ../../_schemacrawler/lib/*.jar | tr ' ' ':') \ | |
schemacrawler.Main \ | |
-server=sqlite \ | |
-database=/Volumes/PRO/c/latenitesoft/socialbotplatform/data/social_bots_deve.db \ | |
-password= \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# http://stackoverflow.com/a/4399246/143097 | |
import unittest | |
import sys | |
import pdb | |
import functools | |
import traceback | |
def debug_on(*exceptions): | |
if not exceptions: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# | |
# Move a file to ~/.Trash safely in tig status view. | |
# | |
# Copy it somewhere in your PATH and add to ~/.tigrc: | |
# | |
# bind status <Backspace> !trash.sh "%(file)" | |
# | |
path=$1 && shift | |
date_prefix=$(date +'%Y%m%d.%H%M%S') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Configure eth0 | |
# | |
# vi /etc/sysconfig/network-scripts/ifcfg-eth0 | |
DEVICE="eth0" | |
NM_CONTROLLED="yes" | |
ONBOOT=yes | |
HWADDR=A4:BA:DB:37:F1:04 | |
TYPE=Ethernet | |
BOOTPROTO=static |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# From https://volumio.org/forum/cifs-trouble-mounting-timecapsule-containing-music-t741.html | |
ssh -l volumio volumioip | |
sudo mkdir /mnt/NAS/Music | |
sudo chmod 777 /mnt/NAS | |
sudo chmod 777 /mnt/NAS/Music | |
# --> You might need to install cifs utils: | |
# if yes then use the following commands: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# http://elinux.org/RPiconfig#Video_mode_options | |
hdmi_force_hotplug=1 # Force HDMI even if unplugged or powered off | |
# -------------------------- | |
# HDMI-to-VGA projector | |
hdmi_group=1 # CEA | |
hdmi_mode=4 # 720p |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"editor.fontFamily": "SFMono-Regular", | |
"editor.fontSize": 12, | |
"editor.lineHeight": 16 | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Important: you want to make a copy of Xcode 8 to be able to use it untainted for app submission, etc. | |
# Resign Xcode with your own signature | |
# https://github.com/XVimProject/XVim/blob/master/INSTALL_Xcode8.md | |
sudo codesign -f -s "Developer ID Application: your-developer-name" /Applications/Xcode.app | |
# Build the plugin | |
cd /path/to/XVim | |
# This updates DVTPlugInCompatibilityUUID and build and install the plugin | |
make |