Skip to content

Instantly share code, notes, and snippets.

View Eugeny's full-sized avatar

Eugene Eugeny

View GitHub Profile
#/bin/bash
rm -rf /Library/Application\ Support/Avid/
rm -rf /private/var/log/Avid
rm -rf /private/var/root/AvidEditorMediaServices
rm -rf "/Library/Application Support/Avid"
rm -rf /Library/Caches/Avid
rm -rf /Library/Logs/Avid
rm -rf "/Users/Shared/TranscodeServiceWorker/Avid FatalErrorReports"
rm -rf /Library/Logs/DiagnosticReports/AvidMediaComposer*
rm -rf /Library/Extensions/AvidDX.kext
@Eugeny
Eugeny / embed.rs
Last active March 27, 2022 12:39
Poem endpoint for rust-embed
//! Usage:
//!
//! ```
//! #[derive(RustEmbed)]
//! #[folder = "app/dist"]
//! pub struct Assets;
//!
//! Route::new()
//! .at("/", EmbeddedFileEndpoint::<Assets>::new("index.html"))
//! .nest_no_strip("/assets", EmbeddedFilesEndpoint::<Assets>::new())
<?xml version="1.0" encoding="utf-8"?>
<scpd xmlns="urn:schemas-upnp-org:service-1-0">
<serviceStateTable>
<stateVariable>
<name>TransportState</name>
<sendEventsAttribute>no</sendEventsAttribute>
<dataType>string</dataType>
<allowedValueList>
<allowedValue>STOPPED</allowedValue>
<allowedValue>PLAYING</allowedValue>
{
"event_id": "d6c9e464c61841e18b035cad403acf15",
"project": 181876,
"release": "1.0.139",
"dist": null,
"platform": "javascript",
"message": "",
"datetime": "2021-12-15T01:53:15.157000Z",
"tags": [
[
export const autofocus = /* @ngInject */ $timeout => ({
restrict: 'A',
link (_$scope, element) {
$timeout(() => element[0].focus())
},
})
@Eugeny
Eugeny / launch.json
Created June 27, 2021 17:26
Terminus VSCode launch configuration
{
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Electron: Main",
"protocol": "inspector",
"runtimeExecutable": "${workspaceFolder}/node_modules/.bin/electron",
"env": {
@Eugeny
Eugeny / 1.md
Last active May 27, 2019 19:58
uBlock filters to remove Booking.com's persuasion bullcrap

Booking.com's Bullshit Blocklist

These uBlock/AdBlock rules prevent Booking.com from psychologically fucking with you by removing the "persuasion messages" such as "bestseller", "just booked by 666 people" and "exceptional price".

Debugging stunnel problems in Ajenti:
0. Disable SSL in ajenti:
change "ssl": { "enable": true to false in /etc/ajenti/config.json
service ajenti restart
1. Regenerate the certificate
ajenti-ssl-gen hostname -f
#include <lang/libc-ext.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <limits.h>
char * normalize_path(char* pwd, const char * src, char* res) {
size_t res_len;
size_t src_len = strlen(src);
diff --git a/static/app/media/components/mediaFileList.coffee b/static/app/media/components/mediaFileList.coffee
index e04f6cb5..6878bc53 100644
--- a/static/app/media/components/mediaFileList.coffee
+++ b/static/app/media/components/mediaFileList.coffee
@@ -40,7 +40,7 @@ MediaFileListCtrl = ($scope, $q, $timeout, $log, $route, $routeParams, $location
ctrl.storage = $localStorage
ctrl.storage.showDeleted ?= true
ctrl.storage.showUnscannable ?= true
- ctrl.customFieldsMode = 'asset'
+ ctrl.customFieldsMode = 'file'