Skip to content

Instantly share code, notes, and snippets.

@chan-mai
chan-mai / gist:5bab0cc3655151b57bab3cb6363f9871
Last active May 7, 2024 07:40
問題のあるインスタンスをよしなにブロックしてくれるGASsc

スプレッドシートとにらめっこして手動で追加していくのに疲れたので作りました。 GASで動くのでタイムスケジュールを組んであげると幸せになれるかもしれません。

// CHANGE HERE
HOST = "" // サーバーのホスト部を指定  ex) shahu.ski
TOKEN = "" // 権限のあるトークンを指定

// スプシから問題のあるインスタンスのリストを取得
function getData(id, sheetName) {
@h3ssan
h3ssan / JetBrains trial reset.md
Last active May 7, 2024 07:39
Reset all JetBrains products trial in Linux

In some cases, only these lines will work

for product in IntelliJIdea WebStorm DataGrip PhpStorm CLion PyCharm GoLand RubyMine; do
    rm -rf ~/.config/$product*/eval 2> /dev/null
    rm -rf ~/.config/JetBrains/$product*/eval 2> /dev/null
done

But if not, try these

@smkplus
smkplus / UnityShaderCheatSheet.md
Last active May 7, 2024 07:34
Controlling fixed function states from materials/scripts in Unity

16999105_467532653370479_4085466863356780898_n

Shader "MaterialPropertyDrawer"
{
Properties
{
_MainTex("Texture", 2D) = "white" {}
 
[HideInInspector] _MainTex2("Hide Texture", 2D) = "white" {}
@sesgoe
sesgoe / 01_scripts_and_styles.js
Last active May 7, 2024 07:32
Retool Realtime WebSocket
const webSocket = new WebSocket('wss://echo.websocket.org');
//Event listeners are the pillars upon which WebSockets are built. This event fires when the WebSocket is considered 'OPEN',
//which means that it has connected successfully.
webSocket.addEventListener('open', function(event) {
console.log('websocket connected successfully') //log this into the browser console so we can check if the websocket connected
});
//This is a global reference to the websocket that we created. We need this because otherwise multiple JS
@silas
silas / README.md
Created June 20, 2019 15:15
Anki JavaScript Cards

Anki JavaScript Cards

This demonstrates one method for creating JavaScript based Anki cards.

Tested on

  • [Anki for desktop computers][anki-desktop] version 2.1.13
  • [AnkiMobile][anki-mobile] (iOS) version 2.0.48

Instructions

@rxaviers
rxaviers / gist:7360908
Last active May 7, 2024 07:32
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:
@devops-school
devops-school / Prometheus-Pushgateway-Installation-Configuration-and-Using-tutorials.sh
Last active May 7, 2024 07:32
Prometheus Pushgateway Installation, Configuration and Using tutorials.
# Get the latest version of pushgateway from prometheus.io, then download and extract:
$ wget https://github.com/prometheus/pushgateway/releases/download/v0.8.0/pushgateway-0.8.0.linux-amd64.tar.gz
$ tar -xvf pushgateway-0.8.0.linux-amd64.tar.gz
# Create the pushgateway user:
$ useradd --no-create-home --shell /bin/false pushgateway
# Move the binary in place and update the permissions to the user that we created:
$ cp pushgateway-0.8.0.linux-amd64/pushgateway /usr/local/bin/pushgateway
$ chown pushgateway:pushgateway /usr/local/bin/pushgateway
@KillyMXI
KillyMXI / README.md
Last active May 7, 2024 07:31
Obsidian live-preview list threading and highlight
@FANMixco
FANMixco / gist:5d6b9d746cc801eb93da6ac898b020c3
Created March 4, 2024 17:29
OpenAI JSON sample for gpt-3.5-turbo-instruct
{
"choices": [
{
"text": "Generated text goes here."
}
],
"completion": {
"model": "gpt-3.5-turbo-instruct",
"prompt": "Your input prompt goes here.",
"temperature": 0.7,