Skip to content

Instantly share code, notes, and snippets.

View isra17's full-sized avatar

Israël Hallé isra17

View GitHub Profile
apiVersion: v1
kind: Service
metadata:
name: test-service
labels:
name: test
spec:
clusterIP: None
selector:
name: test
from functools import partial, update_wrapper
from typing import Callable, Optional, Any, List, cast, Union, overload
from typing_extensions import Literal
import dramatiq
class LazyActor(object):
_actor_attributes = [
"message",
# Configuration for Alacritty, the GPU enhanced terminal emulator
# The FreeType rasterizer needs to know the device DPI for best results
# (changes require restart)
dpi:
x: 96.0
y: 96.0
# Display tabs using this many cells (changes require restart)
tabspaces: 8
[alias]
st = status -b -s
g = grep -n --color
l = log --graph --decorate --oneline
fix = !git add -u && git absorb && git rebase -i --autosquash origin/master
p = !git push -u origin $(git branch --show-current)

Keybase proof

I hereby claim:

  • I am isra17 on github.
  • I am isra17 (https://keybase.io/isra17) on keybase.
  • I have a public key ASCHYDaWuhJEPTTGuX2Dq6y0CfWI5afKErH7RKVFeaJ1rAo

To claim this, I am signing this object:

import socket
import struct
HOST = 'localhost'
PORT = 31337
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.connect((HOST, PORT))
# challenge 1
print('challenge1')
#include <arpa/inet.h>
#include <errno.h>
#include <pwd.h>
#include <signal.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/socket.h>
#include <sys/types.h>
<div class="quality switch white">
<input type="radio" name="switch" id="switch-off"<% if (this.model.get('quality') === '720p') { %> checked<% } %>>
<input type="radio" name="switch" id="switch-on"<% if (this.model.get('quality') === '1080p') { %> checked<% } %>>
<label for="switch-off">720p</label>
<label for="switch-on">1080p</label>
<span class="toggle"></span>
</div>
.switch {
background: transparent;
GET api_endpoint/:imdb_ids
GET api_endpoint/35245623,46432552,13534523
Response format:
{
"imdb id": {
"language code": "subtitle url",
...
}
import socket
import struct
is_local = False
if is_local:
HOST = 'localhost'
PORT = 50005
else:
HOST = '54.218.22.41'