Skip to content

Instantly share code, notes, and snippets.

View tim-hub's full-sized avatar
:octocat:
Patience is Love

Tim tim-hub

:octocat:
Patience is Love
View GitHub Profile
@tim-hub
tim-hub / converter.py
Created January 4, 2024 04:39 — forked from madjo/converter.py
Convert {parquet | orc} to json and orc to parquet
#! /usr/bin/env python
import pandas as pd
import argparse
import os
import pyarrow.orc as orc
# usage: ./converter.py --help
CONVERTERS = ['parquet2json', 'orc2json', 'orc2parquet']
@tim-hub
tim-hub / dockerised-wordpress.yml
Created April 15, 2023 03:31
docker compose file to start a wordpress blog in one go.
version: '3'
services:
# Database
db:
image: mariadb:latest
volumes:
- db_volume:/var/lib/mysql
- ./wp/db:/var/lib/mysql
restart: always
@tim-hub
tim-hub / web-to-native-stack.csv
Last active January 13, 2023 00:27
web native tech stacks all in one
Name Description
Apache Cordova The most early stack for web dev to use even in JQuery time; people use it
React Native as everyone knows
Expo based on React Native
Ionic An open source mobile UI toolkit for building modern; high quality cross-platform mobile apps from a single code base in React/Vue/Angular
Capacitor Capacitor creates Web Native apps; providing a modern native container approach for teams who want to build web-first without sacrificing full access to native SDKs when they need it.
Quasar based on Vue
@tim-hub
tim-hub / Spotify_Eliminate_Advertisements
Last active June 24, 2022 08:27 — forked from opus-x/Spotify_Eliminate_Advertisements
Eliminate Spotify Advertisements + Complete Server List
##################################################################################
# ELIMINATE SPOTIFY ADS (VERSION 1.2 - 8.5) - UPDATED FREQUENTLY #
##################################################################################
#
# NOTE: SOMETIMES ONLY ANNOUNCEMENT OF AN AD WHILE USING APP VERSION 7.5-7.9?-8.x.
# USING AN OFFICIAL OLDER VERSION SOLVES THIS. TEST IT (APKMIRROR). THIS WILL NOT
# OCCUR USING CHROMECAST / GOOGLE HOME.
#
# COULD NOT SOLVE THE AUDIO AD INRO/OUTRO IN THE APP.
# SUGGESTIONS? WRITE A COMMENT BELOW.
# initialise new project package environment
npm init
PIPENV_VENV_IN_PROJECT=1 pipenv install

# install major version of package P (and dependencies)
npm i P@1
pipenv install --selective-upgrade "P<2"
@tim-hub
tim-hub / meta-tags.md
Created January 9, 2020 07:00 — forked from lancejpollard/meta-tags.md
Complete List of HTML Meta Tags

Copied from http://code.lancepollard.com/complete-list-of-html-meta-tags/

Basic HTML Meta Tags

<meta name="keywords" content="your, tags"/>
<meta name="description" content="150 words"/>
<meta name="subject" content="your website's subject">
<meta name="copyright"content="company name">
<meta name="language" content="ES">
@tim-hub
tim-hub / 0.gif
Created June 17, 2019 09:51 — forked from simon300000/kkomda.jpg
→_→
0.gif
function get_browser() {
var ua = navigator.userAgent,
tem, M = ua.match(/(opera|chrome|safari|firefox|msie|trident(?=\/))\/?\s*(\d+)/i) || [];
if (/trident/i.test(M[1])) {
tem = /\brv[ :]+(\d+)/g.exec(ua) || [];
return {
name: 'IE',
version: (tem[1] || '')
};
}
@tim-hub
tim-hub / python_cd.py
Created January 31, 2019 02:13
a path class written in Python (with some test cases)
class Path:
def __init__(self, path):
self.current_path = path
def cd(self, new_path):
positions = self.current_path.split('/')
if new_path == '/..':
return None
@tim-hub
tim-hub / README.md
Created January 29, 2019 03:55 — forked from leonardofed/README.md
A curated list of AWS resources to prepare for the AWS Certifications


A curated list of AWS resources to prepare for the AWS Certifications

A curated list of awesome AWS resources you need to prepare for the all 5 AWS Certifications. This gist will include: open source repos, blogs & blogposts, ebooks, PDF, whitepapers, video courses, free lecture, slides, sample test and many other resources.