Skip to content

Instantly share code, notes, and snippets.

View slantview's full-sized avatar

Steve Rude slantview

View GitHub Profile
{
"name":"v0.1.1",
"notes":"Test version 2",
"pub_date":"2022-01-24T00:00:00Z",
"platforms": {
"darwin": {
"signature":"",
"url":"https://github.com/lemarier/tauri-test/releases/download/v1.0.0/app.app.tar.gz"
},
"linux": {
use std::collections::HashSet;
impl Solution {
pub fn is_happy(n: i32) -> bool {
if n == 1 { return true; }
let mut cur: i32 = n;
let mut seen: HashSet<i32> = HashSet::new();
loop {
// Split into array, fold into values and reset as cur.

Keybase proof

I hereby claim:

  • I am slantview on github.
  • I am slantview (https://keybase.io/slantview) on keybase.
  • I have a public key whose fingerprint is 7B28 523C AB07 2A85 4E79 21F4 0E43 0CDC 9D10 BAF4

To claim this, I am signing this object:

type Image struct {
Id string `json:"id" redis:"Id"`
Title string `json:"title" redis:"Title"`
Description string `json:"description" redis:"Description"`
DateTime int64 `json:"datetime" redis:"DateTime"`
Type string `json:"type" redis:"Type"`
Animated bool `json:"animated" redis:"Animated"`
Width int `json:"width" redis:"Width"`
Height int `json:"height" redis:"Height"`
Size int `json:"size" redis:"Size"`
require 'fog'
@remote = Fog::Compute.new({
:provider => 'AWS',
:aws_access_key_id => ENV['AWS_ACCESS_KEY_ID'],
:aws_secret_access_key => ENV['AWS_SECRET_ACCESS_KEY'],
:region => "us-west-2"
})
create_options = {
13 BackendOpen b www 127.0.0.1 56809 127.0.0.1 8080
13 TxRequest b GET
13 TxURL b /privateinfo/
13 TxProtocol b HTTP/1.1
13 TxHeader b Host: 10.xxx.xxx.xxx
13 TxHeader b User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_5) AppleWebKit/537.4 (KHTML, like Gecko) Chrome/22.0.1229.94 Safari/537.4
13 TxHeader b Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
13 TxHeader b Accept-Language: en-US,en;q=0.8
13 TxHeader b Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3
13 TxHeader b X-Forwarded-For: 10.200.33.69
@slantview
slantview / gist:3876361
Created October 11, 2012 23:33
vcl_fetch issue
sub vcl_fetch {
if( beresp.http.set-cookie ~ "/^bblast.*/" ) {
remove beresp.http.set-cookie;
}
}
@slantview
slantview / Capfile
Created May 2, 2012 17:21
Capistrano Deployment for Drupal
load 'deploy' if respond_to?(:namespace) # cap2 differentiator
Dir['vendor/plugins/*/recipes/*.rb'].each { |plugin| load(plugin) }
load 'config/deploy.rb'
require 'capistrano/ext/multistage'
namespace :deploy do
# Overwritten to provide flexibility for people who aren't using Rails.
desc "Prepares one or more servers for deployment."
@slantview
slantview / my.cnf
Created May 2, 2012 17:09
MySQL configuration for Drupal / RHEL6
### Rackspace MySQL 4.1/5.0 Default/Kickstart Configuration File v1.2
###
### This is a base configuration file containing the most frequently used
### settings with reasonably defined default values for configuring and
### tuning MySQL. Note that these settings can likely be further tuned
### in order to get optimum performance from MySQL based upon the database
### configuration and hardware platform.
###
### While the settings provided are likely sufficient for most situations, an
### exhaustive list of settings (with descriptions) can be found at:
@slantview
slantview / acl.vcl
Created May 2, 2012 16:42
Varnish default.vcl for Drupal 7
acl purge {
"localhost";
"127.0.0.1"/24;
"::1"/24;
"18.173.0.0"/16;
}
acl internal {
"18.173.0.0"/16;
}