I hereby claim:
- I am shayne on github.
- I am shayne (https://keybase.io/shayne) on keybase.
- I have a public key ASDyQYKTQTZgsHIJo_wBxC2EaPPYCE8QkkBHk4BdK-w0jgo
To claim this, I am signing this object:
#!/bin/sh | |
open "peepopen://%%%{PBXFilePath}%%%?editor=Xcode" |
sudo dscl . -append /groups/wheel GroupMembership <username> | |
# now `sudo visudo` and remove comment from: %wheel ALL=(ALL) NOPASSWD: ALL |
// | |
// CGViewController.swift | |
// Banksy | |
// | |
// Created by Shayne Sweeney on 11/1/14. | |
// Copyright (c) 2014 App Couture. All rights reserved. | |
// | |
import UIKit |
override func tableView(tableView: UITableView, didSelectRowAtIndexPath indexPath: NSIndexPath) { | |
// Not needed | |
} | |
override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject?) { | |
let indexPath = self.tableView.indexPathForSelectedRow()! | |
let destinationController = segue.destinationViewController as ProductDetailViewController | |
destinationController.productData = products[indexPath.row] as PFObject | |
} |
use LWP::Simple; | |
grammar JsonGrammer { | |
token TOP { <object-value>|<array-value> } | |
token any-value { \s* <string-value>|<numeric-value>|<null-value>|<object-value>|<array-value> \s* } | |
token object-value { '{' <property> [\s* \, \s* <property> \s*]*'}' } | |
token array-value { '[' <any-value> [\s* \, \s* <any-value> \s*]*']' } | |
token property { \s* <key> \s* ':' \s* <any-value> \s* } | |
token key { \" \w+ \" } | |
token any-quotes { <["']> } |
I hereby claim:
To claim this, I am signing this object:
#!/bin/bash | |
# REPLACE EXISTING FILE WITH THIS | |
# /usr/share/deepin-screenshot/src/gtk-clip | |
# source: http://unix.stackexchange.com/a/266761 | |
command -v xclip >/dev/null 2>&1 || { echo "Need command xclip. Aborting." >&2; exit 1; } | |
[[ -f "$1" ]] || { echo "Error: Not a file." >&2; exit 1; } | |
TYPE=$(file -b --mime-type "$1") | |
xclip -selection clipboard -t "$TYPE" < "$1" |
infocmp | ssh $remote "cat > $TERM.ti ; tic -o ~/.terminfo $TERM.ti" |
sudo systemctl isolate multi-user.target && sudo systemctl isolate graphical.target |
#include <stdio.h> | |
#include <fcntl.h> | |
#include <errno.h> | |
#include <sys/ioctl.h> | |
#include <linux/usbdevice_fs.h> | |
void main(int argc, char **argv) | |
{ | |
const char *filename; | |
int fd; | |
filename = argv[1]; |