Skip to content

Instantly share code, notes, and snippets.

View fetchTe's full-sized avatar

te fetchTe

View GitHub Profile
@fetchTe
fetchTe / unrarall
Created January 7, 2023 07:42
unrarall
#!/usr/bin/env bash
#unrarall
# Copyright (C) 2011, 2012, 2013 Brendan Le Foll <[email protected]>
# Copyright (C) 2011, 2012, 2013 Dan Liew <[email protected]>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
@fetchTe
fetchTe / repository-released.json
Created March 8, 2022 22:07
repository-released.json
{
"schema_version": "3.0.0",
"dependencies": [],
"packages": [
{
"name": "AceJump-Chinese",
"description": "Jump between characters in Sublime Text without using a mouse at ease.",
"homepage": "https://github.com/jfcherng-sublime/ST-AceJump-Chinese",
"author": "jfcherng",
"donate": "https://paypal.me/jfcherng/5usd",
@fetchTe
fetchTe / install-xrdp-openbox.sh
Last active September 18, 2023 13:22
install-xrdp-openbox.sh
###############################################################################
# Update our machine to the latest code if we need to.
HWE="-hwe-20.04"
# HWE="-hwe-18.04"
###############################################################################
# !!!IMPORTANT!!!!
# If you don't want to use openbox you need change this per distro
# ex: echo "xfce4-session" > ~/.xsession
@fetchTe
fetchTe / cloudSettings
Last active January 27, 2020 18:15
vscode
{"lastUpload":"2020-01-27T18:14:18.713Z","extensionVersion":"v3.4.3"}
@fetchTe
fetchTe / react-redux-firebase-issues-230.js
Created April 10, 2018 00:12
react-redux-firebase issues #230
/**
* So here's the redux wrapper I used to solve the problem, or at least, that is
* what I think. I'm, not all to sure but maybe this will give you some insight.
*/
import React, { Component } from 'react';
import thunkMiddleware from 'redux-thunk';
import { Provider } from 'react-redux';
import { createLogger } from 'redux-logger';
import firebase from 'firebase';
import {
@fetchTe
fetchTe / flowide-highlighting.md
Created October 29, 2017 20:55
flowide-highlighting.md

Change highlighting fill

flowide/listeners/check.py

# change view.add_regious to this
view.add_regions(
    'flow_type_highlights',
    regions, 'string', 'dot',
    sublime.DRAW_NO_FILL
)
@fetchTe
fetchTe / sublime_shortcut_keys.md
Created October 28, 2017 20:50
sublime_shortcut_keys.md

Sublime Shortcut Keys

Editing

Shortcut Description
ctrl+] Indent right
ctrl+[ Indent left
ctrl+shift+g Create html wrap div, h1, etc
Ctrl+L select line (repeat select next lines)
@fetchTe
fetchTe / ctr-cla.md
Last active May 30, 2017 03:38
ctr - Contributor License Agreement

Contributor License Agreement

The following terms are used throughout this agreement:

  • You - the person or legal entity including its affiliates asked to accept this agreement. An affiliate is any entity that controls or is controlled by the legal entity, or is under common control with it.
  • Project - is an umbrella term that refers to any and all CTR, LLC. open source projects.
  • Contribution - any type of work that is submitted to a Project, including any modifications or additions to existing work.
  • Submitted - conveyed to a Project via a pull request, commit, issue, or any form of electronic, written, or verbal communication with CTR, LLC., contributors or maintainers.

1. Grant of Copyright License.

@fetchTe
fetchTe / google-fu.md
Last active September 25, 2024 11:11
Google Fu

Google Fu

  • “Search Term”

    • This operator searches for the exact phrase within speech marks only. This is ideal when the phrase you are using to search is ambiguous and could be easily confused with something else, or when you’re not quite getting relevant enough results back.
    • ex: “Tinned Sandwiches”
      • This will search for only the finer tinned variety of the bread based snack, at the exclusion of all others.
  • OR

    • This self explanatory operator searches for a given search term OR an equivalent term. For instance, if you have an unhealthy fascination with the famous ‘Sheens’ you could search for:
  • ex: “Martin Sheen” OR “Charlie Sheen”
@fetchTe
fetchTe / gfonts.php
Created October 19, 2016 03:18 — forked from nikoskip/gfonts.php
Demo: http://nikoskip.me/gfonts.php | You only have to use the CSS import URL that Google gives you, for instance: http://fonts.googleapis.com/css?family=Cabin:500,700,500italic,700italic
<?php
$fontTypes = array('woff2', 'woff', 'ttf', 'svg', 'eot');
$gFontURL = 'http://fonts.googleapis.com/css?family=';
$uaFonts = array(
'woff2' => 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.102 Safari/537.36',
'woff' => 'Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.0; Trident/4.0; GTB7.4; InfoPath.3; SV1; .NET CLR 3.1.76908; WOW64; en-US)',
'ttf' => 'Mozilla/5.0 (Linux; U; Android 2.2.1; en-ca; LG-P505R Build/FRG83) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1',
'svg' => 'Mozilla/5.0(iPad; U; CPU iPhone OS 3_2 like Mac OS X; en-us) AppleWebKit/531.21.10 (KHTML, like Gecko) Version/4.0.4 Mobile/7B314 Safari/531.21.10',