Skip to content

Instantly share code, notes, and snippets.

View Pablito2020's full-sized avatar
❄️
Living in my own chroot jail

Pablo Fraile Alonso Pablito2020

❄️
Living in my own chroot jail
View GitHub Profile
@Pablito2020
Pablito2020 / test.cs
Created September 24, 2023 18:50
Map
using System;
using System.Collections.Generic;
class Map
{
private List<char> tiles;
private int w;
private int h;
private bool verbose;
import os
import random
import shutil
import tkinter as tk
from PIL import Image, ImageTk
# Define the paths to the folders containing the images
source_folder = "new_images"
target_folder = "old_images"
P:247803; T:0x139829351060608 21:04:54.438 [opensc-pkcs11] card.c:254:sc_connect_card: called
P:247803; T:0x139829351060608 21:04:54.439 [opensc-pkcs11] card-entersafe.c:138:entersafe_match_card: called
P:247803; T:0x139829351060608 21:04:54.440 [opensc-pkcs11] card-rutoken.c:103:rutoken_match_card: called
P:247803; T:0x139829351060608 21:04:54.463 [opensc-pkcs11] pkcs15-syn.c:117:sc_pkcs15_bind_synthetic: called
P:247803; T:0x139829351060608 21:04:54.463 [opensc-pkcs11] pkcs15-piv.c:1229:sc_pkcs15emu_piv_init_ex: called
P:247803; T:0x139829351060608 21:04:54.463 [opensc-pkcs11] pkcs15-piv.c:236:piv_detect_card: called
P:247803; T:0x139829351060608 21:04:54.463 [opensc-pkcs11] pkcs15-cac.c:68:cac_detect_card: called
P:247803; T:0x139829351060608 21:04:54.463 [opensc-pkcs11] pkcs15-idprime.c:43:idprime_detect_card: called
P:247803; T:0x139829351060608 21:04:54.463 [opensc-pkcs11] pkcs15-gemsafeGPK.c:166:gemsafe_detect_card: called
P:247803; T:0x139829351060608 21:04:54.463 [opensc-pkcs11] pkcs15-esinit.c:78:sc
P:248912; T:0x140027089769600 21:06:11.844 [opensc-pkcs11] card.c:254:sc_connect_card: called
P:248912; T:0x140027089769600 21:06:11.845 [opensc-pkcs11] card-entersafe.c:138:entersafe_match_card: called
P:248912; T:0x140027089769600 21:06:11.845 [opensc-pkcs11] card-rutoken.c:103:rutoken_match_card: called
P:248912; T:0x140027089769600 21:06:11.870 [opensc-pkcs11] pkcs15-syn.c:117:sc_pkcs15_bind_synthetic: called
P:248912; T:0x140027089769600 21:06:11.870 [opensc-pkcs11] pkcs15-piv.c:1229:sc_pkcs15emu_piv_init_ex: called
P:248912; T:0x140027089769600 21:06:11.870 [opensc-pkcs11] pkcs15-piv.c:236:piv_detect_card: called
P:248912; T:0x140027089769600 21:06:11.870 [opensc-pkcs11] pkcs15-cac.c:68:cac_detect_card: called
P:248912; T:0x140027089769600 21:06:11.870 [opensc-pkcs11] pkcs15-idprime.c:43:idprime_detect_card: called
P:248912; T:0x140027089769600 21:06:11.870 [opensc-pkcs11] pkcs15-gemsafeGPK.c:166:gemsafe_detect_card: called
P:248912; T:0x140027089769600 21:06:11.870 [opensc-pkcs11] pkcs15-esinit.c:78:sc
@Pablito2020
Pablito2020 / Main.kt
Last active April 26, 2022 17:29
Silly example for working with my tetris library
import block_factory.RandomBlockCreator
import board.Cell
import game.GameCell
import game.ghost.GhostGame
import score.SimpleScoreCalculator
import java.awt.FlowLayout
import java.awt.Frame
import java.awt.Label
import java.awt.event.KeyEvent
import java.awt.event.KeyListener
# check whether a list is palindrome or not
def is_palindrome(arr: list):
if not arr:
return True
return arr[0] == arr[-1] and is_palindrome(arr[1:-1])
def final_is_palindrome(arr: list, result=True):
if not arr:
pablito@pablito-Daredevil:~$ adb logcat *:E
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
- waiting for device -
--------- beginning of main
--------- beginning of system
09-08 19:42:52.946 126 136 E vold : Failed to chmod /data/system_ce/0: No such file or directory
09-08 19:42:52.946 126 136 E vold : Failed to chmod /data/misc_ce/0: No such file or directory
09-08 19:42:53.283 143 143 E ccci_mdinit(0): md_init ver:1.10
09-08 19:42:53.342 151 151 E MsensorDaemon: [99] ''
--------- beginning of system
05-12 05:34:22.541 122 122 I vold : Vold 3.0 (the awakening) firing up
05-12 05:34:22.542 122 122 V vold : Detected support for: exfat ext4 ntfs vfat
05-12 05:34:27.827 394 394 I InstallerConnection: connecting...
05-12 05:34:27.857 394 394 I InstallerConnection: disconnecting...
05-12 05:34:27.909 394 394 I SystemServer: Entered the Android system server!
05-12 05:34:28.010 394 394 I SystemServiceManager: Starting com.android.server.pm.Installer
05-12 05:34:28.016 394 394 I Installer: Waiting for installd to be ready.
05-12 05:34:28.016 394 394 I InstallerConnection: connecting...
05-12 05:34:28.017 394 394 I SystemServiceManager: Starting com.android.server.am.ActivityManagerService$Lifecycle
[ 0.000000]-(0)[0:swapper]Booting Linux on physical CPU 0x0
[ 0.000000]-(0)[0:swapper]Initializing cgroup subsys cpu
[ 0.000000]-(0)[0:swapper]Initializing cgroup subsys cpuacct
[ 0.000000]-(0)[0:swapper]Linux version 3.10.49-daredevil--g218e11f3-dirty (pablito@developer) (gcc version 4.8 (GCC) ) #1 SMP PREEMPT Tue May 9 22:28:15 CEST 2017
[ 0.000000]-(0)[0:swapper]CPU: ARMv7 Processor [410fc073] revision 3 (ARMv7), cr=10c5387d
[ 0.000000]-(0)[0:swapper]CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[ 0.000000]-(0)[0:swapper]Machine: MT6582
[ 0.000000]-(0)[0:swapper]tag_devinfo_data_rid, indx[12]:0x7157fab5
[ 0.000000]-(0)[0:swapper]tag_devinfo_data size:22
[ 0.000000]-(0)[0:swapper]Get MD inf from META