Skip to content

Instantly share code, notes, and snippets.

View creazy231's full-sized avatar
🎯
Focusing

Tobias Thiele creazy231

🎯
Focusing
View GitHub Profile
@dgibbs64
dgibbs64 / cs2_cvarslist.txt
Last active January 29, 2024 01:13
CS2 cvarslist
cvar list
--------------
_record : cmd : norecord, release : Record a demo incrementally.
adsp_debug : 0 : a :
ai_debug_dyninteractions : 0 : sv, cheat : Debug the NPC dynamic interaction system.
ai_debug_los : 0 : sv, cheat : NPC Line-Of-Sight debug mode. If 1, solid entities that block NPC LOC will be highlighted with white bounding boxes. If 2, it'll show non-solid entities that would do it if they were solid.
ai_debug_off_nav : false : sv, cheat :
ai_debug_shoot_positions
@NatoBoram
NatoBoram / Public IPFS Gateway.md
Last active March 2, 2024 18:09
The complete guide to hosting a public IPFS gateway

Hosting a public IPFS gateway

This guide assumes that you've used ssh before. If not, then you must read How to Set Up SSH Keys.

I'm also going to assume you've used ipfs before. If not, then take some time to discover IPFS with IPFS Desktop, IPFS Companion and go-ipfs!

Get a host

A public IPFS gateway can be hosted at home or on the cloud.

@emiliobondioli
emiliobondioli / magpie.js
Last active January 27, 2022 22:55
Nuxt Magpie module
const fs = require('fs')
const { URL } = require('url')
const { join } = require('path')
const axios = require('axios')
const consola = require('consola')
const defaults = {
path: '/_images', // dir where downloaded images will be stored
extensions: ['jpg', 'jpeg', 'gif', 'png', 'webp'],
baseUrl: '' // cms url
@rathankalluri
rathankalluri / yoast.php
Last active December 19, 2019 21:48
Yoast wp-json API
<?php
// ..... add the following in wordpress functions.php file
/**
* Yoast Rest API Customized
*/
function wp_yoast_rest( WP_REST_Request $request ){
$post_id = $request ['post_id'];
$title = $request['seo_title'];
$desc = $request['seo_desc'];
@DreaMinder
DreaMinder / A Nuxt.js VPS production deployment.md
Last active October 11, 2023 11:33
Deployment manual for a real-world project built with nuxt.js + koa + nginx + pm2

Example of deployment process which I use in my Nuxt.js projects. I usually have 3 components running per project: admin-panel SPA, nuxt.js renderer and JSON API.

This manual is relevant for VPS such as DigitalOcean.com or Vultr.com. It's easier to use things like Now for deployment but for most cases VPS gives more flexebillity needed for projects bigger than a landing page.

UPD: This manual now compatible with nuxt@2.3. For older versions deployment, see revision history.


Let's assume that you have entered fresh installation of Ubuntu instance via SSH. Let's rock:

@Gomah
Gomah / Dockerfile
Last active March 23, 2021 14:33
Nuxt.js Dockerfile :: Now.sh
FROM node:10-alpine
# Create app directory
RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app
# Install app dependencies
COPY package.json /usr/src/app/
COPY yarn.lock /usr/src/app/
RUN yarn install
@kerihenare
kerihenare / docker-compose.yml
Last active February 18, 2022 21:50
Quick MAMP docker example
version: '2'
services:
web:
image: php:apache
restart: unless-stopped
volumes:
- $PWD:/var/www
ports:
- 80:80
@almirage
almirage / ImageAnimation.cs
Last active May 24, 2024 08:29
Sprite animation for UI.Image on Unity
using UnityEngine;
using System.Collections;
using UnityEngine.UI;
public class ImageAnimation : MonoBehaviour {
public Sprite[] sprites;
public int spritePerFrame = 6;
public bool loop = true;
public bool destroyOnEnd = false;