Skip to content

Instantly share code, notes, and snippets.

@jimmywarting
jimmywarting / readme.md
Last active July 22, 2024 15:13
Cors proxies
Exposed headers
Service SSL status Response Type Allowed methods Allowed headers

As far as I can tell, you can't do it conveniently. That is, git-rebase does not give you an option to preserve the committer date. Unless you give the --ignore-date (or its alias, --reset-author-date) option, it will always preserve the author date. However, there is no way to make git-rebase preserve the committer date, unless some manual script is crafted.

The best you can do is to make the committer date equal to the author date. Recently (in 2020 Q4), git-rebase --interactive has gained the ability to use the --committer-date-is-author-date flag with the interactive rebase. Before that, there was no way of influencing the committer date at all with the interactive rebase. Note that this flag does not preserve the committer date. It merely makes the committer date equal to the author date.

You might be thinking "well, isn't that effectively preserving the committer date, since normally the committer date is always equal to the author date?". Normally, you would be correct. However, there

export const getThumbnail = (id, size = 300) =>
`https://drive.google.com/thumbnail?id=${id}&sz=${size}`;
export const getIcon = (mimeType) =>
`https://drive-thirdparty.googleusercontent.com/256/type/${mimeType}`;
export const getFile = (id) => `https://drive.google.com/uc?id=${id}`;
const downloadFile = (id) =>
@lolzballs
lolzballs / HelloWorld.java
Created March 22, 2015 00:21
Hello World Enterprise Edition
import java.io.FileDescriptor;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStream;
import java.io.PrintStream;
public class HelloWorld{
private static HelloWorld instance;
public static void main(String[] args){
instantiateHelloWorldMainClassAndRun();
@bernaction
bernaction / autoclaim.user.js
Last active July 22, 2024 15:08
auto claim faucet
// ==UserScript==
// @name Autoclaim Faucet
// @version 0.57
// @match https://xeggex.com/faucet*
// @match https://nonkyc.io/faucet*
// @author BernaCripto.com.br
// @require http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js
// @require https://gist.github.com/raw/2625891/waitForKeyElements.js
// @grant none
// @description Auto clicker faucet button on xeggex.com and nonkyc.io
@416rehman
416rehman / recoil.lua
Last active July 22, 2024 15:07
Logitech G502 Programmable No Recoil Lua Script
--------------------------------------------- HOW TO USE ---------------------------------------------
--- This script comes with 2 modes, Pattern Profiles and Variable Recoil.
--- 1. Pattern Profiles: This mode allows you to set a pattern with a name and specific recoil values.
--------------------- name: The name of the pattern. This is what you will use to switch between patterns.
--------------------- stages: The recoil stages contain the recoil values for each stage of the pattern.
----------------------------- Horizontal: The horizontal recoil value for the stage.
----------------------------- Vertical: The vertical recoil value for the stage.
----------------------------- fire_delay: The delay between each shot in the pattern.
----------------------------- end_after: The amount of time in ms to use the current stage for before moving to the next stage. If not set, or no next stage, the pattern will loop.
--------------------- <Example>: {name = "test", stages = {{horizontal = 0, vertical = 1, fire_
@ynwd
ynwd / docs-template.md
Last active July 22, 2024 15:07
Technical Documentation Template

Technical Documentation Template

First of all, you need to understand you are not writing documentation for you, nor for your current team. You are writing documentation for the future developers that were not there when you first wrote this code. Worst of it, they might think it is bad code for many reasons and won’t understand why you wrote this way.

Taken from: How to write good software technical documentation

Table of contents

@pesterhazy
pesterhazy / building-sync-systems.md
Last active July 22, 2024 15:06
Building an offline realtime sync engine

So you want to write a sync system for a web app with offline and realtime support? Good luck. You might find the following resources useful.

Overview articles

@ObserverOfTime
ObserverOfTime / BDLinux.md
Last active July 22, 2024 15:05
Install BetterDiscord on Linux

Install BetterDiscord on Linux

This Gist contains simple instructions on how to install, update, and uninstall BetterDiscord on Linux.

For more thorough documentation, take a look at betterdiscordctl's README.

Do NOT submit issues here as I don't check the comments. You should submit them here instead.