Skip to content

Instantly share code, notes, and snippets.

russellhoff / index.html
Created October 4, 2022 15:05
SVG Loading Circle Animation
View index.html
<div id="wrapper">
<div class="profile-main-loader">
<div class="loader">
<svg class="circular-loader"viewBox="25 25 50 50" >
<circle class="loader-path" cx="50" cy="50" r="20" fill="none" stroke="#70c542" stroke-width="2" />
russellhoff /
Created March 12, 2019 11:20
Make as a Systemd service
#!/bin/bash --key %yourApiKeyHere% --feed_filename /opt/gtfs/zips/ --port 8767

Keybase proof

I hereby claim:

  • I am russellhoff on github.
  • I am joninx88 ( on keybase.
  • I have a public key ASCP_iVcPbGNEqoSnU8m4XqIZw8I_3FmtNr75c2SClSAMAo

To claim this, I am signing this object:

russellhoff /
Created January 28, 2019 13:18
A helper class to load Files located under resources directory in any Spring Boot project
import java.util.Optional;
import org.springframework.stereotype.Component;
public class SpringResourceFileLoader {
* Obtiene un fichero desde el directorio resources
russellhoff /
Created August 19, 2018 13:45
Modify Tomcat's to add "status" option [to be completed]
#rest of the file ...
elif [ "$1" = "configtest" ] ; then
-classpath "\"$CLASSPATH\"" \
-Dcatalina.base="\"$CATALINA_BASE\"" \
-Dcatalina.home="\"$CATALINA_HOME\"" \"\"$CATALINA_TMPDIR\"" \
org.apache.catalina.startup.Bootstrap configtest
russellhoff /
Last active May 31, 2018 10:38
Multiple datasources and their configuration in Spring Boot
package com.ingartek.transporte.estimat.configuration;
import java.util.HashMap;
import java.util.Map;
import javax.sql.DataSource;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
russellhoff /
Created April 5, 2018 10:32 — forked from Adirael/
Fix wordpress file permissions
# This script configures WordPress file permissions based on recommendations
# from
# Author: Michael Conigliaro <mike [at] conigliaro [dot] org>
WP_OWNER=www-data # <-- wordpress owner
WP_GROUP=www-data # <-- wordpress group
WP_ROOT=$1 # <-- wordpress root directory
russellhoff /
Created March 22, 2018 15:48 — forked from burgalon/
Implementing OAuth2 with AccountManager, Retrofit and Dagger
public class AccountAuthenticator extends AbstractAccountAuthenticator {
private final Context context;
@Inject @ClientId String clientId;
@Inject @ClientSecret String clientSecret;
@Inject ApiService apiService;
public AccountAuthenticator(Context context) {
russellhoff /
Last active February 10, 2023 14:20 — forked from sukharevd/
Script to install JBoss Wildfly 11.x as service in Linux
#description :The script to install Wildfly 11.x
#more :
#author :Dmitriy Sukharev
#date :2016-06-18T02:45-0700
#usage :/bin/bash
#tested-version1 :10.0.0.CR3
#tested-distros1 :Ubuntu 15.10; Debian 7,8; CentOS 7; Fedora 22
#tested-version2 :10.0.0.Final
russellhoff / tomcat.service
Last active November 28, 2017 21:13 — forked from zengxs/tomcat.service
tomcat systemd service script
View tomcat.service
# Systemd unit file for tomcat
Description=Apache Tomcat Web Application Container
ExecStart=/opt/apache-tomcat-8.5.23/bin/ start
ExecStop=/opt/apache-tomcat-8.5.23/bin/ stop