Skip to content

Instantly share code, notes, and snippets.

@piernov
piernov / PKGBUILD
Created November 1, 2020 18:37
ssf-git PKGBUILD
# Maintainer: piernov <[email protected]>
pkgname=ssf-git
_pkgname=ssf
pkgver=r386.2caaaab
pkgrel=1
pkgdesc="Network toolkit providing ways to forward data from sockets through a TLS link"
arch=('x86_64')
url="https://securesocketfunneling.github.io/ssf/"
license=('MIT')
@piernov
piernov / PKGBUILD
Created November 1, 2020 18:35
boost-65-compat 1.65.1-5 PKGBUILD
# Maintainer: Dmitry Kharitonov <darksab0r at gmail com>
# Contributor: Marcin Kornat <[email protected]>
# Contributor: Bartłomiej Piotrowski <[email protected]>
pkgname=('boost-65-compat-libs' 'boost-65-compat')
_pkgname=boost
pkgver=1.65.1
_boostver=${pkgver//./_}
pkgrel=5
pkgdesc="Free peer-reviewed portable C++ source libraries - compat version"
#!/usr/bin/env python3
###
# Dependencies: Linux, python3, python3-smbus
# Usage: `sudo ./set_lp8550_slope.py`
#
# Default slope is 0b101=200ms, can be adjusted below
# Tested with Ubuntu 20.04 on A1466 2013
# All original EEPROM registers value:
# - A0: 0b01111111
# - A1: 0b10110101
diff --git a/Classes/Actions/ActionSequence.cpp b/Classes/Actions/ActionSequence.cpp
index 4993ea3..baf8b58 100644
--- a/Classes/Actions/ActionSequence.cpp
+++ b/Classes/Actions/ActionSequence.cpp
@@ -19,13 +19,15 @@ bool ActionSequence::init() {
for(int i = 0 ; i < _listOfActions.size() ; i++) {
d += _listOfActions.at(i)->getDuration();
}
- ActionInterval::initWithDuration(d);
+
diff --git a/src/openboardview/main_opengl.cpp b/src/openboardview/main_opengl.cpp
index 28baa69..34a2fa6 100644
--- a/src/openboardview/main_opengl.cpp
+++ b/src/openboardview/main_opengl.cpp
@@ -81,9 +81,12 @@ int main(int argc, char **argv)
while (!done)
{
+ bool update = false;
+
@piernov
piernov / decode_bdv.py
Created June 26, 2016 12:31
Decode "Honhan BoardView" files (.bdv)
#!/usr/bin/env python3
import sys
file = open(sys.argv[1], 'rb')
count = 160
for line in file:
for char in line:
if (char == 13) or (char == 10): continue
sys.stdout.write(chr(count-char))
count+=1
smartctl 6.5 2016-05-07 r4318 [x86_64-linux-4.7.0-rc1-g719af93] (local build)
Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org
=== START OF INFORMATION SECTION ===
Model Family: Seagate Maxtor DiamondMax 22
Device Model: MAXTOR STM3500320AS
Serial Number: 9QM1YNA2
LU WWN Device Id: 5 000c50 00b83dd61
Firmware Version: MX15
User Capacity: 500 106 780 160 bytes [500 GB]
import java.util.*;
public class Miaou {
public static void main(String[] args) {
ReadCSV tt = new ReadCSV();
// System.out.println(tt.getData());
tt.printColumns();
System.out.println( tt.getData().stream().filter(b -> b.get(2).contains("Toulon") && !b.get(13).isEmpty() ).mapToInt(b -> Integer.parseInt(b.get(12))).average() );
}
}
@piernov
piernov / gist:d4859d87d30dda22b95b
Created February 8, 2015 18:51
Graphique allumettes
#!/usr/bin/env lua5.1
package.cpath=package.cpath .. ";/usr/lib/lua/?.so"
require("gv")
local piles = { 1, 3, 5}
local coups = { 1, 2, 3 }