Skip to content

Instantly share code, notes, and snippets.

View 5n00p4eg's full-sized avatar

Boyko Daniel 5n00p4eg

View GitHub Profile
#!/bin/bash
FILEPATH=/var/lib/flatpak/app/com.slack.Slack/current/active/files/extra/lib/slack/resources/app.asar.unpacked/src/static/ssb-interop.js
COMMENT_START="//SolorizePatchStart//"
COMMENT_END="//SolorizePatchEnd//"
CODE="
document.addEventListener('DOMContentLoaded', function() {
$.ajax({
@5n00p4eg
5n00p4eg / MigratedPathLookup.php
Created March 21, 2019 10:48
Drupal 8 migrate menu links with node references
<?php
namespace Drupal\oht_migrate\Plugin\migrate\process;
use Drupal\Core\Plugin\ContainerFactoryPluginInterface;
use Drupal\migrate\Annotation\MigrateProcessPlugin;
use Drupal\migrate\Plugin\migrate\process\MigrationLookup;
use Drupal\migrate\Plugin\MigratePluginManagerInterface;
use Drupal\migrate\Plugin\MigrationInterface;
use Drupal\migrate\ProcessPluginBase;
@5n00p4eg
5n00p4eg / postman_fc29_install.sh
Last active November 14, 2019 13:41 — forked from udomsak/postman_fc29_install.sh
Install postman on Fedora core 29 - Jan 2019
#!/bin/bash
wget -cN https://dl.pstmn.io/download/latest/linux64 -O postman-linux-x64.tar.gz
sudo tar xvzf postman-linux-x64.tar.gz -C /opt
sudo ln -sf /opt/Postman/Postman /usr/bin/postman
cat << EOF > /usr/local/share/applications/postman2.desktop
[Desktop Entry]
Name=Postman
GenericName=API Client
------------
Nucleus Diagnostics
------------
This file contains information about Nucleus and the environment it runs in.
------------
Environment
------------
Minecraft Version: Minecraft 1.12.2
Sponge Version: SpongeForge 1.12.2-2705-7.1.0-BETA-3291
Sponge API Version: SpongeAPI 7.1.0-SNAPSHOT-a1418ae
POST mobile/api/user/map/station/list
{"price":{"min":0,"max":999},"radius":5,"rating":0,"serviceFilterList":[],"mapFilter":{"type":"Polyline","coordinates":[null,{"lat":50.41621,"lng":30.54642},{"lat":50.41619,"lng":30.54641},{"lat":50.41617,"lng":30.54641},{"lat":50.41614,"lng":30.54642},{"lat":50.41602,"lng":30.54642},{"lat":50.416,"lng":30.54642},{"lat":50.41598,"lng":30.54642},{"lat":50.41596,"lng":30.54641},{"lat":50.41594,"lng":30.5464},{"lat":50.41593,"lng":30.54638},{"lat":50.41592,"lng":30.54636},{"lat":50.41591,"lng":30.54633},{"lat":50.4159,"lng":30.54631},{"lat":50.4159,"lng":30.54628},{"lat":50.4159,"lng":30.54626},{"lat":50.41589,"lng":30.54586},{"lat":50.41589,"lng":30.54586},{"lat":50.41619,"lng":30.54582},{"lat":50.41633,"lng":30.54583},{"lat":50.41652,"lng":30.54585},{"lat":50.41664,"lng":30.54586},{"lat":50.41664,"lng":30.54586},{"lat":50.41665,"lng":30.54581},{"lat":50.41665,"lng":30.54578},{"lat":50.41665,"lng":30.54576},{"lat":50.41666,"lng":30.54573},{"lat":50.41667,"lng":30.54571},{"
@5n00p4eg
5n00p4eg / .eslintrc.json
Last active March 13, 2018 12:15
Gulp setup
{
"root" : true,
"extends": "eslint:recommended",
"globals": {
"Drupal": true,
"drupalSettings": true,
"drupalTranslations": true,
"domready": true,
"jQuery": true,
"_": true,
@5n00p4eg
5n00p4eg / config_apache_vhost.conf
Last active August 8, 2017 08:58
My regular Drupal + Docker + Composer setup
<VirtualHost *:80>
DocumentRoot "/var/www/web"
ServerName localhost
ServerAdmin postmaster
<Directory /var/www/web>
allow from all
</Directory>
</VirtualHost>