Skip to content

Instantly share code, notes, and snippets.

@danieljarolim
danieljarolim / SSIS SalesForce REST API Connector.cs
Last active May 4, 2024 05:04
SSIS script task to extract JSON data from SalesForce REST API and output to SSIS dataflow.
#region Help: Introduction to the Script Component
/* The Script Component allows you to perform virtually any operation that can be accomplished in
* a .Net application within the context of an Integration Services data flow.
*
* Expand the other regions which have "Help" prefixes for examples of specific ways to use
* Integration Services features within this script component. */
#endregion
#region Namespaces
// Add References: Microsoft.CSharp, System.Net.Http, System.Web.Extensions
@pythoninthegrass
pythoninthegrass / pull.yml
Created May 4, 2024 04:58
GitHub app Pull
# https://github.com/wei/pull#readme
---
version: "1"
rules:
- base: main
upstream: pythoninthegrass:main
mergeMethod: hardreset # Optional, one of [none, merge, squash, rebase, hardreset], Default: none.
mergeUnstable: false # Optional, merge pull request even when the mergeable_state is not clean. Default: false
@jcarroyo
jcarroyo / client.js
Created April 6, 2016 02:09
Node.js send file with pure socket (low level transfer)
var net = require('net');
var socket = new net.Socket();
socket.connect(5000, "127.0.0.1");
var fs = require('fs');
var path = require('path');
var packets = 0;
var buffer = new Buffer(0);
socket.on('data', function(chunk){
packets++;
@thelissimus
thelissimus / request.ts
Created March 14, 2024 12:30
Effect-TS wrapper for common HTTP method for axios.
import axios, { AxiosRequestConfig } from "axios";
import { Effect as IO, Option, pipe } from "effect";
import { credentials } from "@store/global";
import { BackendPath, UnauthenticatedError, RequestFailedError } from "@common/index";
const Headers = {
Authorization: "Authorization",
RefreshToken: "x-refresh-token",
} as const;
@Pulimet
Pulimet / AdbCommands
Last active May 4, 2024 04:56
Adb useful commands list
adb help // List all comands
== Adb Server
adb kill-server
adb start-server
== Adb Reboot
adb reboot
adb reboot recovery
adb reboot-bootloader
@rgrokett
rgrokett / gist:efa7b99abf7af68823ab59082d9320b7
Last active May 4, 2024 04:55
RTLSDR-Airband instructions for Raspberry Pi 3

RTLSDR-Airband instructions for Raspberry Pi 3

Build a Aircraft scanner from a Pi 3 and an RTL-SDR radio dongle and external audio PC speaker.

Full details are available at https://github.com/szpajder/RTLSDR-Airband/wiki

Hardware

  • Raspberry Pi 3 with at least 2 USB slots
  • RTL-SDR Dongle V3 (typical one, not ADS-B!)
  • USB powered speaker with stereo audio plug
  • Antenna with connecting cable for RTL-SDR dongle
@kyo-takano
kyo-takano / making-the-most-of-local-llms.ipynb
Last active May 4, 2024 04:52
ローカルLLMはこーやって使うの💢
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ProfYaffle
ProfYaffle / setup.adoc
Last active May 4, 2024 04:49
Setting up tvheadend for the first time

Setting up tvheadend for the First Time

Version: DRAFT-2015-05-20

@oanhnn
oanhnn / using-multiple-github-accounts-with-ssh-keys.md
Last active May 4, 2024 04:45
Using multiple github accounts with ssh keys

Problem

I have two Github accounts: oanhnn (personal) and superman (for work). I want to use both accounts on same computer (without typing password everytime, when doing git push or pull).

Solution

Use ssh keys and define host aliases in ssh config file (each alias for an account).

How to?

  1. Generate ssh key pairs for accounts and add them to GitHub accounts.