Skip to content

Instantly share code, notes, and snippets.

View juanfgs's full-sized avatar

Juan Francisco Giménez Silva juanfgs

View GitHub Profile
-- Logs begin at Wed 2018-10-31 17:15:27 -03, end at Fri 2018-11-02 19:16:41 -03. --
nov 02 19:06:34 archlinux kernel: Linux version 4.18.16-arch1-1-ARCH (builduser@heftig-28760) (gcc version 8.2.1 20180831 (GCC)) #1 SMP PREEMPT Sat Oct 20 22:06:45 UTC 2018
nov 02 19:06:34 archlinux kernel: Command line: BOOT_IMAGE=/vmlinuz-linux root=/dev/mapper/fedora-root rw quiet nvidia-drm.modeset=1 nouveau.modeset=0 modprobe.blacklist=nouveau
nov 02 19:06:34 archlinux kernel: KERNEL supported cpus:
nov 02 19:06:34 archlinux kernel: Intel GenuineIntel
nov 02 19:06:34 archlinux kernel: AMD AuthenticAMD
nov 02 19:06:34 archlinux kernel: Centaur CentaurHauls
nov 02 19:06:34 archlinux kernel: random: get_random_u32 called from bsp_init_amd+0x1f9/0x290 with crng_init=0
nov 02 19:06:34 archlinux kernel: x86/fpu: Supporting XSAVE feature 0x001: 'x87 floating point registers'
nov 02 19:06:34 archlinux kernel: x86/fpu: Supporting XSAVE feature 0x002: 'SSE registers'
#!/usr/bin/env sh
TRACKINFO=`mpris-remote trackinfo|grep ".jpg"|cut -d ':' -f3| cut -c 3-`;
printf '%s\n' "$TRACKINFO" | while IFS= read -r line
do
if [ ! -e "$line.png" ]; then
rm "$(readlink /tmp/conkyimage.png)"
convert $line \( +clone -background black -shadow 80x3+2+2 \) +swap -background transparent -layers merge +repage "$line.png"
@juanfgs
juanfgs / elementary.css
Created January 5, 2018 12:39
integrate third party themes to elementary
/* Elementary */
/*********
* Panel *
********/
.panel {
color:#FAFAFA;
@juanfgs
juanfgs / wingpanel.log
Created January 2, 2018 21:22
errors launching wingpanel
[INFO 18:19:33.370825] Application.vala:154: Ajustes del sistema version: 2.0
[INFO 18:19:33.370863] Application.vala:156: Kernel version: 4.14.8-300.fc27.x86_64
[FATAL 18:19:33.399156] PlugsManager.vala:58: get_plug () not found in /usr/lib64/switchboard/hardware/pantheon-power/logind-helper
[FATAL 18:19:33.752992] PlugsManager.vala:58: get_plug () not found in /usr/lib64/switchboard/system/pantheon-useraccounts/guest-session-toggle
[FATAL 18:19:35.124113] Manager.vala:59: Error al llamar StartSereviceByName para org.bluez: GDBus.Error:org.freedesktop.DBus.Error.TimedOut: Failed to activate service 'org.bluez': timed out (service_start_timeout=25000ms)
[juanfgs@leela|Ruby: 2.4.1p111]
~ $ wingpanel
[INFO 18:19:47.829016] Application.vala:154: System Panel version: 2.0.4
[INFO 18:19:47.829052] Application.vala:156: Kernel version: 4.14.8-300.fc27.x86_64
[WARNING 18:19:48.553415] [Gtk] (gtkicontheme.c:5494):gtk_icon_theme_lookup_by_gicon_for_scale: runtime check failed: ((flags & GTK_ICON_LOOKUP_GENERIC_FALL
@juanfgs
juanfgs / Gemfile
Created December 5, 2017 23:02
Implementation
source 'https://rubygems.org/'
gem 'minitest'
require 'rake/testtask'
Rake::TestTask.new do |t|
t.libs << ["spec", "lib" ]
t.pattern = "spec/**/*_spec.rb"
end
#!/bin/bash
inc()
{
shopt -s extglob
num=$(echo "$release_version" | sed 's/^[0-9]*\.[0-9]*\.//g')
let num++
echo $release_version | sed -r s/[0-9]*$/$num/
}
[alias]
brr = branch -r
br = branch
ci = commit -m
cia = commit -a -m
amend = commit --amend -C HEAD
co = checkout
cob = checkout -b
st = status -sb
me = merge --no-ff
#!/bin/bash
inc()
{
shopt -s extglob
num=$(echo "$release_version" | sed 's/^[0-9]*\.\([0-9]*\)\.[0-9]*/\1/g')
let num++
echo $release_version | sed -r "s/^([0-9]*)\.[0-9]*\.[0-9]*$/\1.$num.0/"
}
#!/bin/bash
inc()
{
shopt -s extglob
num=$(echo "$release_version" | sed 's/^\([0-9]*\)\.[0-9]*\.[0-9]*/\1/g')
let num++
echo "$num.0.0"
}