Skip to content

Instantly share code, notes, and snippets.

View manuc66's full-sized avatar

Emmanuel Counasse manuc66

View GitHub Profile
using System;
using System.Collections.Generic;
using System.Data;
using System.IO;
using System.Linq;
using System.Security.Cryptography;
using System.Text;
using Newtonsoft.Json;
using SQLite;
@manuc66
manuc66 / tt
Created August 17, 2022 08:33
test
dsfdsf
@manuc66
manuc66 / script.js
Last active May 22, 2022 22:28
Jira key & summary to Clipboard for commit log
// ==UserScript==
// @name Jira key & summary to Clipboard for commit log
// @namespace sremy
// @version 2.0.1
// @description Quick copy of task key and summary from JIRA to clipboard (for commit)
// @author Sébastien REMY, Emmanuel Counasse
// @match https://jira.atlassian.com/browse/*
// @match https://jira.*/browse/*
// @require https://cdn.jsdelivr.net/npm/clipboard@2/dist/clipboard.min.js
// @require https://cdn.jsdelivr.net/npm/notify-js-legacy@0.4.1/notify.min.js
@manuc66
manuc66 / Step.sh
Created July 21, 2018 20:19
SonarQube TeamCity
set -v
# if [ `git symbolic-ref --short HEAD` = "develop" ]; then
if [ -f "./sonar-project.properties" ]; then
wget -nc https://sonarsource.bintray.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-%sonar_version%-linux.zip -P /tmp/
if [ ! -d /tmp/sonar-scanner-%sonar_version%-linux/ ]; then
unzip /tmp/sonar-scanner-cli-%sonar_version%-linux.zip -d /tmp/
fi
BRANCH="%teamcity.build.branch%"
SONAR_PR=""
if [[ $BRANCH == "pull-requests"* ]] ;
@manuc66
manuc66 / regexp
Created June 19, 2018 21:07
decimals of pi
((pi|π)(\s+((to|first)\s+\d+\s+((decimal|digit)s?)?))?)|(\d+\s+(decimal|digit)s?)?\s+(of\s+(pi|π))
@manuc66
manuc66 / synergy-howto.md
Last active October 23, 2022 01:41
Synergy
@manuc66
manuc66 / TwentyNine.cs
Created February 13, 2018 21:14
Sample for issue29
using Newtonsoft.Json;
using NUnit.Framework;
namespace JsonSubTypes.Tests
{
public class TwentyNine
{
[Test]
public void TestIt()
{
@manuc66
manuc66 / merge-package-json.js
Last active February 1, 2018 13:46
merge package.json helper
const fs = require("fs");
var a = JSON.parse(fs.readFileSync('p1.json', "utf8"));
var b = JSON.parse(fs.readFileSync('p2.json', "utf8"));
var dst = {};
function merge(destination, source, key) {
if (key === undefined) {
Object.keys(source).forEach(k => merge(destination, source, k));
@manuc66
manuc66 / memo.txt
Created July 20, 2017 21:58
dockcross redshift windows
docker run --rm dockcross/windows-x64 > ./dockcross-windows-x64
chmod +x dockcross-windows-x64
./dockcross-windows-x64 bash -c "./configure --disable-drm --disable-randr --disable-vidmode --enable-wingdi --disable-geoclue --disable-gui --disable-ubuntu --host=x86_64"
./dockcross-windows-x64 bash -c "make"
using System;
using System.Collections.Generic;
using System.EnterpriseServices;
using System.IO;
using System.Runtime.CompilerServices;
using System.Runtime.ConstrainedExecution;
using System.Runtime.InteropServices;
using System.Security.Permissions;
using System.Text;
using System.Threading;