Skip to content

Instantly share code, notes, and snippets.

@bergmannjg
bergmannjg / rearct-native-app-in-wsl2.md
Last active May 11, 2024 18:17
Building a react native app in WSL2
@rfajarachmad
rfajarachmad / install_codedeploy_agent_linux.sh
Created October 21, 2016 15:22
Install Code Deploy Agent on EC2 Linux instance
sudo yum update
sudo yum install ruby
sudo yum install wget
wget https://{bucket-name}.s3.amazonaws.com/latest/install
chmod +x ./install
sudo ./install auto
## bucket-name represents one of the following:
## aws-codedeploy-us-east-1 for instances in the US East (N. Virginia) region
## aws-codedeploy-us-west-1 for instances in the US West (N. California) region
@ES-Alexander
ES-Alexander / course_monitor.py
Created June 21, 2022 07:18
Minimal example for course tracking of a GPS-enabled MAVLink vehicle, using a low-pass IIR filter for averaging values over time.
#!/usr/bin/env python3
from pymavlink import mavutil, mavlink
class CourseAverager:
MSG_TYPE = 'GLOBAL_POSITION_INT'
def __init__(self, mavlink_connection, request_rate=1, decay_rate=0.95, initial_course=(0, 0)):
self.master = mavlink_connection
self.request_message(request_rate)
@mholt
mholt / macapp.go
Last active May 11, 2024 18:15
Distribute your Go program (or any single binary) as a native macOS application
// Package main is a sample macOS-app-bundling program to demonstrate how to
// automate the process described in this tutorial:
//
// https://medium.com/@mattholt/packaging-a-go-application-for-macos-f7084b00f6b5
//
// Bundling the .app is the first thing it does, and creating the DMG is the
// second. Making the DMG is optional, and is only done if you provide
// the template DMG file, which you have to create beforehand.
//
// Example use:
@Quar
Quar / README.md
Last active May 11, 2024 18:13
auto-install old version of OpenFOAM on Ubuntu-18.04

OpenFOAM Auto Install Script

Note that this script will try to auto install OpenFoam from souce (which means will download source code) and then compile on local machine. This script is primarily targated at installing old-releases of OpenFOAM which do not have binary installation packages pre-compiled on APT.

The entire installation time cost approximately 2-6 hours depends on network bandwidth and CPU memory power.

@aamiaa
aamiaa / CompleteDiscordQuest.md
Last active May 11, 2024 18:10
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

I've recently joined Amazon Dublin from India and got opportunities to interview with Meta London, Zalando Berlin & some other companies. I extensively researched about companies hiring internationally which support visa & relocation for Tech roles. So sharing list of companies:

Do consider to STAR, if it helped you.

London

@m-jovanovic
m-jovanovic / Result.cs
Created September 7, 2023 08:03
Result type
public class Result
{
protected internal Result(bool isSuccess, Error error)
{
if (isSuccess && error != Error.None)
{
throw new InvalidOperationException();
}
if (!isSuccess && error == Error.None)
@DvilMuck
DvilMuck / aternosAntiAntiadblock.user.js
Last active May 11, 2024 18:02
Aternos Anti Anti Adblock userscript for Aternos.org
// ==UserScript==
// @name Aternos Anti Anti-adblock
// @namespace r0630hh1edcuum5397kimyc0ucwy2h3psn4c6r1u4j
// @version 0.1.23
// @description Fuck anti-adblock from the free hosting minecraft servers Aternos.org. Parry this you filthy casual!
// @author Angry Developer against excessive ADs
// @source https://gist.github.com/DvilMuck/f2b14f3f65e8f22974d781277158f82a
// @supportURL https://gist.github.com/DvilMuck/f2b14f3f65e8f22974d781277158f82a
// @updateURL https://gist.github.com/DvilMuck/f2b14f3f65e8f22974d781277158f82a/raw/aternosAntiAntiadblock.user.js
// @downloadURL https://gist.github.com/DvilMuck/f2b14f3f65e8f22974d781277158f82a/raw/aternosAntiAntiadblock.user.js