Skip to content

Instantly share code, notes, and snippets.

@SheldonWangRJT
SheldonWangRJT / Convert .mov or .MP4 to .gif.md
Last active April 26, 2024 04:27
Convert Movie(.mov) file to Gif(.gif) file in one command line in Mac Terminal

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

Need

Convert .mov/.MP4 to .gif

Reason

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.

@cjmaxik
cjmaxik / README.md
Last active April 26, 2024 04:26
Перевод валюты в рубли в Steam

Перевод валюты в рубли в Steam

Поддерживаются тенге, лиры, песо и гривны. Курс обновляется раз в 12 часов

Изменения

  • 0.9 - добавил гривны. Привет ПДФ
  • 0.8 - исправил обновление текущего курса валюты
  • 0.7 - исправил отображение баланса кошелька и изменил стиль оригинальной стоимости
  • 0.6 - добавил аргентинское песо, исправил ошибки
  • 0.5 - включил автообновление скрипта, исправил обновление курса валют
  • 0.4 - заменил источник курса (ближе к реальному), исправил перевод на страницах бандлов
class MainActivity : ComponentActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
WindowCompat.setDecorFitsSystemWindows(window, false)
super.onCreate(savedInstanceState)
setContent {
ColorPickerTheme {
Surface(
modifier = Modifier.fillMaxSize(),
color = MaterialTheme.colorScheme.background
) {
@pyrou
pyrou / docker-compose.yml
Last active April 26, 2024 04:19
Use https://traefik.me SSL certificates for local HTTPS without having to touch your /etc/hosts or your certificate CA.
version: '3'
services:
traefik:
restart: unless-stopped
image: traefik:v2.0.2
ports:
- "80:80"
- "443:443"
labels:
- "traefik.http.services.traefik.loadbalancer.server.port=8080"
@tykurtz
tykurtz / grokking_to_leetcode.md
Last active April 26, 2024 04:17
Grokking the coding interview equivalent leetcode problems

GROKKING NOTES

I liked the way Grokking the coding interview organized problems into learnable patterns. However, the course is expensive and the majority of the time the problems are copy-pasted from leetcode. As the explanations on leetcode are usually just as good, the course really boils down to being a glorified curated list of leetcode problems.

So below I made a list of leetcode problems that are as close to grokking problems as possible.

Pattern: Sliding Window

@LukeZGD
LukeZGD / ios-downgrade-dualboot.md
Last active April 26, 2024 04:12
Downgrade and dualboot status of almost all iOS devices

Downgrade and dualboot status of almost all iOS devices

UPDATED: 2024-04-09

@nainemom
nainemom / subtranslate.lua
Last active April 26, 2024 04:03
MPV script to translate current line of subtitle
-- Simple mpv script to translate subtitle using crow (online) or sdcv (offline) dictionaries.
-- INSTALLATION:
-- To install it, first install crow (https://crow-translate.github.io) and/or sdcv (http://dushistov.github.io/sdcv/) on your marchine with your favorite dicts and then,
-- copy this file to '~/.config/mpv/scripts/' (Linux) or '%AppData%\mpv\scripts\' (Windows).
-- sdcv help:
-- you can download offline dicts from http://download.huzheng.org/Quick/ (or anywhere else) and copy extracted dic folder to '~/.stardict/dic/'
-- CONFIGURATION:
local config = {
@neoakris
neoakris / prom-gui_and_GMP_on_GKE_autopilot.md
Last active April 26, 2024 04:00
Example of Troubleshoot Prom GUI and GMP on GKE Autopilot
// ==UserScript==
// @name Chat Deck Viewer
// @namespace https://uc.feildmaster.com/
// @version 0.1.1
// @description Translate deck codes into buttons
// @author feildmaster
// @match https://*.undercards.net/*
// @exclude https://*.undercards.net/*/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=undercards.net
// @require https://raw.githubusercontent.com/UCProjects/UnderScript/master/src/checker.js