Skip to content

Instantly share code, notes, and snippets.

View vihuvac's full-sized avatar

Víctor Hugo Valle Castillo vihuvac

View GitHub Profile
@vihuvac
vihuvac / iterm2-solarized.md
Created August 10, 2020 04:44 — forked from kevin-smets/iterm2-solarized.md
iTerm2 + Oh My Zsh + Solarized color scheme + Source Code Pro Powerline + Font Awesome + [Powerlevel10k] - (macOS)

Default

Default

Powerlevel10k

Powerlevel10k

@vihuvac
vihuvac / LICENCE SUBLIME TEXT
Created August 18, 2018 21:09
Sublime Text 3 Serial key build is 3176
## Sublime Text 3 Serial key build is 3176
> * Added these lines into /etc/hosts
127.0.0.1 www.sublimetext.com
127.0.0.1 license.sublimehq.com
> * Used the license key
----- BEGIN LICENSE -----
@vihuvac
vihuvac / vscode.txt
Created April 8, 2018 12:13 — forked from EQuimper/vscode.txt
VS CODE PACKAGES
5 TOP PACKAGES
1. Path Intellisense
2. Project Manager
3. Auto Rename Tag
4. JavaScript (ES6) code snippets
5. Output Colorizer
You need to have
@vihuvac
vihuvac / yoast-nulled.php
Created July 30, 2017 20:56 — forked from petrozavodsky/yoast-nulled.php
Занулить yoast-seo-premium
<?php
/**
* 1. В таблице wp_options находим ключ yoast-seo-premium_license или wordpress-seo-premium_license
* и меняем его значение на `a:3:{s:3:"key";s:6:"zalupa";s:6:"status";s:5:"valid";s:11:"expiry_date";s:19:"2970-01-01 00:00:00";}`
*
* 2. Чтобы не слетали все ваши махинации после захода на страницу обновления или проверки лицензии,
* достаточно запретить плагину ломиться по своему АПИ на свой сайт.
* Я это сделал просто: в файле \wordpress-seo-premium\vendor\yoast\license-manager\class-update-manager.php
*/
@vihuvac
vihuvac / Mac-Spinning-Wheel.html
Last active September 9, 2016 05:11
Awesome Mac OS X Spinning Wheel with SCSS
<div class="wrapper">
<div class="rainbow"></div>
<div class="rainbow"></div>
<div class="rainbow"></div>
<div class="rainbow"></div>
<div class="rainbow"></div>
<div class="rainbow"></div>
<div class="rainbow"></div>
<div class="rainbow"></div>
<div class="rainbow"></div>
<!--
Appended to default to work with bh_core.sublime-settings brackethighlighter.default style
-->
<dict>
<key>name</key>
<string>Bracket Tag</string>
<key>scope</key>
<string>brackethighlighter.default</string>
<key>settings</key>
<dict>
{
"bracket_styles": {
"default": {
"icon": "dot",
// BH1's original default color for reference
// "color": "entity.name.class",
"color": "brackethighlighter.default",
"style": "highlight"
}
}
@vihuvac
vihuvac / chrome-script-tag.js
Created August 1, 2014 21:37
Script to generate an html script tag in the google chrome javascript console
var script = document.createElement("script");
script.setAttribute("src", "https://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js");
script.addEventListener('load', function() {
var script = document.createElement("script");
document.body.appendChild(script);
}, false);
document.body.appendChild(script);

Reverse SSH Tunneling

I guess you ever wanted to connect to a Linux desktop machine via ssh, but you did not have a way to do it.

The Reverse SSH Tunneling allows you to connect to a computer for it which you do not have access via ssh. The connection is established opening up a tunnel through another computer for it which you really have a ssh access. It works really good with UNIX systems.

Use Case

Requirements

Sublime Text (2 / 3) Installation Guide

Ubuntu (12.04, 13.04, 14.04, 15.04, 15.10) / Elementary OS (Luna / Freya) / Linux Mint(Cinnamon, Mate) / Mac OS X / Windows

1. Installation (Linux Based OS)

Sublime Text 2

Open the terminal, then run: