// ==UserScript== | |
// @name VaRe Form Helper | |
// @namespace https://VaReFormHelper.firemaples.com/ | |
// @version 0.3 | |
// @description try to take over the world! | |
// @author Firemaples | |
// @match *://*/*reg.*th.*g.*.html | |
// @match https://*/*19*a*es*ue/ | |
// @icon https://www.google.com/s2/favicons?domain=undefined. | |
// @grant none |
package com.gabesechan.android.reusable.receivers; | |
import java.util.Date; | |
import android.content.BroadcastReceiver; | |
import android.content.Context; | |
import android.content.Intent; | |
import android.telephony.TelephonyManager; | |
public abstract class PhonecallReceiver extends BroadcastReceiver { |
// ==UserScript== | |
// @name Redmine Helper | |
// @namespace http://RedmineHelper.firemaples.com/ | |
// @version 0.8 | |
// @description Utilities for redmine issues. | |
// @author Firemaples | |
// @homepage https://gist.github.com/firemaples/d8df3e66da2a26e0c8aa924e2af0208f | |
// @match *://*/issues/* | |
// @include *://redmine.*/issues/* | |
// @grant none |
// ==UserScript== | |
// @name Column name simplifier in Kibana | |
// @namespace http://KibanaSimplifier.firemaples.com/ | |
// @version 0.4 | |
// @description Simplify the column name in Kibana. | |
// @author Firemaples | |
// @homepage https://gist.github.com/firemaples/f7fda51d4d459338c4e566e20a162796/ | |
// @match */app/kibana | |
// @grant none | |
// @downloadUrl https://gist.github.com/firemaples/f7fda51d4d459338c4e566e20a162796/raw/KibanaColumnNameSimplifier.user.js |
Sometimes you may want to undo a whole commit with all changes. Instead of going through all the changes manually, you can simply tell git to revert a commit, which does not even have to be the last one. Reverting a commit means to create a new commit that undoes all changes that were made in the bad commit. Just like above, the bad commit remains there, but it no longer affects the the current master and any future commits on top of it.
git revert {commit_id}'
Deleting the last commit is the easiest case. Let's say we have a remote origin with branch master that currently points to commit dd61ab32. We want to remove the top commit. Translated to git terminology, we want to force the master branch of the origin remote repository to the parent of dd61ab32:
android { | |
applicationVariants.all { variant -> | |
def flavor = variant.mergedFlavor | |
def name = flavor.getVersionName() | |
def versionName = name + '-' + variant.properties.get('flavorName') | |
if (variant.buildType.isDebuggable()) { | |
versionName += '-debug'; | |
} | |
flavor.versionName = versionName; | |
} |
Only files under 25 MB can be previewed with the Google Drive viewer.
Google Drive viewer helps you preview over 16 different file types, listed below:
- Image files (.JPEG, .PNG, .GIF, .TIFF, .BMP)
- Video files (WebM, .MPEG4, .3GPP, .MOV, .AVI, .MPEGPS, .WMV, .FLV)
- Text files (.TXT)
- Markup/Code (.CSS, .HTML, .PHP, .C, .CPP, .H, .HPP, .JS)
- Microsoft Word (.DOC and .DOCX)
using System; | |
using System.Collections.Generic; | |
using System.Deployment.Application; | |
using System.Linq; | |
using System.Text; | |
using System.Threading; | |
namespace InstallClickOnceApp | |
{ |
<!doctype html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>App Redirection</title> | |
</head> | |
<body> | |
<!-- iframe used for attempting to load a custom protocol --> | |
<iframe style="display:none" height="0" width="0" id="loader"></iframe> |