- Connect printer, install printer drivers, and enable Printer Sharing.
- Open terminal, run:
dns-sd -Z _ipp._tcp
. You'll see a few lines of repeated text. Look for your printer's name, next to that record you will see aTXT
, copy everything afterTXT
into a notepad. - In that TXT line, you'll see a line like this:
"pdl=application/octet-stream,application/pdf,application/postscript,image/jpeg,image/png,image/pwg-raster"
Change that, to add,image/urf
. So it'll look like:"pdl=application/octet-stream,application/pdf,application/postscript,image/jpeg,image/png,image/pwg-raster,image/urf"
- Now take that entire TXT line, and add it to this:
dns-sd -R "name_to_be advertised" _ipp._tcp.,_universal . 631 URF=none pdl=application/pdf,image/urf YOUR_TXT_STRING
- Run that line in the terminal, and Airprint should be enabled.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
As of ChromeOS 66, chromebooks have the ability to print to any CUPS based printer on your network. | |
To add simply enter your Chromebook settings page, search for printers, then click 'add printer' | |
Name: this can be anything | |
Address: the IP address for the remote printer | |
Protocol: IPP | |
Queue: the printer path. e.g. /printers/(your_printer_name) | |
To find your printer path. Go to: http://localhost:631/ Click Printers, |
I hereby claim:
- I am ctborg on github.
- I am ctborg (https://keybase.io/ctborg) on keybase.
- I have a public key whose fingerprint is 2EEA BB2A D2E2 B649 A32B 99C7 26CF 1AAB 5098 526D
To claim this, I am signing this object:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Client = require('slack-client'); | |
var client = new Client(process.env.BOT_SLACK_TOKEN); | |
client.on( 'error', function(e){console.log(e)}); | |
client.on( 'loggedIn', function(e){console.log(e)}); | |
client.on( 'open', function(e){console.log(e)}); | |
client.on( 'close', function(e){console.log(e)}); | |
client.on( 'message', function(e){console.log(e)}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8" ?> | |
<EventGhost Version="1544" Guid="{82508F58-8549-4C7E-91DE-56135A1FB77F}" Time="1326646344.61"> | |
<Autostart Name="Autostart" Expanded="True"> | |
<Plugin Identifier="HIDPS3" Guid="PS3" File="PS3"> | |
gAIoWAAAAABxAIiJiImJRwAAAAAAAAAARwAAAAAAAAAAR0AUAAAAAAAAR0BOAAAAAAAAiVV8XFw/XGhpZCN7MDAwMDExMjQtMDAwMC0xMDAwLTgwMDAtMDA4MDVmOWIzNGZifV92aWQmMDAwMjA1NGNfcGlkJjAzMDYjOCZmNWJiMDYwJjAmMDAwMCN7NGQxZTU1YjItZjE2Zi0xMWNmLTg4Y2ItMDAxMTExMDAwMDMwfXEBTUwFWB8AAABTb255IENvbXB1dGVyIEVudGVydGFpbm1lbnQgSW5jcQJNBgNYEQAAAEJEIFJlbW90ZSBDb250cm9scQNLAIl0cQQu | |
</Plugin> | |
<Plugin Identifier="Timer" Guid="{6149CA99-1FCD-4450-9160-7543BC20CFD3}" File="Timer"> | |
gAIpLg== | |
</Plugin> | |
</Autostart> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
register/#/validate-email?token=f10f3e9ce96b0b554e157694b5f1749d&username=16048891980 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html ng-app="FormSync"> | |
<head> | |
<title>GoAngular Form Synchronization</title> | |
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.0.7/angular.min.js"></script> | |
<script src="https://cdn.goinstant.net/v1/platform.min.js"></script> | |
<script src="https://cdn.goinstant.net/integrations/goangular/latest/goangular.min.js"></script> | |
<script> | |
// Create our AngularJS application module & require the goinstant module | |
var app = angular.module('FormSync', ['goinstant']); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Auto-fill captcha | |
// @version 0.1.1 | |
// @description Auto-fills the captcha and auto-starts download | |
// @copyright 2009 Shaun Friedle | |
// @license GPL version 3; http://www.gnu.org/copyleft/gpl.html | |
// | |
// ==/UserScript== | |
function Block() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Model | |
@user.should have(1).error_on(:username) # Checks whether there is an error in username | |
@user.errors[:username].should include("can't be blank") # check for the error message | |
#Rendering | |
response.should render_template(:index) | |
#Redirecting | |
response.should redirect_to(movies_path) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.checkered { | |
background-image: | |
-webkit-gradient( | |
linear, 0 0, 100% 100%, | |
color-stop(.25, #eee), | |
color-stop(.25, transparent), to(transparent)), | |
-webkit-gradient( | |
linear, 0 100%, 100% 0, | |
color-stop(.25, #eee), |
NewerOlder