Skip to content

Instantly share code, notes, and snippets.

View artisin's full-sized avatar

te artisin

View GitHub Profile
@artisin
artisin / unrarall
Created January 7, 2023 07:42
unrarall
#!/usr/bin/env bash
#unrarall
# Copyright (C) 2011, 2012, 2013 Brendan Le Foll <brendan@fridu.net>
# Copyright (C) 2011, 2012, 2013 Dan Liew <dan@su-root.co.uk>
#
# 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.
@artisin
artisin / 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",
@artisin
artisin / 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
@artisin
artisin / cloudSettings
Last active January 27, 2020 18:15
vscode
{"lastUpload":"2020-01-27T18:14:18.713Z","extensionVersion":"v3.4.3"}
@artisin
artisin / 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 {
@artisin
artisin / 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
)
@artisin
artisin / 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)
@artisin
artisin / 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.

@artisin
artisin / google-fu.md
Last active January 10, 2024 00:53
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”
@artisin
artisin / 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',