Skip to content

Instantly share code, notes, and snippets.

"C:\Program Files\Git\bin\sh.exe" --login -i -c "cd E:\workspace && cd D* && git pull && cd ../F* && git pull && cd ../P* && git pull && cd ../T* && git pull"
Option Explicit
If Not WScript.Arguments.Named.Exists("elevate") Then
CreateObject("Shell.Application").ShellExecute WScript.FullName _
, WScript.ScriptFullName & " /elevate", "", "runas", 1
WScript.Quit
End If
On Error Resume Next
[
{
"repository": "android_device_oppo_common",
"target_path": "device/oppo/common",
"remote": "cm",
"revision": "cm-13.0"
},
{
"repository": "android_device_oppo_msm8974-common",
"target_path": "device/oppo/msm8974-common",

Keybase proof

I hereby claim:

  • I am umer936 on github.
  • I am umer936 (https://keybase.io/umer936) on keybase.
  • I have a public key ASACBDikQhpEJEyKTC6ljG2ijqYcXCng8270FmQdDqTaiQo

To claim this, I am signing this object:

@umer936
umer936 / scifile.tex
Created December 16, 2016 08:13
Gutted the Science magazine LaTeX article template for this joke
% Use only LaTeX2e, calling the article.cls class and 12-point type.
\documentclass[12pt]{article}
\usepackage{times}
\topmargin 0.0cm
\oddsidemargin 0.2cm
\textwidth 16cm
\textheight 21cm
@umer936
umer936 / ChangeJWrate.js
Last active February 16, 2017 20:02
Change playback rate on JWPlayer Flash videos. Credit to Hitesh on StackOverflow.
innerDoc = document.getElementsByClassName("jwplayer");
var getVideo = innerDoc[0].getElementsByTagName('video')[0];
var newspeed = prompt("Current Speed: " + getVideo.playbackRate + "\nNew Speed: ");
getVideo.playbackRate = newspeed;
@umer936
umer936 / downloadJWcaptions.js
Created January 25, 2017 21:05
Prints out the captions from a JW video
innerDoc = document.getElementsByClassName("jwplayer");
var getVideo = innerDoc[0].getElementsByTagName('video')[0];
for (index = 0; index < getVideo.textTracks[0].cues.length; ++index) {
document.write(getVideo.textTracks[0].cues[index].text + " ");
}
@umer936
umer936 / temp.sh
Created July 20, 2017 23:38
Shows temperature of CPU in C and F
#!/bin/bash
while [ 1 ]
do
cpu_temp=$(< /sys/class/thermal/thermal_zone0/temp)
cpu_temp=$(($cpu_temp))
ceclis=$(echo "scale=1; $cpu_temp / 1000" | bc | tr '\n' ' ')
echo "$ceclis °C" | tr '\n' ' '
echo " | " | tr '\n' ' '
echo "scale=2; ( $cpu_temp / 1000 ) * 9 / 5 + 32" | bc | tr '\n' ' '
echo "˚F"
@umer936
umer936 / User-Package Control.sublime-settings
Last active October 12, 2017 04:54
Sublime Package Control Feb 10, 2016
{
"bootstrapped": true,
"in_process_packages":
[
],
"installed_packages":
[
"All Autocomplete",
"AutoFileName",
"Better CoffeeScript",
@umer936
umer936 / timesync.bat
Created February 11, 2018 07:15
Windows/Linux Synctime
@echo off && net start w32time && w32tm /resync /nowait && C:\Windows\System32\w32tm.exe /resync && net start w32time && w32tm /resync /nowait && C:\Windows\System32\w32tm.exe /resync