Skip to content

Instantly share code, notes, and snippets.

Avatar
🌍
Making the World a better place (cit.)

Paolo Rotolo paolorotolo

🌍
Making the World a better place (cit.)
View GitHub Profile
@GiovanniGrieco
GiovanniGrieco / circumvent-gnome-memhog.sh
Last active Apr 28, 2018
Circumvent GNOME 3 Memory Leak
View circumvent-gnome-memhog.sh
#!/usr/bin/bash
# Copyright 2018 Giovanni Grieco <giovanni.grc96@gmail.com>
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
@rjleaf
rjleaf / tensorflow_fedora.md
Last active Sep 12, 2018
Tensorflow on Fedora
View tensorflow_fedora.md

Note: Adapted from official Ubuntu instructions for Tensorflow using virtualenv.

This gist is currently a "Work in Progress". It works, but requires superuser privileges. I have not tested it with GPU support.

  1. Install pip and Virtualenv by issuing one of the following commands:
sudo dnf install python-pip python-devel python-virtualenv  # for Python 2.7
sudo dnf install python3-pip python3-devel python3-virtualenv # for Python 3.x
@ryanml
ryanml / stranger-things.bas
Last active May 13, 2018
Bob's Password Brute-Forcer from Stranger Things Season 2
View stranger-things.bas
10 DIM FourDigitPassword INTEGER
20 FOR i = 0 TO 9
30 FOR j = 0 TO 9
40 FOR k = 0 TO 9
50 FOR l = 0 TO 9
60 FourDigitPassword = getFourDigits (i,j,k,l)
70 IF checkPasswordMatch(FourDigitPassword) = TRUE THEN
80 GOTO 140
90 END
100 NEXT l
@eguven
eguven / brew-list.sh
Last active Jan 6, 2021
List all packages installed using Homebrew and their sizes
View brew-list.sh
brew list --formula | xargs -n1 -P8 -I {} \
sh -c "brew info {} | egrep '[0-9]* files, ' | sed 's/^.*[0-9]* files, \(.*\)).*$/{} \1/'" | \
sort -h -r -k2 - | column -t
@farbodsz
farbodsz / LabelledSpinner.md
Last active Aug 3, 2017
A Spinner component with a floating label for Android, similar to EditText components wrapped in a TextInputLayout.
View LabelledSpinner.md

Moved to an Android library...

This Gist has been discontinued and will be updated on a GitHub project here. The files I have removed from this Gist can be found there. Please feel free to open issues, pull requests, etc, so that I can change and improve the library how you like.

If you are already using the Gist, delete the layout XML, values XML, and Java files (the ones I have removed from this Gist), and instead add the following in your app module's build.gradle dependencies:

compile 'com.satsuware.lib:usefulviews:+'

Make sure to change your imports as well in the files that you are using the LabelledSpinner component.

You can’t perform that action at this time.