Skip to content

Instantly share code, notes, and snippets.

View sub314xxl's full-sized avatar

Konstantin Mokhnatkin sub314xxl

  • Moscow, Russian Federation
View GitHub Profile
import requests
import pandas as pd
number_of_pages = 100
#number_of_ads = number_of_pages * per_page
job_title = ["'Data Analyst' and 'data scientist'"]
for job in job_title:
@Darkness4
Darkness4 / flutter-install-jdk11.sh
Last active March 27, 2022 20:44
Install OpenJDK 11, Flutter and Android SDK
#!/bin/sh
ANDROID_COMPILE_SDK=29
ANDROID_BUILD_TOOLS=29.0.2
ANDROID_SDK_TOOLS=4333796
FLUTTER_CHANNEL=master
INSTALL_DIR=$HOME
# Update
# NOTE : openjdk-8-jdk n'est plus en LTS
sudo apt update || exit 1
@jhejderup
jhejderup / gh100..200a.txt
Last active November 22, 2024 03:47
uppdatera-repos
https://github.com/xuningjack/RequestPermission.git
https://github.com/msilb/coursera-cryptocurrency.git
https://github.com/qhm123/POI-Android.git
https://github.com/hexiangnan/sigir16-eals.git
https://github.com/EspoirX/NiceMusic.git
https://github.com/uestccokey/EZFilter.git
https://github.com/TechPrimers/jwt-security-example.git
https://github.com/chuanzh/emp.git
https://github.com/FabianTerhorst/ApiClient.git
https://github.com/googlesamples/android-DirectShare.git
@redmcg
redmcg / kubedf
Last active May 5, 2025 22:26
Bash script to show k8s PVC usage
#!/usr/bin/env bash
NODESAPI=/api/v1/nodes
function getNodes() {
kubectl get --raw $NODESAPI | jq -r '.items[].metadata.name'
}
function getPVCs() {
jq -s '[flatten | .[].pods[].volume[]? | select(has("pvcRef")) | '\
@florentchauveau
florentchauveau / .gitlab-ci.yml
Last active May 9, 2025 12:27
GitLab CI yaml file for building docker images
# This is a GitLab CI configuration to build the project as a docker image
# The file is generic enough to be dropped in a project containing a working Dockerfile
# Author: Florent CHAUVEAU <[email protected]>
# Mentioned here: https://blog.callr.tech/building-docker-images-with-gitlab-ci-best-practices/
# do not use "latest" here, if you want this to work in the future
image: docker:20
stages:
- build
@Zackptg5
Zackptg5 / Audio Mod Troubleshooting Guide.md
Last active August 10, 2024 12:58
Audio Mod Troubleshooting Guide

Audio Mod Troubleshooting Guide

Search the XDA thread

This should always be your first step. More than likely, your question has already been answered...multiple times

Logs

If you make a post stating a problem without any logs, nobody can help you and will likely ignore it (at least I will)

  • Get a full logcat. If using adb, use adb logcat -d > log.txt
    • This should be taken after attempting to open the app
  • Get an audio dumpsys:
@in4in-dev
in4in-dev / perfect.php
Last active January 4, 2025 12:21
PHP VK audio unmask (decode extras)
<?php
//(js -> php) code. letter by letter
global $n, $i, $id;
$n = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMN0PQRSTUVWXYZO123456789+/=";
$id = 12345; //YOUR USER ID
$i = [
'v' => function($e) {
return strrev($e);
@illuzor
illuzor / .gitlab-ci.yml
Last active December 2, 2024 08:47
Config for gitlab ci android with unit tests and instrumented tests
image: ubuntu:22.04
variables:
ANDROID_COMPILE_SDK: "33"
ANDROID_BUILD_TOOLS: "33.0.2"
EMULATOR_IMAGE: "24"
SDK_TOOLS: "9477386" # from https://developer.android.com/studio/#command-tools
before_script:
@mohanpedala
mohanpedala / bash_strict_mode.md
Last active June 19, 2025 05:03
set -e, -u, -o, -x pipefail explanation
@alexkrauss
alexkrauss / gitlab-timeline.html
Created August 16, 2018 07:17
Timeline charts for Gitlab build jobs
<html>
<head>
<script type="text/javascript" src="https://www.gstatic.com/charts/loader.js"></script>
<script type="text/javascript">
// This is a quick hack to be able to see Gantt-like Timelines of gitlab build pipelines.
// It makes it easier to diagnose the running time of the pipelines and understand resource usage.
// Ideally, gitlab would directly provide such a view in its frontend.
google.charts.load('current', {'packages':['gantt']});