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
#!/usr/bin/env python3 | |
import os | |
from bs4 import BeautifulSoup | |
from lxml import etree | |
import requests | |
import img2pdf | |
def jpg2pdf(fileList): | |
with open("images.pdf", "wb") as f: |
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
// GOOS=linux GOARCH=amd64 go build -o pbcopy | |
package main | |
import ( | |
"bufio" | |
"fmt" | |
"os" | |
"github.com/aymanbagabas/go-osc52/v2" | |
) |
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 | |
use Hyperf\Contract\ConfigInterface; | |
use Hyperf\LoadBalancer\LoadBalancerInterface; | |
use Hyperf\LoadBalancer\LoadBalancerManager; | |
use Hyperf\LoadBalancer\Node; | |
use Hyperf\ServiceGovernance\DriverInterface; | |
use Hyperf\ServiceGovernance\DriverManager; | |
use Hyperf\ServiceGovernanceConsul\ConsulDriver; | |
use Hyperf\Utils\ApplicationContext; | |
use Psr\Container\ContainerInterface; |
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
// You can edit this code! | |
// Click here and start typing. | |
package main | |
import ( | |
"fmt" | |
"sync" | |
"time" | |
) |
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 | |
$dir = "/tmp"; | |
$fd = \FilesystemIterator($dir); | |
foreach(iterator_to_array($fd) as $item) { | |
var_dump($item->getFilename()); | |
} |
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
# debian | |
# verison: 6.0 | |
# `-a` | |
$unzip -a demo.zip |
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 main | |
import ( | |
"embed" | |
"fmt" | |
"io/fs" | |
"log" | |
"net/http" | |
"os" | |
) |
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 main | |
import ( | |
"bytes" | |
"crypto/aes" | |
"encoding/base64" | |
"errors" | |
) | |
type Aes struct{} |
NewerOlder