Skip to content

Instantly share code, notes, and snippets.

@iyedg
iyedg / wsl-terminator.vbs
Created June 23, 2020 07:43 — forked from raneomik/wsl-terminator.vbs
vbscript to run Terminator and xServer under wsl
' https://medium.com/@bhupathy/install-terminator-on-windows-with-wsl-2826591d2156
set shell = CreateObject("Wscript.Shell")
xServerProcessName = "vcxsrv.exe"
RunXserverProcess( xServerProcessName )
RunTerminator()
KillXserverProcess( xServerProcessName )
@iyedg
iyedg / file_negative_fiter.sh
Created October 12, 2018 22:15
Remove files whose name does not match a regex
find . -name "*.srt" -type f -not -regex ".*\.en\.srt" -exec rm {} \;
@iyedg
iyedg / README.md
Created September 4, 2018 16:15 — forked from jonathantneal/README.md
SASS @font-face mixin

Font Face

A mixin for writing @font-face rules in SASS.

Usage

Create a font face rule. Embedded OpenType, WOFF2, WOFF, TrueType, and SVG files are automatically sourced.

@include font-face(Samplino, fonts/Samplino);

Keybase proof

I hereby claim:

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

To claim this, I am signing this object:

#!/bin/sh
sudo service bluetooth restart
case $1 in
post)
sleep 5
rfkill block `rfkill list | grep hci | cut -d: -f1`
sleep 1
rfkill unblock `rfkill list | grep hci | cut -d: -f1`
@iyedg
iyedg / InstallPopcornTime.md
Created September 1, 2018 18:18 — forked from flyingluscas/InstallPopcornTime.md
Installing Popcorn Time on Ubuntu 16.x

1. Downloading

32 bits version

$ wget https://get.popcorntime.sh/build/Popcorn-Time-0.3.10-Linux-32.tar.xz -O popcorntime.tar.xz

64 bits version

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
{"lastUpload":"2018-11-24T10:04:18.479Z","extensionVersion":"v3.2.0"}
class Payoff():
def __init__(self, matrix, x_keys, y_keys, x_label="", y_label=""):
self.matrix = matrix
self.x_label = x_label
self.y_label = y_label
self.x_keys = x_keys
self.y_keys = y_keys
def _format_result(self, x_value, y_value, value):
return "{} - {} | {} - {} : {}".format(self.x_label, x_value,