Skip to content

Instantly share code, notes, and snippets.

View asdkant's full-sized avatar

Ariel Kanterewicz asdkant

  • Baufest
  • Buenos Aires, Argentina
View GitHub Profile
# Maintainer: grmat <grmat@sub.red>
# fixed with 16.40 instead of 16.60 by Ariel Kanterewicz <ariel@aknt.com.ar>
pkgname=opencl-amd
pkgdesc="OpenCL userspace driver as provided in the amdgpu-pro driver stack. This package is intended to work along with the free amdgpu stack."
pkgver=16.40.348864
pkgrel=1
arch=('x86_64')
url='http://www.amd.com'
license=('custom:AMD')
@asdkant
asdkant / CMakeError.log
Created December 16, 2017 23:41
Darktable 2.4.0~rc2 build error on Arch Linux
Performing C++ SOURCE FILE Test CXX_COMPILER_UNDERSTANDS_-Wold-style-declaration failed with the following output:
Change Dir: /home/kant/src/darktable/darktable-2.4.0~rc2/build/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/make" "cmTC_24824/fast"
/usr/bin/make -f CMakeFiles/cmTC_24824.dir/build.make CMakeFiles/cmTC_24824.dir/build
make[1]: Entering directory '/home/kant/src/darktable/darktable-2.4.0~rc2/build/CMakeFiles/CMakeTmp'
Building CXX object CMakeFiles/cmTC_24824.dir/src.cxx.o
/usr/bin/c++ -Wall -fno-strict-aliasing -Wformat -Wformat-security -Wshadow -Wtype-limits -Wvla -DCXX_COMPILER_UNDERSTANDS_-Wold-style-declaration -Wall -fno-strict-aliasing -Wformat -Wformat-security -Wshadow -Wtype-limits -Wvla -Wold-style-declaration -o CMakeFiles/cmTC_24824.dir/src.cxx.o -c "/home/kant/src/darktable/darktable-2.4.0~rc2/build/CMakeFiles/CMakeTmp/src.cxx"
cc1plus: warning: command line option '-Wold-style-declaration' is valid for C/ObjC but not for C++
<command-line>:0:26: warning: ISO C++11 require
@asdkant
asdkant / CMakeError.log
Created December 20, 2017 01:27
darktable-2.4.0~rc2 build error
Performing C++ SOURCE FILE Test CXX_COMPILER_UNDERSTANDS_-Wold-style-declaration failed with the following output:
Change Dir: /home/kant/src/darktable/darktable-2.4.0~rc2/build/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/make" "cmTC_85d94/fast"
/usr/bin/make -f CMakeFiles/cmTC_85d94.dir/build.make CMakeFiles/cmTC_85d94.dir/build
make[1]: Entering directory '/home/kant/src/darktable/darktable-2.4.0~rc2/build/CMakeFiles/CMakeTmp'
Building CXX object CMakeFiles/cmTC_85d94.dir/src.cxx.o
/usr/bin/c++ -Wall -fno-strict-aliasing -Wformat -Wformat-security -Wshadow -Wtype-limits -Wvla -DCXX_COMPILER_UNDERSTANDS_-Wold-style-declaration -Wall -fno-strict-aliasing -Wformat -Wformat-security -Wshadow -Wtype-limits -Wvla -Wold-style-declaration -o CMakeFiles/cmTC_85d94.dir/src.cxx.o -c "/home/kant/src/darktable/darktable-2.4.0~rc2/build/CMakeFiles/CMakeTmp/src.cxx"
cc1plus: warning: command line option '-Wold-style-declaration' is valid for C/ObjC but not for C++
<command-line>:0:26: warning: ISO C++11 require
@asdkant
asdkant / rps.py
Last active April 17, 2018 14:20
borrador python RPS
play_types = {1:"Piedra",2:"Papel",3:"Tijera"}
def get_play(playernum):
play = int(input(f"""Juigada jugador {playernum}:
1) {play_types[1]}
2) {play_types[2]}
3) {play_types[3]}
: """))
print(f"Jugada: {play_types[play]}")
return play
@asdkant
asdkant / rdr.py
Last active July 3, 2018 19:16
raw rename with datestamps
#!/usr/bin/python
import sys
import pyexiv2
import os
# print(sys.argv)
if sys.argv[1] == "-d":
files = sys.argv[2:]
realrun = False
@asdkant
asdkant / longest-7segments-word.py
Created October 10, 2018 14:37
Solution to the "what is the longest word you can write with 7 segments displays" problem from Tom Scott's video
import sys, re
# first argument: the words file
# second argument: the banned characters
wordsfile = sys.argv[1]
banned = sys.argv[2]
# print("words file: " + wordsfile)
# print("banned: " + banned)
# print("")
@asdkant
asdkant / butterfly.sh
Created January 10, 2019 20:25
create a webtty in azure container instances
# password protection doesn't seem to work, I'll figure it out eventually
resgrp='some_resource_group'
location='´some_region'
name='some_name'
dnsname='some_dns_prefix'
password='some_password'
az container create \
--resource-group $resgrp \
Year Make Model Description Price
1997 Ford E350 ac, abs, moon 3000.00
1999 Chevy Venture "Extended Edition" 4900.00
1999 Chevy Venture "Extended Edition, Very Large" 5000.00
1996 Jeep Grand Cherokee MUST SELL! \n air, moon roof, loaded 4799.00
#!/bin/bash
#
# Author: Ariel Kanterewicz <ariel@aknt.com.ar>
#
# Why this exists:
# Because I had an archive of RAW files of old pictures (all of them CR2 files),
# and the host was complaining (rightly so) that it was just a bunch of files
# dumped there instead of a proper web page.
#
# What this does:
@asdkant
asdkant / corporate-toolkit
Created July 18, 2019 15:12
Corporate toolkit
This is a useful list of programs to use on corporate laptops running windows. They shoul make the experience a bit more bearable.
Process Explorer: have a better understanding on what the hell is running on your machine
https://docs.microsoft.com/en-us/sysinternals/downloads/process-explorer
Autoruns: when you have to disable stuff from the system startup
https://docs.microsoft.com/en-us/sysinternals/downloads/autoruns
Chocolatey: better way to install software
https://chocolatey.org