brew install nano
alias nano='/usr/local/bin/nano'
source ./zshrc
name: 'Dependency Review' | |
on: [pull_request] | |
permissions: | |
contents: read | |
jobs: | |
dependency-review: | |
runs-on: ubuntu-latest | |
steps: | |
- name: 'Checkout Repository' | |
uses: actions/checkout@v3 |
# This file is licensed under the terms of the MIT license https://opensource.org/license/mit | |
# Copyright (c) 2021-2025 Marat Reymers | |
## Golden config for golangci-lint v2.1.6 | |
# | |
# This is the best config for golangci-lint based on my experience and opinion. | |
# It is very strict, but not extremely strict. | |
# Feel free to adapt it to suit your needs. | |
# If this config helps you, please consider keeping a link to this file (see the next comment). |
// ==UserScript== | |
// @name Tinder Deblur | |
// @namespace Violentmonkey Scripts | |
// @match https://tinder.com/* | |
// @grant none | |
// @version 1.4 | |
// @author Tajnymag | |
// @downloadURL https://raw.githubusercontent.com/tajnymag/tinder-deblur/main/tinder.user.js | |
// @description Simple script using the official Tinder API to get clean photos of the users who liked you | |
// ==/UserScript== |
func greyScale(pixels *[][]color.Color) { | |
ppixels := *pixels | |
xLen:=len(ppixels) | |
yLen := len(ppixels[0]) | |
//create new image | |
newImage:=make([][]color.Color, xLen) | |
for i:=0;i<len(newImage);i++{ | |
newImage[i] = make([]color.Color,yLen) | |
} | |
//idea is processing pixels in parallel |
import React, { useState, useEffect } from 'react' | |
import PropTypes from 'prop-types' | |
import { checkIsAuthenticated, authSignUp, authLogin, authLogout } from '../../services/auth' | |
export const AuthContext = React.createContext({}) | |
export default function Auth({ children }) { | |
const [isAuthenticated, setIsAuthenticated] = useState(false) | |
const [isLoading, setIsLoading] = useState(true) |
Based on RESTful API Design — Step By Step Guide
const puppeteer = require("puppeteer"); | |
let waitTime = 5 * 1000; | |
async function testAjax() { | |
const url = "https://www.notion.so/Test-page-all-c969c9455d7c4dd79c7f860f3ace6429" | |
const browser = await puppeteer.launch(); | |
const page = await browser.newPage(); | |
await page.setRequestInterception(true); | |
// those we don't want to log because they are not important |
This gist has two files in it: first-names.txt and last-names.txt, each with 4096 names taken from some unnamed database.
Useful for generating mock data for testing or for opfuscating production data for testing.
See https://stackoverflow.com/a/50242368/15109 for some thoughts about data obfuscation.
FROM microsoft/dotnet:2.0-sdk as builder | |
RUN mkdir -p /root/src/app/aspnetcoreapp | |
WORKDIR /root/src/app/aspnetcoreapp | |
#copy just the project file over | |
# this prevents additional extraneous restores | |
# and allows us to resuse the intermediate layer | |
# This only happens again if we change the csproj. | |
# This means WAY faster builds! |