Skip to content

Instantly share code, notes, and snippets.

import gleam/io
pub type ClientResponse {
ClientResponse(data: String, error_code: Int)
}
pub type ClientError {
ClientError(error: String)
}
yum list available | cut -d ' ' -f1 | xargs repoquery --requires
morgan@PolyArch /t/docker-git> nano PKGBUILD
morgan@PolyArch /t/docker-git> makepkg -si
==> Making package: docker-git 1:17.06.0.dev.32959.7117d5ef25-1 (Mon Oct 2 13:59:37 PDT 2017)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
-> Updating moby git repo...
Fetching origin
-> Updating cli git repo...
Fetching origin
#!/usr/bin/python
#usage: renamer.py /directory/to/files
import sys
from os import walk, path
from subprocess import call
args = sys.argv
'''
Get all filenames.
<?php
class Department extends Eloquent {
protected $guarded = array();
public static $rules = array();
/**
* The database table used by the model.
*
'use strict';
angular.module('capstoneApp')
.directive('backbutton', function() {
return {
restrict: 'E',
template: '<button>Back</button>',
link: function(scope, element, attrs) {
element.bind('click', function() {
$window.history.back();
@morganhein
morganhein / gist:6253517
Created August 16, 2013 21:06
Error loading page angularJS
Uncaught Error: [$injector:modulerr] Failed to instantiate module shopsyncApp due to:
Error: [$injector:unpr] Unknown provider: $routeProvider
at http://192.168.1.22:9000/components/angular/angular.js:60:12
at http://192.168.1.22:9000/components/angular/angular.js:2964:19
at getService (http://192.168.1.22:9000/components/angular/angular.js:3086:39)
at Object.invoke (http://192.168.1.22:9000/components/angular/angular.js:3107:13)
at http://192.168.1.22:9000/components/angular/angular.js:3045:37
at Array.forEach (native)
at forEach (http://192.168.1.22:9000/components/angular/angular.js:196:11)
at loadModules (http://192.168.1.22:9000/components/angular/angular.js:3032:5)
@morganhein
morganhein / job.rb
Created September 12, 2012 01:07
Can't mass-assign protected attributes: job
# == Schema Information
#
# Table name: jobs
#
# id :integer not null, primary key
# restaurant_id :integer
# shortname :string(255)
# user_id :integer
# created_at :datetime not null
# updated_at :datetime not null
@morganhein
morganhein / proxylist.txt
Created September 11, 2012 04:43
Free open proxy list
Free Proxy Lists
HOME
BY COUNTRY
Share on facebook_like Share on facebook Share on twitter Share on email Share on print |
Country Port Protocol Anonymity Uptime
None
Anonymous
High Anonymous