Skip to content

Instantly share code, notes, and snippets.

View InNoobWeTrust's full-sized avatar
🤖
Striving for passive income to support personal robotics-related research

Vu, Truong InNoobWeTrust

🤖
Striving for passive income to support personal robotics-related research
View GitHub Profile
@InNoobWeTrust
InNoobWeTrust / ExampleViewer_DroidScript.js
Last active March 11, 2017 10:56
Just a links getter for truyen.academyvn.com manga site. This is useful to reduce mobile data usage of yours. Just install termux and DroidScript, run the python script in termux to get the chapter and view it with DroidScript by the example JS script below (no backward page turning as I'm too lazy to care about looking back :] ). After running …
var links = [];
var viewIndex = 0;
var loadIndex = 0;
//Called when application is started.
function OnStart()
{
lay = app.CreateLayout( "linear", "VCenter,FillXY" );
//Scroller
#
# Build configuration for Circle CI
#
general:
artifacts:
- /home/ubuntu/your-repository-name-here/app/build/outputs/apk/
machine:
environment:
image: openjdk:8-jdk
variables:
LANG: "en_US.UTF-8"
ANDROID_HOME: "/opt/android-sdk"
ANDROID_NDK_HOME: "/opt/android-sdk/ndk-bundle"
ANDROID_COMPILE_SDK: "26"
ANDROID_BUILD_TOOLS: "26.0.1"
ANDROID_SDK_TOOLS: "26.0.2"
ANDROID_NDK_VERSION: "16-beta1"
image: mingc/android-build-box:latest
pipelines:
default:
- step:
script: # Modify the commands below to build your repository.
# You must commit the Gradle wrapper to your repository
# https://docs.gradle.org/current/userguide/gradle_wrapper.html
- export GRADLE_OPTS='-XX:+UseG1GC -XX:MaxGCPauseMillis=1000 -Dorg.gradle.jvmargs="-Xmx2048m -XX:MaxPermSize=1024m -XX:ReservedCodeCacheSize=440m -XX:+UseCompressedOops -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8" -Dorg.gradle.parallel=false -Dorg.gradle.daemon=false -Dorg.gradle.configureondemand=true'
- chmod +x gradlew
# This file is a template, and might need editing before it works on your project.
# Read more about this script on this blog post https://about.gitlab.com/2016/11/30/setting-up-gitlab-ci-for-android-projects/, by Greyson Parrelli
image: mingc/android-build-box:latest
variables:
ANDROID_COMPILE_SDK: "25"
GRADLE_OPTS: '-XX:+UseG1GC -XX:MaxGCPauseMillis=1000 -Dorg.gradle.jvmargs="-Xmx1536m -XX:MaxPermSize=1024m -XX:ReservedCodeCacheSize=440m -XX:+UseCompressedOops -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8" -Dorg.gradle.parallel=false -Dorg.gradle.daemon=false -Dorg.gradle.configureondemand=true'
before_script:
- chmod +x ./gradlew
#!/usr/bin/env bash
# input username, password, group name, repository name through arguments in order
cp -r .git ../.git
git remote rm origin
git remote add origin https://$1:$2@bitbucket.org/$3/$4.git
git push origin --force --all
git push --tags
rm -r .git
mv ../.git .git
@InNoobWeTrust
InNoobWeTrust / hvtt.json
Last active November 4, 2018 15:45
Manga sources config samples
{
"apiVersion": "0.0.1",
"info": {
"name": "Hoc Vien Truyen Tranh",
"short_name": "HVTT",
"icon": "http://hocvientruyentranh.net/frontend/images/favicon.png",
"lang": "Vietnamese",
"origins": [
"http://hocvientruyentranh.net"
],
@InNoobWeTrust
InNoobWeTrust / dict_converter.py
Last active September 21, 2019 18:18
(WIP) Stardict converter. Pseudo code. To support making PWA Japanese dictionary. Progress depend on laziness and the desire to procrastinate...
#!/usr/bn/env python3
# coding: utf-8
import json
import struct
DICT_NAMES = ["star_nhatviet", "star_vietnhat"]
DICT_JSON = {
name: {
"bookname": "",
"wordcount": "",
@InNoobWeTrust
InNoobWeTrust / auto_msteams_add_users.py
Created April 22, 2020 20:32
Small script to automate the process of adding users to a specific group in MsTeams. Why not use "PowerShell Module for Teams"? Because it's suck with the reliability, can't wait hours or days for teams client to sync the changes 😫
#!/usr/bin/env python
import os
import sys
import time
import pyautogui as gui
def loading_line(iteration=1, message='Running...'):
@InNoobWeTrust
InNoobWeTrust / download_springer_books.py
Last active June 7, 2022 14:47
Script to download free books on Springer
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
from bs4 import BeautifulSoup
import json
import logging
from multiprocessing.pool import ThreadPool
from pathlib import Path
import re
import requests