Skip to content

Instantly share code, notes, and snippets.

@Gabboxl
Gabboxl / asd.xaml
Created November 25, 2023 12:29
test
Text="{x:Bind helpers:ResourceExtensions.GetLocalizedStr('NoticeBoardNotAvailableStatusButton')}"
@Gabboxl
Gabboxl / APDUList.txt
Created October 22, 2023 23:04 — forked from hemantvallabh/APDUList.txt
APDU list
Cheef's Grand APDU List Smartcard Selected Information APDU list
Reference: http://web.archive.org/web/20090630004017/http://cheef.ru/docs/HowTo/APDU.info
#------------+------------------------+------------------------+----------------------+--------------------------------+
|ClaIns P1 P2|Lc Send Data |Le Recv Data | Specification | Description |
+------------+------------------------+------------------------+----------------------+--------------------------------+
| 04 | ISO 7816-9 6.3 | DEACTIVATE FILE |
| A0 04 00 00 00 | 3GPP TS 11.11 | INVALIDATE |
| A0 04 00 00 00 | SAGEM SCT U34 6.15 | INVALIDATE |
+------------+------------------------+------------------------+----------------------+--------------------------------+
@Gabboxl
Gabboxl / test.md
Created September 6, 2023 21:23
select aggreate join strings c#

You can use the Select and Aggregate LINQ methods to create a comma-separated string of all teacher names. Here's how you can do it:

List<Teacher> teachers = new List<Teacher>
{
    new Teacher { teacherId = "1", teacherName = "Teacher1" },
    new Teacher { teacherId = "2", teacherName = "Teacher2" },
    // ... other teachers ...
};
@Gabboxl
Gabboxl / DECOMPILING_AN_ELECTRON_APP.md
Created August 20, 2023 20:37
How to decompile an Electron app

Let me tell you how easy it is to decompile an Electron app (that's closed source).

Prerequisites

Decompilation

First of all, you find the install path of your Electron app. If you found it, find the resources folder. If you found it, you'll have to install asar globally, by running:

@Gabboxl
Gabboxl / transition.cs
Created July 22, 2023 16:47
EntranceThemeTransition code only
// Create an instance of EntranceThemeTransition
EntranceThemeTransition entranceThemeTransition = new EntranceThemeTransition();
// Set the properties of the transition
entranceThemeTransition.FromHorizontalOffset = 100; // From where the animation will start horizontally
entranceThemeTransition.FromVerticalOffset = 100; // From where the animation will start vertically
// Get the parent container of the element
var panel = myElement.Parent as Panel;
@Gabboxl
Gabboxl / cvendpoints1.txt
Created June 1, 2023 16:17
Classeviva endpoints
rest/v1/students/{studentId}/lessons/{start}/{end}
rest/v1/students/{studentId}/homeworks/removeStudentFile/{evtCode}/{homeworkId}/{fileId}
rest/v1/students/{studentId}/absences/details/{begin}/{end}
rest/v1/students/{studentId}/cards
rest/v1/students/{studentId}/subjects
rest/v1/students/{studentId}/homeworks/insertStudentMsg/{evtCode}/{evtId}
rest/v1/students/{studentId}/homeworks/uploadStudentFile/{evtCode}/{evtId}
rest/v1/students/{studentId}/agenda/all/{begin}/{end}
rest/v1/students/{studentId}/homeworks/setTeacherMsgStatus/{evtCode}/{evtId}
rest/v1/students/{studentId}/virtualclasses/agenda/{date_start}
@Gabboxl
Gabboxl / ApiPolicyWrapper.cs
Last active April 11, 2023 13:29
Wrapper class to apply Polly policies to a Refit http client (+ getting Refit client instance using dependency injection)
using Polly;
using Refit;
using System;
using System.Threading.Tasks;
using Windows.ApplicationModel.Core;
using Windows.System;
using Windows.UI.Xaml.Controls;
namespace ClassevivaPCTO.Utils
@Gabboxl
Gabboxl / ql.txt
Created February 8, 2023 14:43
Get nodes that are attached/belong to a way with Overpass
node["railway"~"station"]
({{bbox}});
way(bn)->.wy;
node._(w.wy);
out;
@Gabboxl
Gabboxl / logcat.log
Created March 22, 2021 12:38
memfd logcat
--------- beginning of crash
03-22 08:03:59.350 761 770 F libc : Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0 in tid 770 (Jit thread pool), pid 761 (system_server)
03-22 08:03:59.540 850 850 F DEBUG : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
03-22 08:03:59.547 850 850 F DEBUG : LineageOS Version: '18.1-20210321-UNOFFICIAL-gprimeltexx'
03-22 08:03:59.547 850 850 F DEBUG : Build fingerprint: 'google/walleye/walleye:8.1.0/OPM1.171019.011/4448085:user/release-keys'
03-22 08:03:59.547 850 850 F DEBUG : Revision: '0'
03-22 08:03:59.547 850 850 F DEBUG : ABI: 'arm'
03-22 08:03:59.549 850 850 F DEBUG : Timestamp: 2021-03-22 08:03:59+0100
03-22 08:03:59.549 850 850 F DEBUG : pid: 761, tid: 770, name: Jit thread pool >>> system_server <<<
03-22 08:03:59.550 850 850 F DEBUG : uid: 1000
@Gabboxl
Gabboxl / logcat.log
Created March 18, 2021 09:50
logcat lshal [email protected] hwbinder
gprimeltexx:/ # lshal
| All binderized services (registered with hwservicemanager)
VINTF R Interface Thread Use Server Clients
FM Y [email protected]::IDisplayService/default 0/1 386 249
DC,FM Y [email protected]::ISchedulingPolicyService/default 0/4 778 249
DC,FM Y [email protected]::ISensorManager/default 0/4 778 249
FM Y [email protected]::IStats/default 0/4 778 249
DM,FC Y [email protected]::IEffectsFactory/default 0/4 358 379 249
DM,FC Y [email protected]::IDevicesFactory/default 0/4 358 379 249
DM,FC Y [email protected]::IBluetoothAudioProvidersFactory/default 0/4 358 249