Skip to content

Instantly share code, notes, and snippets.

View yemM's full-sized avatar
💭
I may be slow to respond.

Guilhem Marty yemM

💭
I may be slow to respond.
  • Montpellier, France
View GitHub Profile
@yemM
yemM / set-screen.sh
Created September 30, 2021 14:50
Add 1920x1080 screen resolution to Ubuntu
xrandr --newmode "1920x1080" 173.00 1920 2048 2248 2576 1080 1083 1088 1120 -hsync +vsync
xrandr --addmode Virtual1 1920x1080
xrandr --output Virtual1 --mode 1920x1080
@yemM
yemM / build-opencv.sh
Created September 30, 2021 14:44
Build opencv for linux with java
#!/bin/bash
cmake --verbose \
-DOPENCV_EXTRA_MODULES_PATH=../opencv_contrib-4.5.3/modules \
-DBUILD_opencv_java=ON \
-DOPENCV_JAVA_TARGET_VERSION=1.8 \
-DBUILD_JASPER=OFF \
-DBUILD_JPEG=OFF \
-DBUILD_OPENEXR=OFF \
-DBUILD_PERF_TESTS=OFF \
@yemM
yemM / Default.handlebars
Created May 27, 2021 15:02 — forked from wzulfikar/Default.handlebars
MacDown template that support mermaid diagram (http://knsv.github.io/mermaid/index.html). Save this snippet as `Default.handlebars` in `/Applications/MacDown.app/Contents/Resources/Templates/`
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
{{{ titleTag }}}
{{#each styleTags }}
@yemM
yemM / .Xmodmap
Created February 15, 2018 07:55
Xmodmap to get keyboard act as on Mac OS
!
! based on: http://www.emacswiki.org/emacs/SwapControlAltAndCapsLock#toc8
!
! exec xmodmap .Xmodmap to get it working
!----------------------------------------------------------
! Swap Control and Alt keys, both sides
!----------------------------------------------------------
@yemM
yemM / API.md
Created September 18, 2017 07:33 — forked from iros/API.md
Documenting your REST API

Title

<Additional information about your API call. Try to use verbs that match both request type (fetching vs modifying) and plurality (one vs multiple).>

  • URL

    <The URL Structure (path only, no root url)>

  • Method:

@yemM
yemM / keyboard.ahk
Created July 18, 2017 09:45
Autohotkey file to map a PC Keyboard as a Mac Keyboard (for personal convenience)
; --------------------------------------------------------------
; NOTES
; --------------------------------------------------------------
; ! = ALT
; ^ = CTRL
; + = SHIFT
; # = WIN
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
@yemM
yemM / CIDR.php
Last active August 29, 2015 14:08
<?php
/**
* CIDR.php
*
* Utility Functions for IPv4 ip addresses.
*
* @author Jonavon Wilcox <jowilcox@vt.edu>
* @version Sat Jun 6 21:26:48 EDT 2009
* @copyright Copyright (c) 2009 Jonavon Wilcox
*/
<?xml version="1.0" encoding="UTF-8"?>
<project name="${projectName}" basedir="." default="build:main">
<!-- Properties -->
<property name="dir.app" value="${project.basedir}/app" />
<property name="dir.src" value="${project.basedir}/src" />
<property name="dir.build" value="${project.basedir}/app/build" />
<property name="dir.docs" value="${dir.build}/docs" />
<property name="dir.docs.phpdoc" value="${dir.docs}/phpdoc" />
<property name="dir.docs.docblox" value="${dir.docs}/docblox" />
<property name="dir.reports" value="${dir.build}/logs" />