Skip to content

Instantly share code, notes, and snippets.

@sliekens
sliekens / target.xml
Created January 25, 2016 08:28
A list of all <Target /> tags that ship with MSBuild / Visual Studio
C:\Program Files (x86)\MSBuild\12.0\Bin\Microsoft.Common.CurrentVersion.targets
<Target Name="_CheckForInvalidConfigurationAndPlatform"></Target>
<Target Name="Build" Condition=" '$(_InvalidConfigurationWarning)' != 'true' " DependsOnTargets="$(BuildDependsOn)" Returns="$(TargetPath)" />
<Target Name="BeforeBuild" />
<Target Name="AfterBuild" />
<Target Name="CoreBuild" DependsOnTargets="$(CoreBuildDependsOn)"></Target>
<Target Name="Rebuild" Condition=" '$(_InvalidConfigurationWarning)' != 'true' " DependsOnTargets="$(RebuildDependsOn)" Returns="$(TargetPath)" />
<Target Name="BeforeRebuild" />
<Target Name="AfterRebuild" />
<Target Name="BuildGenerateSources" DependsOnTargets="BuildGenerateSourcesTraverse;$(BuildGenerateSourcesAction)" />
@icaromag
icaromag / install-ivona-sapi-tts.sh
Last active November 19, 2024 18:18
Install the Ivona / SAPI Text To Speech solution
# set the arch [IM]
sudo dpkg --add-architecture i386
# add the repos [IM]
sudo add-apt-repository -y ppa:wine/wine-builds
sudo add-apt-repository -y ppa:ethanak/milena
# update the deps [IM]
sudo apt-get update
sudo apt-get -y upgrade
@morgangiraud
morgangiraud / nvidia-reinstall.sh
Last active December 11, 2020 15:48
Script to reinstall manually nvidia drivers,cuda 9.0 and cudnn 7.1 on Ubuntu 16.04
# Remove anything linked to nvidia
sudo apt-get remove --purge nvidia*
sudo apt-get autoremove
# Search for your driver
apt search nvidia
# Select one driver (the last one is a decent choice)
sudo apt install nvidia-370
@roblogic
roblogic / msys2-setup.md
Last active March 5, 2025 01:29
MSYS2 first time setup
sudo dpkg --add-architecture i386
sudo add-apt-repository -y ppa:wine/wine-builds
sudo add-apt-repository -y ppa:ethanak/milena
sudo apt-get update
sudo apt-get -y upgrade
sudo apt-get install -y --install-recommends winehq-devel
sudo apt-get install -y sapi4linux python-pyspda python-sapilektor libsapilektor-utils
#download das vozes
#wget http://150.165.205.9/players/ivona/ivona-full.tar.gz
@diegoferigo
diegoferigo / .bashr_loc2.sh
Last active November 30, 2018 10:42
How-To YARP + iCub: random notes
# Disable echo ^C when Ctrl+C is pressed
stty -echoctl
# Export variables
export EDITOR="nano" # Set the default editor
shopt -s autocd # Avoid using cd to change directory. Simply: ~# /etc
shopt -s cdspell # Basilar typos autocorrect
shopt -s dirspell # Dir names spelling correction
shopt -s cmdhist # Inline multiline commands
@teocci
teocci / compile_ffmpeg.md
Last active December 18, 2022 00:15
Compile FFmpeg on Ubuntu 16.04

Compile FFmpeg on Ubuntu

This basic guide supports Ubuntu Xenial Xerus 16.04 and will enable several external encoding and decoding libraries: libfaac (AAC encoder), libfdk-aac (AAC encoder), libmp3lame (MP3 encoder), libopencore-amr (AMR encoder/decoder), librtmp (for additional RTMP protocols), libtheora (Theora encoder), libvorbis (Vorbis encoder), libvpx (VP8 encoder/decoder), and libx264 (H.264 encoder). These are optional and may be omitted if desired. This guide will also install many filters (see the filter list in the [Filtering Guide][1].

Note: Copy and paste the whole code box for each step.

Preparation

@cyberang3l
cyberang3l / How to setup VirtualGL and TurboVNC on Ubuntu.md
Last active July 5, 2025 10:13
Setup VirtualGL and TurboVNC on Ubuntu for OpenGL forwarding
@owent
owent / test_backtrace.cpp
Last active March 25, 2025 12:16
test_backtrace
/**
* traceback for cpp
*
* Created on: 2018-01-27
* Author: owent
*
* Released under the MIT license
*
* @note Required flag -rdynamic or addr2line to get the function name when using gcc/clang in unix like system
* @note Using addr2line -Cfpe <exe_path> [func_addr...] for more detail when using gcc/clang
RECOVERY='chromeos_10452.96.0_asuka_recovery_stable-channel_mp'
echo 'cd ~/Downloads/' >> ~/.bashrc
mkdir /home/chronos/image /home/chronos/local /home/chronos/user/Downloads/boot
cd /home/chronos/user/Downloads/boot
wget https://dl.google.com/dl/edgedl/chromeos/recovery/$RECOVERY.bin.zip
unzip $RECOVERY.bin.zip
sudo losetup -fP $RECOVERY.bin
sudo mkfs.ext4 /dev/sda5
sudo mount /dev/sda5 /home/chronos/local
sudo mount /dev/loop1p3 /home/chronos/image -o loop,ro