Skip to content

Instantly share code, notes, and snippets.

gordthompson /
Last active September 26, 2023 15:04
Build a T-SQL MERGE statement and upsert a DataFrame
# Copyright 2023 Gordon D. Thompson,
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
denisgolius /
Created October 4, 2018 06:55 — forked from grenade/
Correct file permissions for ssh keys and config.
ssh-keygen -t rsa -b 4096 -N '' -C "" -f ~/.ssh/id_rsa
ssh-keygen -t rsa -b 4096 -N '' -C "" -f ~/.ssh/github_rsa
ssh-keygen -t rsa -b 4096 -N '' -C "" -f ~/.ssh/mozilla_rsa
prachauthit / feedly.opml
Created February 10, 2020 11:28 — forked from breakersall/feedly.opml
Feedly Security Feed
View feedly.opml
<?xml version="1.0" encoding="UTF-8"?>
<opml version="1.0">
<title>Matt subscriptions in feedly Cloud</title>
<outline text="RedTeaming" title="RedTeaming">
<outline type="rss" text="Strategic Cyber LLC" title="Strategic Cyber LLC" xmlUrl="" htmlUrl=""/>
<outline type="rss" text="Silent Break Security" title="Silent Break Security" xmlUrl="" htmlUrl=""/>
Anonimous05 / JetBrains products Activation code until 4 March 2024
Last active September 26, 2023 14:35
JetBrains products Activation code until 4 March 2024
View JetBrains products Activation code until 4 March 2024
vpnwall-services /
Created September 12, 2023 08:24
[SWAP 101] Swap 101 #linux #swap #101

SWAP 101

  • Allocate swap sudo fallocate -l 1G /swapfile

  • Alternate allocation sudo dd if=/dev/zero of=/swapfile bs=1024 count=1048576

  • Perms

maelvls /
Last active September 26, 2023 14:31
Automate build workflow for Homebrew tap bottles (Linux and macOS)

How to automate the build of bottles on your Homebrew tap

Note on Oct 4, 2018: due to a change in Homebrew's brew test-bot behaviour, the user must set HOMEBREW_TRAVIS_CI and HOMEBREW_TRAVIS_SUDO appropriately (it was previously using Travis-CI-provided TRAVIS and TRAVIS_SUDO).

This tutorial is a follow-up to the discussion we had on davidchall/homebrew-hep#114. It relies on a fork of the test-bot provided by davidchall; you can get it with brew tap maelvalais/test-bot. First:

  1. the Github project must be of the form with the following tree
ryankurte / uart.c
Last active September 26, 2023 14:31
Simple unix serial implementation. This uses pthreads to receive and buffer incoming data for later use.
View uart.c
#include "uart.h"
#include <sys/types.h>
#include <sys/stat.h>
#include <termios.h>
#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
rnagle / wpdb_default_tables.sql
Last active September 26, 2023 14:20
Default WordPress Database Table Create Statements
View wpdb_default_tables.sql
CREATE TABLE wp_users (
ID bigint(20) unsigned NOT NULL auto_increment,
user_login varchar(60) NOT NULL default '',
user_pass varchar(64) NOT NULL default '',
user_nicename varchar(50) NOT NULL default '',
user_email varchar(100) NOT NULL default '',
user_url varchar(100) NOT NULL default '',
user_registered datetime NOT NULL default '0000-00-00 00:00:00',
user_activation_key varchar(60) NOT NULL default '',
Cyclenerd / AccessPoint.ino
Created July 26, 2017 19:46
ESP8266 : Create a WiFi access point and provide a DNS and web server on it, catch all traffic
View AccessPoint.ino
/* Create a WiFi access point and provide a web server on it. */
#include <ESP8266WiFi.h>
#include "./DNSServer.h" // Patched lib
#include <ESP8266WebServer.h>
const byte DNS_PORT = 53; // Capture DNS requests on port 53
IPAddress apIP(10, 10, 10, 1); // Private network for server
DNSServer dnsServer; // Create the DNS object
ESP8266WebServer webServer(80); // HTTP server
mstoan / BI
Created December 21, 2016 16:50
Bible Institute
View BI
Testing Website