Skip to content

Instantly share code, notes, and snippets.

%YAML 1.2
---
name: PHP
file_extensions:
- php
- php3
- php4
- php5
- php7
- phps
diff --git a/Cargo.toml b/Cargo.toml
index 9d7e34a..756333f 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -12,7 +12,7 @@ repository = "https://github.com/dandavison/delta"
version = "0.1.1"
[[bin]]
-name = "delta"
+name = "deta"
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>name</key>
<string>Monokai</string>
<key>settings</key>
<array>
<dict>
<key>settings</key>
diff --git a/pifi/games/snake.py b/pifi/games/snake.py
index 43e4c4b..a38b7cb 100644
--- a/pifi/games/snake.py
+++ b/pifi/games/snake.py
@@ -7,6 +7,8 @@ import pprint
import sqlite3
import os
import collections
+import asyncio
+import websockets
import socket
import sys
import time
import string
import random
# https://stackoverflow.com/a/10260885/627663
# https://stackoverflow.com/questions/13953912/difference-between-unix-domain-stream-and-datagram-sockets
# Create a UDP socket
diff --git a/deploying-rpm/upgrade_dev.md b/deploying-rpm/upgrade_dev.md
index d2e4d63..efa1962 100644
--- a/deploying-rpm/upgrade_dev.md
+++ b/deploying-rpm/upgrade_dev.md
@@ -63,11 +63,11 @@ If you don't have access to the jump host but _really_ need to run these (unlike
- `ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no nagiosc.etsycorp.com -- sudo -u nagios /usr/nagios/libexec/check_vitess_end_to_end.php -e development run`
9. Upgrade everything else
- There will probably be a few things we missed, such as topology hosts, orchestrator, etc. These don't run vitess binaries, but we ship the vitess recipe to them. You can see what was missed by checking the output of:
- - `dsh -c -m $(knife search "recipes:vitess AND (fqdn:*-dev.* OR fqdn:*-sandbox.* OR fqdn:*.vm.dev.etsycloud.*)" -i | paste -sd,) '/opt/vitess/bin/vttablet -version ; /opt/vitess/bin/vtgate -version ; /opt/vitess/bin/vtctld -version'`
+ - `dsh -c -m $(knife search "recipes:vitess\:\:default AND (fqdn:*-d
commit 65cc3a833d66210bbab62d9353f21d69cc922abe
Author: dleibovic <[email protected]>
Date: Mon May 18 17:48:01 2020 -0400
CORE-6233 update vitess upgrade guide to include steps for manually targetting an upgraded vtgate in the ETET
diff --git a/deploying-rpm/upgrade_dev.md b/deploying-rpm/upgrade_dev.md
index efa1962..0ff764d 100644
--- a/deploying-rpm/upgrade_dev.md
+++ b/deploying-rpm/upgrade_dev.md
commit 65cc3a833d66210bbab62d9353f21d69cc922abe
Author: dleibovic <[email protected]>
Date: Mon May 18 17:48:01 2020 -0400
CORE-6233 update vitess upgrade guide to include steps for manually targetting an upgraded vtgate in the ETET
diff --git a/deploying-rpm/upgrade_dev.md b/deploying-rpm/upgrade_dev.md
index efa1962..0ff764d 100644
--- a/deploying-rpm/upgrade_dev.md
+++ b/deploying-rpm/upgrade_dev.md
diff --git a/pifi/queue.py b/pifi/queue.py
index ffac647..bbaf241 100644
--- a/pifi/queue.py
+++ b/pifi/queue.py
@@ -85,7 +85,7 @@ class Queue:
# display_width = args.display_width, display_height = args.display_height,
# brightness = args.brightness, flip_x = args.flip_x, flip_y = args.flip_y, log_level = None,
# tick_sleep = args.tick_sleep, game_color_mode = args.game_color_mode,
- tick_sleep = 0.2, should_check_playlist = True,
+ tick_sleep = 0.2, should_check_playlist = True, flip_x = True,
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script type='text/javascript' src='https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js'></script>
<link href="https://fonts.googleapis.com/css2?family=VT323&display=swap" rel="stylesheet">
<title>SNAKE</title>