Skip to content

Instantly share code, notes, and snippets.

@pixelead0
pixelead0 / excluir_fuentes.txt
Last active June 20, 2019 00:57
Con este script se puede generar un gif con todas los tipos de letras disponibles en el sistema.
bold
cmex10
cmsy10
Dingbats
esint10
Gubbi
Kalyani
KacstArt
KacstBook
KacstDecorative
@ernierasta
ernierasta / sway-record
Last active August 18, 2022 19:36
Swaywm screen and audio recording
#!/bin/bash
# Sway WM screen + audio recorder
# original author: Aaron D. Fields
# blog post: https://blog.spirotot.com/2017/08/21/a-dirty-hack-to-enable-acceptable-sway-wm-screen-recording/
# currently error 503 :-(
#
# Updated version: ernierasta
# Repo: https://gist.github.com/ernierasta
#
# Changelog:
@sinclairtarget
sinclairtarget / 1-cat-pdp7.s
Last active April 2, 2024 20:15
cat through the ages
" cat
lac 017777 i " Load accumulator (AC) with argument count
sad d4 " Skip next if we have more than 4 words of args
jmp nofiles " Otherwise, jump to nofiles
lac 017777 " Load AC with address of args
tad d1 " Increment AC by 1, past argument count
tad d4 " Increment AC by 4, now AC points to first real arg
dac name " Save arg pointer from AC into 'name'
@RichieMcG
RichieMcG / update_firefox_developer_edition.sh
Last active May 22, 2019 12:52 — forked from grenade/update_firefox_developer_edition.sh
this script is based on another for Sublime Text (http://www.simonewebdesign.it/install-sublime-text-3-on-linux/). It will handle updates (detects the latest developer or nightly edition) and locale (using your $LANG environment variable) (only tested on a 64 bit, fedora system, feedback welcome).
#!/bin/sh
# Firefox Developer Edition install
# No need to download this script, just run it on your terminal:
# $ curl -L git.io/firefoxdev | sh
# When you need to update Firefox Developer Edition, run this script again.
START_CMD="firefox-dev"
INSTALLATION_DIR="/opt/${START_CMD}"
@zougloub
zougloub / dvr.py
Last active May 13, 2023 07:58
Tiny DVR for RTSP/H264 cameras
#!/usr/bin/env python
# -*- coding:utf-8 vi:noet
# RTSP/H264 simple camera DVR
__author__ = "Jérôme Carretero <cJ-tub@zougloub.eu>"
__license__ = "MIT"
import sys, io, os, re, time, datetime
import gi
@rarrais
rarrais / sp
Created July 27, 2017 14:22 — forked from vorbeiei/sp
sp is a command-line client for Spotify's dbus interface. Play, pause, skip and search tracks from the comfort of your command line.
#!/usr/bin/env bash
#Edited to allow for authentication with Spotify API required for search function.
#
# This is sp, the command-line Spotify controller. It talks to a running
# instance of the Spotify Linux client over dbus, providing an interface not
# unlike mpc.
#
# Put differently, it allows you to control Spotify without leaving the comfort
@merlinvn
merlinvn / gulp.js
Created September 18, 2016 08:46
Gulp for C++
var gulp = require('gulp');
var exec = require('child_process').exec;
var cmakeCommand = "mkdir -p build; cd build; cmake ..;";
var cleanCommand = "rm -rf build";
var testCommand = "cd build; ctest -V";
//"cmake --build ."
@tonejito
tonejito / gnome-flashback
Last active June 21, 2018 22:56
Legacy gnome support for @Debian 8 "Jessie"
#!/bin/bash
# Install legacy gnome support
aptitude --assume-yes install gnome-session-flashback
# Configure legacy gnome as default session
echo 2 | update-alternatives --config x-session-manager
# Enable menus for all applications
gsettings set org.gnome.settings-daemon.plugins.xsettings overrides '@a{sv} {"Gtk/ShellShowsAppMenu": <int32 0>}'
@grenade
grenade / update_firefox_developer_edition.sh
Last active February 5, 2022 11:04 — forked from simonewebdesign/install_sublime_text.sh
this script is based on another for Sublime Text (http://www.simonewebdesign.it/install-sublime-text-3-on-linux/). It will handle updates (detects the latest developer or nightly edition) and locale (using your $LANG environment variable) (only tested on a 64 bit, fedora system, feedback welcome).
#!/bin/sh
# Firefox Developer Edition install
# No need to download this script, just run it on your terminal:
# $ curl -L git.io/firefoxdev | sh
# When you need to update Firefox Developer Edition, run this script again.
START_CMD="firefox-dev"
INSTALLATION_DIR="/opt/${START_CMD}"
@tonejito
tonejito / zap
Last active June 25, 2018 16:12
zap LAMP stack
#!/bin/bash
# = ^ . ^ =
# 0750 root:staff /usr/local/sbin/zap
# Restart services, clear cache and re-enable swap
# Andres Hernandez - tonejito
# https://gist.github.com/tonejito/c16666facf5da68584d6