Instantly share code, notes, and snippets.

🤓
Studying

# Ferdinand Mütschn1try

🤓
Studying
• Sort options
Created Jul 27, 2019
View vggfaces_finetuned_model.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Created Jul 27, 2019
View vggfaces_bottleneck_model.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Created Jul 27, 2019
View inspection.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View custom_model.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Created Mar 27, 2019
LeetCode TwoSum Solution Scala
View TwoSum.scala
 // https://leetcode.com/problems/two-sum object TwoSum { def apply(nums: Array[Int], target: Int): Array[Int] = { nums.view.zipWithIndex.map(x => { val el = nums.view.zipWithIndex.drop(x._2 + 1).collectFirst { case y if y._1 + x._1 == target => y } Array(Option(x), el) }).collectFirst {
Created Dec 4, 2018
View aoc_2018_day1.scala
 import scala.io.Source object Advent { def main(args: Array[String]): Unit = { val data = Source.fromFile("data/day1.txt").getLines.map(_.toInt).toList println(f"Part 1: \${data.sum}") /* Can someone help me get this second part a littler more Scala-like (more functional, less procedural)? Please let me know! */ var seen: Set[Int] = Set()
Created Nov 17, 2018
Use FritzBox IPSec VPN on Ubuntu 18.04
View vpn.md

# FritzBox VPN on Ubuntu 18.04

• Configure VPN for a user on your FritzBox and don't forget to show the pop-up including your credentials etc. afterwards. Also make sure you check "Allow access from internet".
• `sudo apt install vpnc network-manager-vpnc`
• Create file `/etc/vpnc/vpn.conf`, paste the following content and insert your credentials etc.
``````IPSec gateway yourfritzboxhere.myfritz.net
IPSec ID your_user
IPSec secret your_preshared_key
``````
Created Aug 29, 2018
View keybase.md

### Keybase proof

I hereby claim:

• I am n1try on github.
• I am n1try (https://keybase.io/n1try) on keybase.
• I have a public key ASC6rHe9n814abdoPWWaMVLe1xnDvycokFVY80toj1V2two

To claim this, I am signing this object:

Created May 22, 2018
A helper method that enables an Android GridView to be used inside a vertical ScrollView
View android_fullheight_gridview.java
 /* Inspired by https://stackoverflow.com/a/27818661/3112139 */ public static void justifyListViewHeightBasedOnChildren (GridView listView) { ListAdapter adapter = listView.getAdapter(); if (adapter == null) { return; } ViewGroup vg = listView; int totalHeight = 0; for (int i = 0; i < adapter.getCount(); i++) {
Last active Jan 21, 2020
Automated Google Drive sync for Linux using rclone
View rclone_sync.txt
 Script that will trigger a local to remote sync when any changes below your local Google Drive folder occur - but at max. every 10 minutes - and a remote to local sync every x (e.g. 30 minutes) via a cron job. 0. Install rclone and configure it for Google Drive 1. Create files listed below 2. Configure rclone_watch_local.sh to be run on startup (e.g. using a systemd service unit) 3. Add a cron job that runs rclone_remote2local.sh every x (e.g. 30) minutes ---------------------- rclone_local2remote.sh ----------------------
You can’t perform that action at this time.