Skip to content

Instantly share code, notes, and snippets.

SoabY / JetBrains products Activation code until 15 May 2024
Created October 1, 2023 08:04
JetBrains products Activation code until 15 May 2024
View JetBrains products Activation code until 15 May 2024

FWIW: I (@Rondy) am not the author of the content presented here, which is an outline from Edmond Lau's book. I've just copy-pasted it from somewhere and saved as a personal gist, before it got popular on I don't remember where exactly the original source is from and neither could find the author's name, so I cannot give him/her the proper credits.

Effective Engineer - Notes

lucahammer / tweetXer.js
Last active October 2, 2023 03:02
X all your Tweets for free
View tweetXer.js
// ==UserScript==
// @name TweetXer
// @namespace
// @version 0.3
// @description Delete all your Tweets for free.
// @author Luca
// @match*
// @icon
// @grant unsafeWindow
// ==/UserScript==
frntn / gist:f25726df962fc29c6dde
Last active October 2, 2023 03:00
azure-cli cheatsheet
View gist:f25726df962fc29c6dde
list [options] #List the imported subscriptions
show [options] [subscriptionNameOrId] #Show details about a subscription
set [options] <subscriptionNameOrId> #Set the current subscription
clear [options] #Remove a subscription or environment, or clear all of the stored account and environment info
import [options] <file> #Import a publishsettings file or certificate for your account
download [options] #Launch a browser to download your publishsettings file
env... #Commands to manage your account environment
jinjier / 250.csv
Last active October 2, 2023 03:00
JavDB Top 250 movies code list. [Updated at 2023/09]
View 250.csv
1 LAFBD-41
2 ABP-984
3 SSNI-497
4 IPX-580
5 IPX-811
6 SMBD-115
7 ABF-017
8 ABP-159
9 IPX-177
10 STARS-804
SheldonWangRJT / Convert .mov or .MP4 to
Last active October 2, 2023 02:57
Convert Movie(.mov) file to Gif(.gif) file in one command line in Mac Terminal
View Convert .mov or .MP4 to

This notes is written by Sheldon. You can find me with #iOSBySheldon in Github, Youtube, Facebook, etc.


Convert .mov/.MP4 to .gif


As a developer, I feel better to upload a short video when I create the pull request to show other viewers what I did in this PR. I tried .mov format directly got after finishing recording screen using Quicktime, however, gif offers preview in most web pages, and has smaller file size.

This is not limited to developer, anyone has this need can use this method to convert the files.

othyn /
Last active October 2, 2023 02:56
How to setup a Factorio Headless Server

[LINUX] Factorio Headless Server Guide

So, with credit to the Factorio wiki and cbednarski's helpful gist, I managed to eventually setup a Factorio headless server. Although, I thought the process could be nailed down/simplified to be a bit more 'tutorialised' and also to document how I got it all working for my future records.

The specific distro/version I'm using for this guide being Ubuntu Server 16.04.1 LTS. Although, that shouldn't matter, as long as your distro supports systemd (just for this guide, not a Factorio headless requirement, although most distros use it as standard now). The version of Factorio I shall be using is 0.14.20, although should work for any version of Factorio 0.14.12 and higher.

Just a note to newcomers: If there are any issues with the installation steps, people in the comments are doing a good job

zacharydenton /
Created February 18, 2011 02:27
Geodesic Distance Between Points in GeoDjango
from itertools import tee, izip
from django.contrib.gis.db import models
from django.contrib.gis.measure import Distance
from geopy.distance import distance as geopy_distance
def pairwise(iterable):
"s -> (s0,s1), (s1,s2), (s2, s3), ..."
a, b = tee(iterable)
lancethomps / close_notifications_applescript.js
Last active October 2, 2023 02:52
AppleScript to close all notifications on macOS Big Sur, Monterey, and Ventura
View close_notifications_applescript.js
function run(input, parameters) {
const appNames = [];
const skipAppNames = [];
const verbose = true;
const scriptName = "close_notifications_applescript";
const CLEAR_ALL_ACTION = "Clear All";
const CLEAR_ALL_ACTION_TOP = "Clear";