Skip to content

Instantly share code, notes, and snippets.

@rponte
rponte / get-latest-tag-on-git.sh
Last active May 16, 2024 06:45
Getting latest tag on git repository
# The command finds the most recent tag that is reachable from a commit.
# If the tag points to the commit, then only the tag is shown.
# Otherwise, it suffixes the tag name with the number of additional commits on top of the tagged object
# and the abbreviated object name of the most recent commit.
git describe
# With --abbrev set to 0, the command can be used to find the closest tagname without any suffix:
git describe --abbrev=0
# other examples
@maxwelleite
maxwelleite / ttf-ms-tahoma-installer.sh
Last active May 16, 2024 06:43
Script to install the original Microsoft Tahoma font on Ubuntu distros
#!/bin/bash
# Author: Maxwel Leite
# Website: http://needforbits.wordpress.com/
# Description: Script to install the original Microsoft Tahoma Regular and MS Tahoma Bold (both version 2.60) on Ubuntu distros.
# Dependencies: wget and cabextract
# Tested: Ubuntu Saucy/Trusty/Xenial/Bionic
output_dir="/usr/share/fonts/truetype/msttcorefonts/"
tmp_dir="/tmp/ttf-ms-tahoma-installer"
@mseeley
mseeley / PlayStation 4.xml
Last active May 16, 2024 06:39
Work in progress Plex DLNA profile for the PlayStation 4 Media Player
<?xml version="1.0" encoding="UTF-8"?>
<Client name="PlayStation 4">
<!-- Author: Plex Inc. -->
<!-- http://blog.us.playstation.com/2015/06/15/media-player-coming-to-ps4/ -->
<Identification>
<Header name="User-Agent" substring="PlayStation 4" />
<Header name="User-Agent" substring="UPnP/1.0 DLNADOC/1.50" />
</Identification>
<TranscodeTargets>
@xto3na
xto3na / Git. Создание, удаление удаленной и локальной веток
Created November 14, 2015 14:31
Git. Создание, удаление удаленной и локальной веток
Надо добавить удаленную ветку, чтобы она синхронизировалась через pull/push.
Сначала надо создать удаленную ветку:
git push origin origin:refs/heads/new_branch_name
Стянуть ее
git pull origin
Посмотреть появилась ли в списке удаленных веток:
git branch -r
@PurpleVibe32
PurpleVibe32 / vmwk17key.txt
Last active May 16, 2024 06:41
Free VMware Workstation Pro 17 full license keys
Install VMWare Workstation PRO 17 (Read it right. PRO!)
Also, these keys might also work with VMWare Fusion 13 PRO. Just tested it.
Sub to me on youtube pls - PurpleVibe32
if you want more keys - call my bot on telegram. @purector_bot (THE BOT WONT REPLY ANYMORE) - Or: https://cdn.discordapp.com/attachments/1040615179894935645/1074016373228978277/keys.zip - the password in the zip is 102me.
---
This gist can get off at any time.
PLEASE, DONT COPY THIS. IF YOU FORK IT, DONT EDIT IT.
*If you have a problem comment and people will try to help you!
*No virus
@abritinthebay
abritinthebay / consoleColors.js
Last active May 16, 2024 06:36
The various escape codes you can use to color output to StdOut from Node JS
// Colors reference
// You can use the following as so:
// console.log(colorCode, data);
// console.log(`${colorCode}some colorful text string${resetCode} rest of string in normal color`);
//
// ... and so on.
export const reset = "\x1b[0m"
export const bright = "\x1b[1m"
export const dim = "\x1b[2m"
@jynik
jynik / ready_set_yocto.txt
Last active May 16, 2024 06:30
Ready, Set, Yocto! (v0.3) : A short guide to getting started with Yocto
================================================================================
Ready, Set, Yocto! (v0.3)
A short guide to getting started with Yocto
using YP Rocko 2.4 the Raspberry Pi
jynik
================================================================================
-------------------------------------------------
1. Intro
@theprojectsomething
theprojectsomething / Firefox Pretty Tree Style Tab.md
Last active May 16, 2024 06:30
Tree Style Tab: Sliding sidebar / pinned + active tabs

Firefox pretty sliding sidebar / pinned / active tab theme for Tree Style Tab

Features

  • Auto-sliding draw for TST
  • Leaves 'pinned' and 'active' tabs visible in standard browser chrome
  • Leaves 'last-active' tabs visible for 3 minutes after becoming inactive
  • Where an active tab is pinned, leaves 'last-active' tab (x1) visible for 1hr

tree-style-tabs-theme

@mohanpedala
mohanpedala / bash_strict_mode.md
Last active May 16, 2024 06:29
set -e, -u, -o, -x pipefail explanation