Skip to content

Instantly share code, notes, and snippets.

View passy's full-sized avatar
😷
Wear a mask.

Pascal Hartig passy

😷
Wear a mask.
View GitHub Profile
@passy
passy / mp3chapters.py
Created November 30, 2023 11:00
Export mp3 chapter markers into an Adobe-Audition compatible CSV
import subprocess
import re
import csv
import sys
# Function to convert seconds to "MM:SS.sss" format
def format_time(seconds):
minutes = int(seconds // 60)
seconds %= 60
return "{:02d}:{:06.3f}".format(minutes, seconds)
#!/usr/bin/env bash
# Copyright (c) 2013 Embark Mobile
# Licensed under the MIT License.
# https://github.com/embarkmobile/android-sdk-installer
# Constants
SDK_FILE=android-sdk_r22.3-linux.tgz
SDK_URL=http://dl.google.com/android/$SDK_FILE
DEFAULT_INSTALL=platform-tools
@passy
passy / chromium_daily.py
Created March 16, 2012 08:15
Chromium Daily Installer for Linux
#!/usr/bin/env python
# coding: utf-8
import errno
import os
import platform
import shutil
import stat
import subprocess
import sys
using System;
using System.IO;
using System.Threading;
using System.Diagnostics;
namespace Born2Code.Net
{
/// <summary>
/// Class for streaming data with throttling support.
/// </summary>
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout android:id="@id/root_view" android:layout_width="fill_parent" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
<com.facebook.slingshot.mypeople.PeopleView android:id="@id/people_shots_view" android:background="@color/black" android:visibility="visible" android:layout_width="fill_parent" android:layout_height="fill_parent" />
<com.facebook.slingshot.camera.CameraShotsView android:id="@id/camera_shots_view" android:layout_width="fill_parent" android:layout_height="fill_parent" />
<com.facebook.slingshot.preview.PreviewShotsView android:id="@id/preview_shots_view" android:layout_width="fill_parent" android:layout_height="fill_parent" />
<com.facebook.slingshot.viewer.ViewerShotsView android:id="@id/viewer_shots_view" android:layout_width="fill_parent" android:layout_height="fill_parent" />
<com.facebook.slingshot.preview.PreviewShotsView android:id="@id/reaction_preview_shots_view" android:lay
~/D/react-native    ./gradlew :ReactAndroid:tasks 9.3s  Tue 26 Nov 14:58:29 2019
FAILURE: Build completed with 2 failures.
1: Task failed with an exception.
-----------
* Where:
Build file '/Users/realpassy/Downloads/react-native/ReactAndroid/build.gradle' line: 101
* What went wrong:
@passy
passy / jade.md
Last active August 17, 2020 09:35
Using Yeoman and Jade

Using Yeoman and Jade

Getting started

  • Make sure you have yo installed: npm install -g yo
  • Run: yo webapp
  • Install grunt-contrib-jade: npm install grunt-contrib-jade --save-dev

Customization

# Maintainer: Pascal Hartig <realpassy@fb.com>
pkgname=dust-bin
pkgver="0.4.41"
pkgrel=1
pkgdesc="A more intuitive version of du in rust"
arch=('x86_64')
url="https://github.com/bootandy/dust"
license=('Apache')
depends=()
source=("https://github.com/bootandy/dust/releases/download/v0.4.41/dust-v${pkgver}-x86_64-unknown-linux-musl.tar.gz")
/home/realpassy/local/fbsource/xplat/sonar/android/src/main/java/com/facebook/flipper/plugins/inspector/descriptors/ViewDescriptor.java:44: error: package com.facebook.stetho.common.android does not exist
import com.facebook.stetho.common.android.ResourcesUtil;
^
/home/realpassy/local/fbsource/xplat/sonar/android/src/main/java/com/facebook/flipper/plugins/inspector/descriptors/ActivityDescriptor.java:17: error: package com.facebook.stetho.common.android does not exist
import com.facebook.stetho.common.android.FragmentActivityAccessor;
^
/home/realpassy/local/fbsource/xplat/sonar/android/src/main/java/com/facebook/flipper/plugins/inspector/descriptors/ActivityDescriptor.java:18: error: package com.facebook.stetho.common.android does not exist
import com.facebook.stetho.common.android.FragmentCompat;
^
/home/realpassy/local/fbsource/xplat/sonar/android/src/main/java/com/facebook/flipper/plu
Error ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ src/plugins/network/ManageMockResponsePanel.js:22:9
Cannot import the type Route as a value. Use import type instead.
19│ ContextMenu,
20│ } from 'flipper';
21│
22│ import {Route} from './types';
23│
24│ import {MockResponseDetails} from './MockResponseDetails';