Skip to content

Instantly share code, notes, and snippets.

@ih2502mk
ih2502mk / list.md
Last active January 4, 2025 11:47
Quantopian Lectures Saved
@PixelSergey
PixelSergey / wireless.md
Last active January 4, 2025 11:45
FTP guide

Transferring files wirelessly between your 3DS and computer

This is especially useful if you do not have an SD card reader or if you do not want to open the New 3DS' pesky shell.

There are two options: the official MicroSD management (New 3DS only) (Requires Windows) or FTPD (must have CFW or homebrew installed).

FTPD is quicker and easier to use in the long run and can be used on all systems and computers (and phones!); however, MicroSD management is official and can be done with a stock system.



@qoomon
qoomon / conventional-commits-cheatsheet.md
Last active January 4, 2025 11:41
Conventional Commits Cheatsheet

Conventional Commit Messages starline

See how a minor change to your commit message style can make a difference.

Tip

Have a look at git-conventional-commits , a CLI util to ensure these conventions, determine version and generate changelogs

Commit Message Formats

Default

@sunmeat
sunmeat / main.cpp
Created January 4, 2025 11:38
найпростіший приклад на клієнт-серверну взаємодію
#include <iostream>
#include <windows.h>
#pragma comment(lib, "urlmon.lib")
using namespace std;
int main() {
// URL для завантаження
const char* srcURL = "https://www.gismeteo.ua/weather-odessa-4982/";
// файл для збереження
@vszakats
vszakats / s3-upload-aws4.sh
Last active January 4, 2025 11:38
AWS S3 upload using signature v4
#!/bin/sh
# To the extent possible under law, Viktor Szakats
# has waived all copyright and related or neighboring rights to this
# script.
# CC0 - https://creativecommons.org/publicdomain/zero/1.0/
# SPDX-License-Identifier: CC0-1.0
# THIS SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
@Jonny-exe
Jonny-exe / syncthing-setup-exclusively-with-CLI.md
Last active January 4, 2025 11:35
syncthing setup exclusively with CLI

After long searching I did not find a good description of how to set up Syncthing that works exclusively via CLI without using a Web browser on the devices.

This is useful for example on a headless Raspberry Pi without proxying web-traffic through SSH or with port-forwarding limitations. In this example we will want to share the default folder from Machine A with Machine B

Machine A Machine B
@elizacamber
elizacamber / GetYoutubePlayPlaylistIntent.java
Created August 8, 2017 08:58
Intent for playing a playlist in the youtube app
public static Intent getYoutubePlayPlaylistIntent(Context context, String googleId) {
String url = String.valueOf("https://www.youtube.com/playlist?list=");
String mGoogleId = String.valueOf(googleId);
if (mGoogleId.length() != 0) {
url = url.concat(mGoogleId);
}
Uri uri = Uri.parse(url).buildUpon().appendQueryParameter("playnext", "1").build();
Intent intent = new Intent("android.intent.action.VIEW", uri).setPackage("com.google.android.youtube");
PackageManager packageManager = context.getPackageManager();
@Bunkerbewohner
Bunkerbewohner / unity-detect-wireless-buzzer.cs
Created May 3, 2021 09:28
Detecting wireless Buzz! buzzers with Unity engine
using System;
using System.Collections.Generic;
using HidSharp; // https://www.nuget.org/packages/HidSharp/
using UnityEngine;
namespace Goldsaucer.Askutron.HardwareInput
{
public class WirelessBuzzBuzzers : MonoBehaviour
{
class ConnectedReceiver
@roachhd
roachhd / README.md
Last active January 4, 2025 11:30
Basics of BrainFuck

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

BrainFuck Programming Tutorial by: Katie

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

INTRODUCTION

@linxichen
linxichen / dell_loud_fan.txt
Created February 7, 2022 23:35
Solution to Dell PowerEdge server loud fan
Reddit post: https://www.reddit.com/r/homelab/comments/j3hh1r/poweredge_r730xd_fans_loud_wont_slow_down_help/
iDRAC Setting Fan Speed on Poweredge R730xd with IPMI (should work with others but cmds will vary with device names
=========================================================================================================
Reference: https://gist.github.com/mdpuma/8972079b7da52afef15cc039039ff818
1. Get your iDRAC on the LAN and config a username and password
2. In the iDRAC interface (access via web browser), enable IPMI in iDRAC Settings > Network > IPMI Settings
3. Download/install the Dell iDRAC tools for windows (in this case, filename was DellEMC-iDRACTools-Web-WINPE-9.4.0-3732_A00.exe)
4. Open a cmd prompt (iDRAC IP in this example is 192.168.16.2)
5. cd c:\program files\dell\sysmgt\iDRACTools\IPMI