Skip to content

Instantly share code, notes, and snippets.

View EsteveSegura's full-sized avatar
❄️
Focusing

Esteve Segura EsteveSegura

❄️
Focusing
View GitHub Profile
@sosan
sosan / gist:b5dc8573f3d84f24ddf1aa880f94a982
Last active March 26, 2022 12:16
deploy mongo statefulset con volumenclain y volumenmounts, service, secrets
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: mongodb-single
labels:
app: mongodb
spec:
serviceName: mongodb-single
replicas: 1
updateStrategy:
@xenogenesi
xenogenesi / .dockerignore
Last active December 13, 2023 14:44
Docker file for Wav2Lip
# Ignore everything
**
# Allow files and directories
!/audio.py
!/Dockerfile
!/hparams.py
!/preprocess.py
!/checkpoints/
!/evaluation/
@bradtraversy
bradtraversy / mongodb_cheat_sheet.md
Last active April 19, 2024 02:47
MongoDB Cheat Sheet

MongoDB Cheat Sheet

Show All Databases

show dbs

Show Current Database

@davydany
davydany / IPTABLES-CHEATSHEET.md
Last active March 19, 2024 21:29
IP Tables (iptables) Cheat Sheet

IP Tables (iptables) Cheat Sheet

IPTables is the Firewall service that is available in a lot of different Linux Distributions. While modifiying it might seem daunting at first, this Cheat Sheet should be able to show you just how easy it is to use and how quickly you can be on your way mucking around with your firewall.

Resources

The following list is a great set of documentation for iptables. I used them to compile this documentation.

console.log(`%c ________________________________________
< mooooooooooooooooooooooooooooooooooooo >
----------------------------------------
\\ ^__^
\\ (oo)\\_______
(__)\\ )\\/\\
||----w |
|| ||`, "font-family:monospace")
@takien
takien / youtubeID.js
Last active April 13, 2024 16:19
Get YouTube ID from various YouTube URL using JavaScript
/**
* Get YouTube ID from various YouTube URL
* @author: takien
* @url: http://takien.com
* For PHP YouTube parser, go here http://takien.com/864
*/
function YouTubeGetID(url){
var ID = '';
url = url.replace(/(>|<)/gi,'').split(/(vi\/|v=|\/v\/|youtu\.be\/|\/embed\/)/);