Skip to content

Instantly share code, notes, and snippets.

@gmessner
gmessner / sonarqube-service.sh
Last active May 1, 2024 10:29
This Bash script provides lifecycle management for SonarQube running as a service in a Docker container.
#!/bin/bash
#
# This gist is licensed under the MIT License (MIT), see http://www.messners.com/mit-license.txt
# Copyright (c) 2014-2019 Greg Messner, greg@messners.com
#
#
# This is the service utility script for running SonarQube in a docker container. It is intended
# to be called from upstart or systemd service scripts, but can also be used from the command line
@aamiaa
aamiaa / CompleteDiscordQuest.md
Last active May 1, 2024 10:27
Complete Recent Discord Quest

Complete Recent Discord Quest

Note

This no longer works in browser!

Note

This no longer works if you're alone in vc! Somebody else has to join you!

How to use this script:

  1. Accept the quest under User Settings -> Gift Inventory
@MiguelonGonzalez
MiguelonGonzalez / spectrograms.ipynb
Created January 14, 2021 15:16 — forked from aprovecharLab/spectrograms.ipynb
Fun with Continuous Wavelet Transform Spectrograms
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mjkstra
mjkstra / arch_linux_installation_guide.md
Last active May 1, 2024 10:26
A modern, updated installation guide for Arch Linux with BTRFS on an UEFI system
@hivehand
hivehand / qrenc-wifi
Created May 1, 2024 10:08
Scriptlet for creating QR codes that let people join a WiFi network just by scanning the code.
#! /usr/bin/env ruby
# Take a network SSID as an argument, and prompt for the corresponding
# password. Generate a WiFi-network credential set suitable for QR
# encodring as defined in:
#
# https://github.com/zxing/zxing/wiki/Barcode-Contents#wi-fi-network-config-android-ios-11
#
# then generate that QR code and save it to `<SSID>-QR.png`.
#
@yagehu
yagehu / default.custom.yaml
Last active May 1, 2024 10:23
RIME fcitx 默认简体中文设置 (Config to make fcitx-rime default to simplified Chinese)
patch:
schema_list:
- schema: luna_pinyin_simp
- schema: luna_pinyin
- schema: luna_pinyin_fluency
- schema: bopomofo
- schema: bopomofo_tw
- schema: cangjie5
- schema: stroke
- schema: terra_pinyin
@lukas-h
lukas-h / license-badges.md
Last active May 1, 2024 10:20
Markdown License Badges for your Project

Markdown License badges

Collection of License badges for your Project's README file.
This list includes the most common open source and open data licenses.
Easily copy and paste the code under the badges into your Markdown files.

Notes

  • The badges do not fully replace the license informations for your projects, they are only emblems for the README, that the user can see the License at first glance.

Translations: (No guarantee that the translations are up-to-date)

@htr3n
htr3n / macos-ramdisk.md
Last active May 1, 2024 10:16
Creating RAM disk in macOS

Built-in

diskutil erasevolume HFS+ 'RAM Disk' `hdiutil attach -nobrowse -nomount ram://XXXXX`

where XXXXX is the size of the RAM disk in terms of memory blocks.

Notes:

@Clybius
Clybius / index.html
Last active May 1, 2024 10:14
Embed AV1/No File Size Capped Videos in Discord
<head>
<meta property="og:image" content="GifToEmbedURL"> # Change the content to the link of a gif of your choice, which will be shown as the embed.
<meta property="og:type" content="video.other">
<meta property="og:video:url" content="VideoToEmbedURL"> # Change the content to the link of a video of your choice. Will work with videos over 50 MB, and even unsupported codecs such as AV1!
<meta property="og:video:width" content="1920"> # Set this to the video's width and height, not required, but will show the video as intended if the aspect ratio and size is correct.
<meta property="og:video:height" content="1080">
</head>
@ALiangLiang
ALiangLiang / vpn.ps1
Last active May 1, 2024 10:12
Create and connect VPN with powershell script
# Author: ALiangLiang <me@aliangliang.top>
# Replace VPN_NAME, ADDRESS and ACCOUNT first!!
# Ref: https://docs.microsoft.com/en-us/powershell/module/vpnclient/add-vpnconnection?view=win10-ps
$VPN_NAME = 'VPN'
$ADDRESS = 'vpn.example.com'
$ACCOUNT = 'user1'
function Connect {