Skip to content

Instantly share code, notes, and snippets.

@vimal-verma
vimal-verma / Git-commands.md
Last active April 16, 2024 09:44
A list of Git commands

Git Commands

A list of Git commands

feel free to star this



@vishnuvardhan-s
vishnuvardhan-s / init.py
Created December 3, 2022 11:03
Lighthouse Score for Pages behind Authentication with Selenium
'''
selenium==4.7.2
webdriver_manager==3.8.5
'''
import os
from dotenv import load_dotenv
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.edge.service import Service as EdgeService
from selenium.webdriver.edge.options import Options
@sebbacon
sebbacon / bob.json
Last active April 16, 2024 09:41
Click-to-edit force directed graph in d3
{"nodes":[{"name":"Myriel","group":1},{"name":"Napoleon","group":1},{"name":"Mlle.Baptistine","group":1},{"name":"Mme.Magloire","group":1},{"name":"CountessdeLo","group":1},{"name":"Geborand","group":1},{"name":"Champtercier","group":1},{"name":"Cravatte","group":1},{"name":"Count","group":1},{"name":"OldMan","group":1}],"links":[{"source":0,"target":1,"value":1},{"source":1,"target":2,"value":8},{"source":1,"target":3,"value":10},{"source":3,"target":4,"value":1},{"source":3,"target":5,"value":1},{"source":4,"target":6,"value":1},{"source":6,"target":7,"value":1},{"source":1,"target":4,"value":2},{"source":7,"target":8,"value":1},{"source":8,"target":9,"value":1},{"source":1,"target":9,"value":1},{"source":3,"target":9,"value":1}]}
@joshbuchea
joshbuchea / semantic-commit-messages.md
Last active April 16, 2024 09:38
Semantic Commit Messages

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example

@alex-groshev
alex-groshev / gist:1e047950cb9b2d12c212
Created May 15, 2015 11:43
Invoking multiple handlers periodically from Topshelf Windows Service (using System.Threading.Timer)
using System;
using System.Collections.Generic;
using System.Threading;
using Topshelf;
namespace ConsoleApplication
{
public interface IProcess
{
void Perform();
using System;
using System.Threading;
class Program
{
static void Main()
{
AutoResetEvent reset = new AutoResetEvent(false);
StatusChecker status = new StatusChecker(5);
@bjsion
bjsion / Installing Odoo on AWS
Last active April 16, 2024 09:36
Installing Odoo ERP on AWS using RDS and EC2
# Installing Odoo on AWS
These are the steps I ran to get Odoo up and running on AWS using the free tiers (for now).
## Setup servers
### Create DB
Create an Postgres DB on Amazon RDS:
https://us-east-2.console.aws.amazon.com/rds/home?region=us-east-2#launch-dbinstance:ct=dbinstances:
### Create Server
@niisar
niisar / Service1.cs
Created May 3, 2016 12:08
Windows Service
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Diagnostics;
using System.Linq;
using System.ServiceProcess;
using System.Text;
using System.Configuration;
using System.IO;