Skip to content

Instantly share code, notes, and snippets.

View ivoarch's full-sized avatar

ivoarch

  • none
View GitHub Profile
@agnostic-apollo
agnostic-apollo / Android-Phantom,Cached-And-Empty-Processes.md
Last active June 19, 2024 23:49
Android Phantom, Cached And Empty Processes
@Justintime50
Justintime50 / standard-user-owned-brew.md
Last active January 12, 2024 16:41
Use the following commands to setup Hombrew as a standard user getting around needing sudo access for most packages.

Standard User Owned Brew

Use the following commands to setup Hombrew as a standard user getting around needing sudo access for most packages.

NOTE: This still requires an admin to install Homebrew initially. After the ownership change, the standard user can use Homebrew moving forward.

Setup Homebrew for a Standard User

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
@bep
bep / hugo-on-android.md
Last active July 6, 2024 16:46
Run Hugo on an Android phone

First install Termux

Then there are two options:

Build from source

Open the Termux terminal on your Android device and copy-and-paste the commands listed below and hit ENTER:

@mongoltolbo
mongoltolbo / Gnome 3.20 repository for CentOSRHEL 7.x.md
Created June 5, 2016 05:41
Welcome to the Gnome 3.20 repository for CentOSRHEL 7.x.

Since Red Hat spoiled us with RHEL 7.2 by rebasing Gnome, but will not be again updating Gnome for 7.3, I felt I would continue that action for them.

CentOS/RHEL is a great platform to work with, but on a workstation it feels out of date. I intended to fix that. So I built Gnome 3.20 and its dependencies for that platform.

Welcome to the Gnome 3.20 repository for CentOS/RHEL 7.x.

@llaumgui
llaumgui / touchpad-toggle.sh
Created October 29, 2015 20:25
Toggle touchpad activation with gsettings.
#!/bin/bash
#
# touchpad-toggle: Toggle touchpad activation with gsettings.
# Copyright (C) 2015 Guillaume Kulakowski <guillaume@kulakowski.fr>
# Version 1.0
#
SCHEMA="org.gnome.desktop.peripherals.touchpad"
KEY="send-events"
@dfletcher
dfletcher / tsws
Last active July 21, 2018 12:47
Totally simple web server using Bash and netcat (nc)
Moved to a proprer repositoy, TSWS is a real boy now!
https://github.com/dfletcher/tsws
PRs welcomed.
interactive("youtube-dl", "download youtube video",
function (I) {
shell_command_blind("youtube-dl " + I.buffer.display_uri_string);
});
@ruario
ruario / rpm4opera
Last active January 11, 2016 09:24
Converts Opera deb packages into rpm format
#!/usr/bin/env bash
available () {
command -v "$1" >/dev/null 2>&1
}
rpmcheck () {
if [ -e "$1" ]; then
echo "$1 is already present, delete it if you want to recreate it"
exit 0
@ruario
ruario / example-spec-files.md
Last active February 11, 2020 16:57
Example rpm .spec files for recent versions of Opera.

The following are some example .spec files I created to demonstrate how to deal with a more recent libudev version and the different naming of libcrypto on Fedora, via the use of compatibility symlinks. I do this in post install for maximum compatibility as the resultant rpms could also be used on systems where libudev and libcrypto naming matches what Opera expects.

To fetch all the .spec files:

git clone https://gist.github.com/f0183807a9f708067475.git

Place the version of Opera you wish to repackage in your sources directory (usually ~/rpmbuild/SOURCES). Tweak the Version field in the .spec file(s).

To repackage Opera stable: