Skip to content

Instantly share code, notes, and snippets.

@sjfleming
sjfleming / cellbender_colab.ipynb
Created August 14, 2023 15:22
cellbender_colab.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@pylover
pylover / inspections.txt
Last active January 11, 2025 11:08 — forked from ar45/inspections.txt
PyCharm inspections
# Extracted using: $ unzip -p lib/pycharm.jar com/jetbrains/python/PyBundle.properties | grep -B1 INSP.NAME | grep '^#' | sed 's|Inspection||g' | sed -e 's|#\s\{,1\}|# noinspection |'
# noinspection PyPep8
# noinspection PyPep8Naming
# noinspection PyTypeChecker
# noinspection PyAbstractClass
# noinspection PyArgumentEqualDefault
# noinspection PyArgumentList
# noinspection PyAssignmentToLoopOrWithParameter
# noinspection PyAttributeOutsideInit
@SerafimArts
SerafimArts / Annotation.js
Last active January 11, 2025 11:08
JavaScript Annotations example
import Reader from './Reader';
import Target from './Target';
/**
* This is default annotation property for automatic type casting:
* <code>
* @Annotation({ some: any })
* // => will be casts "as is" {some: any}
*
* @Annotation("any")
@timvisee
timvisee / falsehoods-programming-time-list.md
Last active January 11, 2025 11:04
Falsehoods programmers believe about time, in a single list

Falsehoods programmers believe about time

This is a compiled list of falsehoods programmers tend to believe about working with time.

Don't re-invent a date time library yourself. If you think you understand everything about time, you're probably doing it wrong.

Falsehoods

  • There are always 24 hours in a day.
  • February is always 28 days long.
  • Any 24-hour period will always begin and end in the same day (or week, or month).
@hepto
hepto / tvheadend-freesat-setup.md
Last active January 11, 2025 11:03
How to set up TVHeadend for Freesat with a SAT>IP server. Creates a channel list with all and only those from the Freesat bouquets. Based on the Digibit Twin but should work for any SAT>IP server. Additionally, configure Channels DVR to use this channel list.

Once you have TVH going, go to its web interface on http://x.x.x.x:9981. Then these are the steps:

  1. Enable the Advanced or Expert UI in Configuration > General > Base

    This enables some menu items that are needed for future steps.

  2. Go to Configuration > Channels / EPG > EPG Grabber Modules and ensure that ONLY Freesat and Freesat EIT are enabled.

    This setting does grab the EPG that is embedded in the streams, but it's not actually used in the end. It is required later to get the Freesat bouquets which are the sets of regional Freesat only channels, which are important later.

/* JS script to share all albums in Immich with another user.
* Login to Immich as admin, paste following code into Chrome DevTools console and run.
* Can be run multiple times, e.g. after adding new albums on changing user's role.
*
* Change the user login and assigned role to suit needs on the first 2 lines
*/
let login = "[email protected]"
let role = "editor" // Possible values: [editor, viewer]
@Pylogmon
Pylogmon / openvpn.md
Last active January 11, 2025 11:02
通过OpenVPN部署虚拟局域网实现文明6联机

通过OpenVPN部署虚拟局域网实现文明6联机

应该也适用于其他各种局域网联机游戏

服务器

在服务器上部署OpenVPN Server可以使用 angristan/openvpn-install 项目

根据README下载执行部署脚本,三分钟即可部署完成。

@arjunv
arjunv / keyevents.json
Created December 2, 2018 00:01
All Android Key Events for usage with adb shell
{
"key_events": {
"key_unknown": "adb shell input keyevent 0",
"key_soft_left": "adb shell input keyevent 1",
"key_soft_right": "adb shell input keyevent 2",
"key_home": "adb shell input keyevent 3",
"key_back": "adb shell input keyevent 4",
"key_call": "adb shell input keyevent 5",
"key_endcall": "adb shell input keyevent 6",
"key_0": "adb shell input keyevent 7",
@Antosik
Antosik / Internship.md
Last active January 11, 2025 11:02
Стажировки (Москва)

Список стажировок и вакансий без опыта в Москве

  • Яндекс
    • Программы стажировок
      • Разработка (Python, C++, Java, Go, Kotlin, Scala, C, фронтенд)
      • Анализ данных
      • Информационная безопасность
      • AppSec
      • Бизнес
  • Тестирование