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
<?php | |
namespace TdatBundle\Controller; | |
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Method; | |
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; | |
use Symfony\Bundle\FrameworkBundle\Controller\Controller; | |
use Symfony\Component\HttpFoundation\JsonResponse; | |
use Symfony\Component\HttpFoundation\Request; | |
use TdatBundle\Entity\Category; |
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
// | |
// SubmitHelper.swift | |
// Testà | |
// | |
// Created by Keaton Burleson on 10/30/17. | |
// Copyright © 2017 er2. All rights reserved. | |
// | |
import Foundation | |
import SystemServices |
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
#!/usr/bin/ruby | |
# This script installs to /usr/local only. To install elsewhere you can just | |
# untar https://github.com/mistydemeo/tigerbrew/tarball/master anywhere you like or | |
# change the value of HOMEBREW_PREFIX. | |
HOMEBREW_PREFIX = '/usr/local' | |
TIGERBREW_BRANCH = 'vendor_ruby' | |
module Tty extend self | |
def blue; bold 34; end | |
def white; bold 39; end |
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
#!/usr/bin/python | |
import subprocess | |
import time | |
import json | |
import requests | |
EARL = 'http://10.0.0.145:5000/play/cha.m4a' | |
CMD = '~/dynamic-1.5.0/bin/dynamic-cli getwalletinfo' | |
BALANCE = -1.0 |
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
#!/usr/bin/env ruby | |
# encoding: utf-8 | |
require "rubygems" | |
require "bunny" | |
require "json" | |
def buildHash(width, height, length, orderNumber = "Mambo Test Print #9") |
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
044d526abc3b038b5c298e76994f9aca88bfdf575a8e1bb99b640b069f05abaeda7c2a92f0f8176cdedd7a94b9ff7fa9a8071898dafb62bb59c78888ffa005243f |
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
require 'json' | |
require 'net/http' | |
require 'uri' | |
require 'logger' | |
logger = Logger.new(STDOUT) | |
#get machine serial number | |
serial = `sudo dmidecode -t 1 | grep Serial | sed 's/.*: //g'`.strip! | |
base_url = 'http://10.0.2.7:3001' |
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
require 'json' | |
require 'net/http' | |
require 'uri' | |
require 'logger' | |
logger = Logger.new(STDOUT) | |
base_url = 'http://10.0.2.7:3001' | |
serial = `sudo dmidecode -t 1 | grep Serial | sed 's/.*: //g'`.strip! |
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
require 'net/https' | |
require 'uri' | |
class WebArchiver | |
def self.archive(url) | |
url = URI.parse("https://web.archive.org/save/#{url}") | |
req = Net::HTTP::Get.new(url.to_s) | |
res = Net::HTTP.start(url.host, url.port, :use_ssl => true) {|http| | |
http.request(req) |