An introduction to curl using GitHub's API.
Makes a basic GET request to the specifed URI
curl https://api.github.com/users/caspyin
| #include "Wire.h" | |
| #define DS1307_ADDRESS 0x68 | |
| struct DateTime { | |
| int second; | |
| int minute; | |
| int hour; | |
| int weekDay; | |
| int monthDay; |
| package main | |
| import ( | |
| "crypto/tls" | |
| "crypto/x509" | |
| "fmt" | |
| "io" | |
| "log" | |
| ) |
An introduction to curl using GitHub's API.
Makes a basic GET request to the specifed URI
curl https://api.github.com/users/caspyin
| #!/usr/bin/env python | |
| """A tiny script that polls your location on Google Latitude, and updates | |
| the color of a Blink1 LED. http://shop.thingm.com/blink1/ | |
| Red = At work | |
| Blue = At home | |
| Green = On my way | |
| Should work on Windows, OS-X and Linux. Requires Python 2.7 or later. |
| #include <node.h> | |
| #include <v8.h> | |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| using namespace v8; | |
| Handle<Value> getRandomCoords2D(const Arguments& args) { | |
| HandleScope scope; | |
| #!/bin/sh | |
| # | |
| # Creates a SmartOS VM in VirtualBox (assuming you alread have VirtualBox installed) | |
| # | |
| # This script will: | |
| # * Download the latest live ISO image of SmartOS | |
| # * Create a VirtualBox VM, or update an existing VM with the latest ISO | |
| # * Configure the VM with a zones disk, and boot it! | |
| # | |
| # |
First install the required gems:
gem install octokit awesomeprint rainbowThen run it to extract all of your open GitHub issues into files (with comments).
ruby my-gh-issues.rb#Getting Started
##Webpage:
<html>
<head>
<title>Testing with Ruby and Selenium WebDriver</title>
</head>
<body bgcolor="antiquewhite">
| # check if job exists | |
| curl -XGET 'http://jenkins/checkJobName?value=yourJobFolderName' --user user.name:YourAPIToken | |
| # with folder plugin | |
| curl -s -XPOST 'http://jenkins/job/FolderName/createItem?name=yourJobName' --data-binary @config.xml -H "Content-Type:text/xml" --user user.name:YourAPIToken | |
| # without folder plugin | |
| curl -s -XPOST 'http://jenkins/createItem?name=yourJobName' --data-binary @config.xml -H "Content-Type:text/xml" --user user.name:YourAPIToken | |
| # create folder |
Note: This was written in 2015, it may be out of date now.
There are a lot of commands here which I use
sudoif you don't know what you're doing withsudo, especially where Irmyou can severely screw up your system.
There are many reasons which you would want to remove a piece of software such as McAfee, such as not wanting it to hammer your CPU during work hours which seems like primetime for a virus scan.
I intend this to be a living document, I have included suggestions from peoples' replies.