Skip to content

Instantly share code, notes, and snippets.

View GregaVrbancic's full-sized avatar

Grega Vrbančič GregaVrbancic

View GitHub Profile
@GregaVrbancic
GregaVrbancic / yolov4-tiny.cfg
Last active September 1, 2022 15:27
yolov4-tiny.cfg
[net]
# Testing
#batch=1
#subdivisions=1
# Training
batch=64
subdivisions=1
width=416
height=416
channels=3
#!/bin/bash
#
# This script is for Arch Linux to configure XRDP for enhanced session mode
#
# The configuration is adapted from the Ubuntu 16.04 script.
#
# Script adapted from https://github.com/microsoft/linux-vm-tools
#
@GregaVrbancic
GregaVrbancic / install_webmin.sh
Last active November 19, 2017 11:35
[Install Webmin script for Ubuntu] Bash script which installs Webmin. #Linux #Bash #Terminal #Server
#!/bin/bash
sudo true
sudo echo "deb http://download.webmin.com/download/repository sarge contrib" >> /etc/apt/sources.list
sudo cd /root
sudo wget http://www.webmin.com/jcameron-key.asc
sudo apt-key add jcameron-key.asc
sudo apt-get update
sudo apt-get install apt-transport-https -y
@GregaVrbancic
GregaVrbancic / install_docker.sh
Last active April 13, 2022 16:36
[Bash script for installing Docker on Ubuntu 16.04] #Linux #Terminal #Bash
#!/bin/bash
sudo true
sudo apt-get update
sudo apt-get install apt-transport-https ca-certificates curl software-properties-common -y
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
sudo apt-get update
@GregaVrbancic
GregaVrbancic / Spring security config with Auth0
Last active November 19, 2017 11:40
[Spring security config with Auth0] Spring Auth0 config code snippet. #Development #Public #Spring #Auth0
@Configuration
public class ConfigSecurity extends WebSecurityConfigurerAdapter {
private static Logger log = LoggerFactory.getLogger(ConfigSecurity.class);
@Value(value = "${auth0.clientId}")
private String clientId;
@Value(value = "${auth0.clientSecret}")
private String clientSecret;
@GregaVrbancic
GregaVrbancic / Stacktrace
Last active November 19, 2017 11:38
Stacktrace #Public #Error
. ____ _ __ _ _
/\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
\\/ ___)| |_)| | | | | || (_| | ) ) ) )
' |____| .__|_| |_|_| |_\__, | / / / /
=========|_|==============|___/=/_/_/_/
:: Spring Boot :: (v1.2.4.RELEASE)
2015-06-05 12:12:49.953 INFO 74257 --- [ main] s.greg.app.RealTimeAnalyticsApplication : Starting RealTimeAnalyticsApplication on Gregas-MacBook-Pro.local with PID 74257 (/Users/grega/Development/real_time_analytics/real-time-analytics/build/classes/main started by grega in /Users/grega/Development/real_time_analytics/real-time-analytics)
@GregaVrbancic
GregaVrbancic / keybase.md
Last active November 19, 2017 11:39
[Keybase proof] #Public

Keybase proof

I hereby claim:

  • I am gregavrbancic on github.
  • I am grega (https://keybase.io/grega) on keybase.
  • I have a public key ASBcNRR6Do8c-7geaO27WNRC8ZzHYqHVhStG6Kml9nBq1Ao

To claim this, I am signing this object: