Skip to content

Instantly share code, notes, and snippets.

current_dir=$(pwd);
echo "Current: $current_dir";
echo " ";
echo "1) Desktop";
echo "2) Tweaks";
echo "3) iOSApp";
echo "4) Scripts";
echo "5) KPI (XX)";
read -p "Choose: " -n 1 -r
1. Install https://chrome.google.com/webstore/detail/user-javascript-and-css/nbhcbdghjpllgmfilhnhkllmkecfmpld?hl=en
2. In JIRA, Add "Status" in the board -> settings -> card layout -> backlog
3. In the extension, add the code in the JS file below
4. In the extneions, add the CSS in the css file below
5. Reload the page
If you move something the styles will be reverted. So I suggest multi-moving tickets then reloading. It is probably fixable but I didn't do it yet.
@jontelang
jontelang / script.sh
Created October 12, 2017 08:58
Automatically takes screenshots + webcam shots and organises them into folders
function snapimage(){
mv screensnap.jpg ~/.Trash
mv screensnap.png ~/.Trash
mv camerasnap.jpg ~/.Trash
mv camerasnap.png ~/.Trash
cd /tmp #/Volumes/FUJITSU/Automatic-Images-Via-Imagesnap/
# /usr/sbin/screencapture -x screensnap.png
/usr/sbin/screencapture -x screensnap.png
/usr/local/bin/imagesnap -T2 camerasnap.png
var plistString = '';
var doc;
var folder = '/some/folder/path';
var onRun = function(context) {
doc = context.document;
// Start a new document
plistString += "<?xml version='1.0' encoding='UTF-8'?>";
plistString += "\n<!DOCTYPE plist PUBLIC '-//Apple//DTD PLIST 1.0//EN' 'http://www.apple.com/DTDs/PropertyList-1.0.dtd'>";
function snapimage(){
cd /tmp #/Volumes/FUJITSU/Automatic-Images-Via-Imagesnap/
/usr/sbin/screencapture -x screensnap.png
imagesnap -w 2 camerasnap.png
#convert -resize x480 /tmp/screensnap.png /tmp/screensnap.png
filename=$(date +%Y-%m-%d___%H.%M.%S.png)
/usr/local/bin/convert +append camerasnap.png screensnap.png $filename
mv $filename /Volumes/FUJITSU/Automatic-Images-Via-Imagesnap/$filename
}
@jontelang
jontelang / yo.csv
Created June 19, 2015 11:13
csv test
hey there mr mr
void KTouchPointerWindowInstall();
void KTouchPointerWindowUninstall();
static BOOL installed;
void KTouchPointerWindowInstall()
{
if (!installed) {
installed = YES;
Class _class = [UIWindow class];
#include "keylogger.h"
int main(int argc, const char *argv[]) {
// Create an event tap to retrieve keypresses.
CGEventMask eventMask = (CGEventMaskBit(kCGEventKeyDown) | CGEventMaskBit(kCGEventFlagsChanged));
CFMachPortRef eventTap = CGEventTapCreate(
kCGSessionEventTap, kCGHeadInsertEventTap, 0, eventMask, CGEventCallback, NULL
);
// Exit the program if unable to create the event tap.
@jontelang
jontelang / asd.m
Created July 18, 2014 11:49
asd.m
-(void)presentFBShare{
// Create an object
id<FBGraphObject> object =
[FBGraphObject openGraphObjectForPostWithType:@"thebumapp:share"
title:@"a bum"
image:Nil
url:@"http://www.facebook.com/TheBumApp"
description:Nil];
// Create an action
Hour,Sales,Profit
1390856400000,31,32.33
1390860000000,26,27.12
1390863600000,21,21.90
1390867200000,25,26.07
1390870800000,15,15.64
1390874400000,11,11.47
1390878000000,14,14.60
1390881600000,15,15.64
1390885200000,12,12.52