Skip to content

Instantly share code, notes, and snippets.

View donkeysharp's full-sized avatar
💭
Breaking it... Fixing it... Dreaming it... Coding it...

Sergio Guillen donkeysharp

💭
Breaking it... Fixing it... Dreaming it... Coding it...
View GitHub Profile
@donkeysharp
donkeysharp / frankenstein_sublime.emacs
Last active June 12, 2018 17:57
There are many things I love from emacs navigation only inside code, so here I have a frankenstein version of those navigation commands plus others custom
[
// Delete line
{ "keys": ["ctrl+d"], "command": "run_macro_file", "args": {"file": "res://Packages/Default/Delete Line.sublime-macro"} },
// Find under expand
{ "keys": ["ctrl+shift+k"], "command": "find_under_expand" },
// Change workspace
{ "keys": ["ctrl+alt+shift+p"], "command": "prompt_select_workspace" },
{ "keys": ["ctrl+alt+shift+h"], "command": "show_scope_name" },
@donkeysharp
donkeysharp / .tmux.conf
Last active September 7, 2018 00:35
My xfc4-terminal settings
set -g base-index 1
set -g pane-base-index 1
set -g default-terminal screen-256color
#setw -g utf8 on
##### bind % split-window -h -c "#{pane_current_path}"
bind '%' split-window -h -c "#{pane_current_path}"
bind '"' split-window -v -c "#{pane_current_path}"
@donkeysharp
donkeysharp / index.js
Last active March 4, 2019 15:17
Simple Searh scrapper
{
"name": "simple-search-scrapper",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "",
"license": "MIT",
#!/bin/bash
echo "hello world"
read -ep 'Type something> ' input
echo $input
@donkeysharp
donkeysharp / hackmeeting.py
Created September 13, 2019 13:05
Hackmeeting0x7e3 animation
from asciimatics.effects import Stars, Print
from asciimatics.particles import RingFirework, SerpentFirework, StarFirework, \
PalmFirework
from asciimatics.renderers import SpeechBubble, FigletText, Rainbow
from asciimatics.scene import Scene
from asciimatics.screen import Screen
from asciimatics.exceptions import ResizeScreenError
from random import randint, choice
import sys
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=H, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
</head>
<body>
<h1>Soy un servidor víctima!!! :D</h1>
General
Complete name : evo-telefono.mp4
Format : MPEG-4
Format profile : Base Media / Version 2
Codec ID : mp42 (isom/mp41/mp42)
File size : 6.41 MiB
Duration : 1 min 2 s
Overall bit rate : 857 kb/s
Encoded date : UTC 2019-11-21 12:31:56
Tagged date : UTC 2019-11-21 12:31:59
##
# You should look at the following URL's in order to grasp a solid understanding
# of Nginx configuration files in order to fully unleash the power of Nginx.
# https://www.nginx.com/resources/wiki/start/
# https://www.nginx.com/resources/wiki/start/topics/tutorials/config_pitfalls/
# https://wiki.debian.org/Nginx/DirectoryStructure
#
# In most cases, administrators will remove this file from sites-enabled/ and
# leave it as reference inside of sites-available where it will continue to be
# updated by the nginx packaging team.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Live Streaming</title>
<link href="//vjs.zencdn.net/5.8/video-js.min.css" rel="stylesheet">
<script src="//vjs.zencdn.net/5.8/video.min.js"></script>
</head>
<body>
<video id="player" class="video-js vjs-default-skin" height="360" width="640" controls preload="none">
<!DOCTYPE html>
<html lang="en">
<head>
<link href="https://vjs.zencdn.net/7.4.1/video-js.css" rel="stylesheet">
</head>
<body>
<video id="player" class="video-js vjs-default-skin" controls="controls" width="640" height="360">
<source src="http://35.87.156.90:8080/hls/stream.m3u8"
type="application/x-mpegURL" />