This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// app/Http/Middleware/AuthByGetParam.php | |
namespace App\Http\Middleware; | |
use Closure; | |
use Illuminate\Http\Request; | |
use Symfony\Component\HttpFoundation\Response; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash -e | |
# | |
# this script is intended for use with froxlor to automatically | |
# set the correct user & group rights for froxlor customers. | |
# each function (except cleanup) contains specific chmods for | |
# the desired webapp. | |
# | |
# froxlor customer who owns the webspace |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Author: xtrcode | |
# Set full title | |
title: //h1[contains(concat(' ',normalize-space(@class),' '),' entry-title ')] | |
date: //time | |
author: //a[@rel='author'] | |
# Content is here | |
body: //div[contains(concat(' ',normalize-space(@class),' '),' entry-content ')] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//This the important part, include the De suffixed version instead of the normal one and the rest goes same as the original lib. | |
// see: https://github.com/adnan-alhomssi/DigistumpArduinoDe | |
#include "DigiKeyboardDe.h" | |
int LOOP = 0; | |
char *payload = "xdg-open https://www.youtube.com/watch?v=dQw4w9WgXcQ & exit"; | |
void setup() { | |
DigiKeyboard.delay(2000); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
mkdir -p /tmp | |
cd /tmp | |
git clone https://github.com/Airblader/xcb-util-xrm | |
cd xcb-util-xrm | |
git submodule update --init | |
./autogen.sh --prefix=/usr | |
make | |
sudo make install |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.company; | |
import java.awt.*; | |
import java.io.*; | |
import com.itextpdf.text.*; | |
import com.itextpdf.text.pdf.*; | |
import java.awt.datatransfer.DataFlavor; | |
import java.awt.datatransfer.UnsupportedFlavorException; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func CopySyncMap(m sync.Map) sync.Map { | |
var cp sync.Map | |
m.Range(func(k, v interface{}) bool { | |
vm, ok := v.(sync.Map) | |
if ok { | |
cp.Store(k, CopySyncMap(vm)) | |
} else { | |
cp.Store(k, v) | |
} |