Skip to content

Instantly share code, notes, and snippets.

View Gujarats's full-sized avatar
💭
Reviewer

Gujarat Santana Gujarats

💭
Reviewer
View GitHub Profile
@mrowrpurr
mrowrpurr / Papyrus Project Template File.ppj.md
Last active October 22, 2024 15:56
VS Code File Templates for Papyrus

Note: Check to verify the path in these files matches your Skyrim install folder (else change the paths)

To use these templates with the Papyrus Extension for Visual Studio Code:

  1. Install the extension
  2. Download the latest version of Pyro
  3. Browse to C:\Users\[YOUR USER]\.vscode\extensions\joelday.papyrus-lang-vscode-*\
  4. Delete everything in the pyro folder and replace it with the freshly downloaded version of pyro
  5. Open up the resources/sse folder
  6. Open skyrimse.ppj and replace the contents with the contents of the skyrimse.ppj in this Gist
@enricofoltran
enricofoltran / main.go
Last active October 3, 2024 14:08
A simple golang web server with basic logging, tracing, health check, graceful shutdown and zero dependencies
package main
import (
"context"
"flag"
"fmt"
"log"
"net/http"
"os"
"os/signal"
@LexManos
LexManos / 00.Readme.txt
Last active October 12, 2024 00:00
UltimateSkyrim Mod List
This is a installer for Skyrim modpacks/Ultimate Skyrim. It is very much a work in progress.
It requires files downloaded and specific metadata files in the downloads folder. I've written a script to do all of this downloading for you, however as Nexus has no official API I will be keeping that script private as to not piss them off.
It also requires my fork of pylzma to be installed:
https://github.com/LexManos/pylzma
Clone that, and run py setup.py install
It also requires rarfile to be installed:
pip install rarfile
@posener
posener / go-shebang-story.md
Last active October 18, 2024 01:42
Story: Writing Scripts with Go

Story: Writing Scripts with Go

This is a story about how I tried to use Go for scripting. In this story, I’ll discuss the need for a Go script, how we would expect it to behave and the possible implementations; During the discussion I’ll deep dive to scripts, shells, and shebangs. Finally, we’ll discuss solutions that will make Go scripts work.

Why Go is good for scripting?

While python and bash are popular scripting languages, C, C++ and Java are not used for scripts at all, and some languages are somewhere in between.

@chazcheadle
chazcheadle / config.go
Created June 7, 2017 04:32
Golang Viper config read into struct
package main
import (
"fmt"
"github.com/spf13/viper"
)
// Create private data struct to hold config options.
type config struct {
@nikhita
nikhita / update-golang.md
Last active November 26, 2024 10:31
How to update the Go version

How to update the Go version

System: Debian/Ubuntu/Fedora. Might work for others as well.

1. Uninstall the exisiting version

As mentioned here, to update a go version you will first need to uninstall the original version.

To uninstall, delete the /usr/local/go directory by:

@gene1wood
gene1wood / role_arn_to_session.py
Created December 29, 2016 17:38
Simple python function to assume an AWS IAM Role from a role ARN and return a boto3 session object
import boto3
def role_arn_to_session(**args):
"""
Usage :
session = role_arn_to_session(
RoleArn='arn:aws:iam::012345678901:role/example-role',
RoleSessionName='ExampleSessionName')
client = session.client('sqs')
"""
@tomysmile
tomysmile / memcached_macosx.md
Created April 26, 2016 13:27
Installing memcached on Mac with Homebrew and Lunchy

Installing memcached on Mac with Homebrew and Lunchy

This is a quick guide for installing memcached on a Mac with Homebrew, and starting and stopping it with Lunchy. I hope this tutorial will get your memcached up and running in no time.

Step 1 — Install Homebrew

Installing Homebrew is super easy. Just paste this in your terminal —

$ ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
@AntoineAugusti
AntoineAugusti / limitConcurrentGoroutines.go
Last active July 30, 2024 17:58
Limit the maximum number of goroutines running at the same time
package main
import (
"flag"
"fmt"
"time"
)
// Fake a long and difficult work.
func DoWork() {
@m1st0
m1st0 / php_build_ubuntu.sh
Last active November 25, 2023 07:33
Compiling PHP 8 on Ubuntu 22.10 with Various Supported Modules
#!/bin/bash
# PHP 8 Compile #
# Author: Maulik Mistry
# Please share support: https://www.paypal.com/paypalme/m1st0
# References:
# http://www.zimuel.it/install-php-7/
# http://www.hashbangcode.com/blog/compiling-and-installing-php7-ubuntu
# root-talis https://gist.github.com/root-talis/40c4936bf0287237839ccd3fdfdaec28
#