Skip to content

Instantly share code, notes, and snippets.

View jtligon's full-sized avatar
🐉

Jeff Ligon jtligon

🐉
  • Red Hat
  • Raleigh, NC
View GitHub Profile
#!/bin/zsh +x
#doing these manually
#brew install qemu
#brew uninstall qemu
cd ~/Documents
git clone https://github.com/qemu/qemu
cd qemu
git checkout v5.2.0
@jtligon
jtligon / inv.yaml
Created October 19, 2017 14:16
cri-o inventory essentials.
openshift_deployment_type=origin
deployment_type=origin
containerized=False
openshift_use_system_containers=True
openshift_release=v3.7
openshift_use_crio=True
openshift_crio_systemcontainer_image_override="docker.io/gscrivano/cri-o-centos:latest"
@jtligon
jtligon / Vagrantfile
Last active August 3, 2017 21:19
fed atomic cockpit
Vagrant.configure("2") do |config|
config.vm.box = "fedora/26-atomic-host"
config.vm.network "forwarded_port", guest: 9090, host: 9090
config.vm.provision "shell", inline: <<-SHELL
sudo atomic install registry.fedoraproject.org/f26/cockpit
SHELL
end

Keybase proof

I hereby claim:

  • I am jtligon on github.
  • I am jligon (https://keybase.io/jligon) on keybase.
  • I have a public key whose fingerprint is 69FA 7C12 0559 0B39 94CE BBE7 2AF2 6FB0 CFB7 66BA

To claim this, I am signing this object:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace blackjack
{
class MainClass
Atom sync Gist
-(void)zoomMapToRegionEncapsulatingLocation:(CLLocation*)firstLoc andLocation:(CLLocation*)secondLoc{
float lat =(firstLoc.coordinate.latitude + secondLoc.coordinate.latitude) /2;
float longitude = (firstLoc.coordinate.longitude + secondLoc.coordinate.longitude) /2;
CLLocationDistance distance = [firstLoc distanceFromLocation:secondLoc];
CLLocation *centerLocation = [[CLLocation alloc]initWithLatitude:lat longitude:longitude];
-(BOOL) isZipCode:(NSString*)zipString{
BOOL rc =NO;
NSCharacterSet * set = [NSCharacterSet characterSetWithCharactersInString:@"1234567890"];
set = [set invertedSet];
NSRange myRange =[zipString rangeOfCharacterFromSet:set];
rc =(myRange.location == NSNotFound);
- (void)URLSession:(NSURLSession *)session dataTask:(NSURLSessionDataTask *)dataTask didReceiveResponse:(NSURLResponse *)response completionHandler:(void (^)(NSURLSessionResponseDisposition))completionHandler
{
completionHandler(NSURLSessionResponseAllow);
}