Filter | Description | Example |
---|---|---|
allintext | Searches for occurrences of all the keywords given. | allintext:"keyword" |
intext | Searches for the occurrences of keywords all at once or one at a time. | intext:"keyword" |
inurl | Searches for a URL matching one of the keywords. | inurl:"keyword" |
allinurl | Searches for a URL matching all the keywords in the query. | allinurl:"keyword" |
intitle | Searches for occurrences of keywords in title all or one. | intitle:"keyword" |
This file contains 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
curl -Ss -u <username> --header "X-GitHub-OTP: <OTP from your SMS or App>" https://api.github.com/orgs/<orgname>/repos | \ | |
jq -a -r ".[].ssh_url" | \ | |
xargs -I "{}" git clone "{}"` |
This file contains 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 | |
# Adicione um novo remote; pode chamá-lo de "upstream": | |
git remote add upstream https://github.com/usuario/projeto.git | |
# Obtenha todos os branches deste novo remote, | |
# como o upstream/master por exemplo: | |
git fetch upstream |
This file contains 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
import { useEffect, useState } from 'react'; | |
import { Flex, Select, Box, Text, Input, Spinner, Icon, Button } from '@chakra-ui/react'; | |
import { useRouter } from 'next/router'; | |
import { MdCancel } from 'react-icons/md'; | |
import Image from 'next/image'; | |
import { filterData, getFilterValues } from '../utils/filterData'; | |
import { baseUrl, fetchApi } from '../utils/fetchApi'; | |
import noresult from '../assets/images/noresult.svg'; |
This file contains 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
/* | |
* Type definitions for ExcelJS | |
* Project: https://github.com/guyonroche/exceljs | |
* Definitions by: Rycochet https://github.com/Rycochet | |
* | |
* This is a WIP | |
*/ | |
declare namespace ExcelJS { | |
type Zip = any; |
This file contains 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
CREATE TABLE "users" ( | |
"id" SERIAL PRIMARY KEY, | |
"name" TEXT NOT NULL | |
); | |
CREATE TABLE "files" ( | |
"id" SERIAL PRIMARY KEY, | |
"name" text NOT NULL | |
); |
Below some step by step with bash functions example on how to dump your database and restore it to your db server.
✅ Dump the source database to a file.
function pgDumpDB() {
echo 'Type db user: ' && read DBUSER;
echo 'Type db name: ' && read DBNAME;
pg_dump -U $DBNAME -O $DBNAME $DBNAME.sql
This file contains 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 configuration file allows you to pass permanent command line arguments to VS Code. | |
// Only a subset of arguments is currently supported to reduce the likelyhood of breaking | |
// the installation. | |
// | |
// PLEASE DO NOT CHANGE WITHOUT UNDERSTANDING THE IMPACT | |
// | |
// NOTE: Changing this file requires a restart of VS Code. | |
{ | |
// Use software rendering instead of hardware accelerated rendering. | |
// This can help in cases where you see rendering issues in VS Code. |
This file contains 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/sh | |
for f in *.mp4; | |
do | |
HandBrakeCLI -i "$f" -o "${f}.m4v" --preset="480p"; | |
done | |
This file contains 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
use GuzzleHttp\Client; | |
class yourController extends Controller { | |
public function saveApiData() | |
{ | |
$client = new Client(); | |
$res = $client->request('POST', 'https://url_to_the_api', [ | |
'form_params' => [ |
NewerOlder