Skip to content

Instantly share code, notes, and snippets.

View kakwa's full-sized avatar

Carpentier Pierre-Francois kakwa

View GitHub Profile
#!/bin/sh
MIRROR="rsync://mirror.yandex.ru/mirrors/jenkins/plugins/"
OUT="./"
help(){
cat <<EOF
usage: `basename $0` [-o <out>] [-m <mirror>]
Recover only the latest version of all the jenkins plugins
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = swagger_client.DefaultApi()
body = {
"id" : 42,
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = swagger_client.DefaultApi()
body = # Pet |
# Discovering Swagger/Open API
## What is Swagger
address_standardizer 2.4.2 2.4.2
address_standardizer_data_us 2.4.2 2.4.2
bloom 1.0 1.0
btree_gin 1.2 1.2
btree_gist 1.5 1.5
chkpass 1.0 1.0
citext 1.4 1.4
cube 1.2 1.2
dblink 1.2 1.2
dict_int 1.0 1.0
@kakwa
kakwa / test.c
Created December 24, 2017 11:28
freetype reverse map
#define _XOPEN_SOURCE 500
#include <ftw.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdint.h>
#include <ft2build.h>
#include FT_FREETYPE_H
@kakwa
kakwa / objdump openssl 1.1 Debian SID
Created December 4, 2016 22:06
objdump -T /usr/lib/x86_64-linux-gnu/libcrypto.so
/usr/lib/x86_64-linux-gnu/libcrypto.so: file format elf64-x86-64
DYNAMIC SYMBOL TABLE:
0000000000000000 DF *UND* 0000000000000000 GLIBC_2.3.4 __strcat_chk
0000000000000000 DF *UND* 0000000000000000 GLIBC_2.2.5 getenv
0000000000000000 DF *UND* 0000000000000000 GLIBC_2.2.5 free
0000000000000000 DF *UND* 0000000000000000 GLIBC_2.2.5 strcasecmp
0000000000000000 DF *UND* 0000000000000000 GLIBC_2.2.5 closelog
0000000000000000 DF *UND* 0000000000000000 GLIBC_2.3.4 __vfprintf_chk
0000000000000000 DF *UND* 0000000000000000 GLIBC_2.2.5 abort
@kakwa
kakwa / logs
Created December 2, 2016 18:36
2016/12/02 13:21:30 [I] Log Mode: File(Info)
2016/12/02 13:21:30 [I] Cache Service Enabled
2016/12/02 13:21:30 [I] Session Service Enabled
2016/12/02 13:21:30 [I] Git Version: 2.10.2
2016/12/02 13:21:30 [...s/routers/install.go:72 GlobalInit()] [E] Fail to initialize ORM engine: migrate: sync: dial tcp [::1]:3306: getsockopt: connection refused
@kakwa
kakwa / .Xdefaults
Created October 7, 2016 13:52
Xdefaults for urxvt including font resizing
URxvt*transparent:false
URxvt*tintColor:blue
URxvt*shading:50
URxvt*saveLines:12000
URxvt*foreground:White
URxvt*background:Black
URxvt*font:terminus-14
URxvt*boldFont:terminus-bold-14
URxvt*color4:RoyalBlue
URxvt*color12:RoyalBlue
#!/bin/sh
get_state() {
f=`grep "flags" /proc/pmu/battery_0 | sed 's/.*:\ //'`
if [ $f -eq 00000011 ]
then
echo "<"
elif [ $f -eq 00000013 ]
then
echo ">"