Skip to content

Instantly share code, notes, and snippets.

View malikbenkirane's full-sized avatar

Malik Benkirane malikbenkirane

View GitHub Profile
@malikbenkirane
malikbenkirane / # xdotool - 2017-05-05_18-56-09.txt
Created May 5, 2017 16:57
xdotool on macOS 10.11.6 - Homebrew build logs
Homebrew build logs for xdotool on macOS 10.11.6
Build date: 2017-05-05 18:56:09
  • TEST
    test
    

test

test
@malikbenkirane
malikbenkirane / discogs-screener.js
Last active November 8, 2017 02:30
Inject me on discogs.com pages with iframe#youtube_player_placeholder & then use your favorite playlist players
var test = "iframe#youtube_player_placeholder";
function parseyt(iframe_selector) {
var take = document.querySelector(iframe_selector).src.split('%2C');
var list = [];
list[0] = take[0].match("playlist=(.{11})")[1];
for ( var i = 1 ; i < take.length - 1 ; i++ ) {
/* flattened dark
*
black color0 #073642 color8 #002b36
red color1 #dc322f color9 #cb4b16
green color2 #859900 color10 #586e75
yellow color3 #b58900 color11 #657b83
blue color4 #268bd2 color12 #839496
magenta color5 #d33682 color13 #6c71c4
cyan color6 #2aa198 color14 #93a1a1
white color7 #eee8d5 color15 #fdf6e3
@malikbenkirane
malikbenkirane / screen.fish
Created July 9, 2018 12:26
script that wraps screen command with a fish shell (fish function)
# screen wrapper
function screen
# TODO port: bass source $SOURCMEPATH/screen.sh \; screen $argv
if [ (count $argv) -eq 0 ]; or [ "$argv" = "ls" ]
command screen -ls\
| head -n -1 | tail -n +2\
| awk -F'.' '{print $2}'\
| sed 's/\s*(Attached)/*/' | sed 's/\s*(Detached)//'
else if [ (count $argv) -eq 1 ]
if command screen -rd "$argv"
#!bin/sh
# tested with st 0.8.1 (c) 2010-2016 st engineers (st.suckless.org) on OpenBSD 6.4 (openbsd.org)
echo -e '08 - 0F (bright) \033[7m\033[30;1m \033[31;1m \033[032;1m \033[033;1m \033[034;1m \033[035;1m \033[036;1m \033[037;1m \033[0m'
echo -e '00 - 07 (normal) \033[7m\033[30m \033[31m \033[032m \033[033m \033[034m \033[035m \033[036m \033[037m \033[0m'
https://pjreddie.com/darknet/yolo/
@malikbenkirane
malikbenkirane / go-sss.go
Last active April 8, 2019 06:52
go simple static -web-server
/* https://golang.org/pkg/net/http/#example_FileServer */
package main
import (
"log"
"net/http"
)
func main() {