Skip to content

Instantly share code, notes, and snippets.

@gordthompson
gordthompson / mssql_df_upsert.py
Last active September 26, 2023 15:04
Build a T-SQL MERGE statement and upsert a DataFrame
View mssql_df_upsert.py
# Copyright 2023 Gordon D. Thompson, gord@gordthompson.com
#
# 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
@denisgolius
denisgolius / generate-ssh-key.sh
Created October 4, 2018 06:55 — forked from grenade/01-generate-ed25519-ssh-key.sh
Correct file permissions for ssh keys and config.
View generate-ssh-key.sh
ssh-keygen -t rsa -b 4096 -N '' -C "rthijssen@gmail.com" -f ~/.ssh/id_rsa
ssh-keygen -t rsa -b 4096 -N '' -C "rthijssen@gmail.com" -f ~/.ssh/github_rsa
ssh-keygen -t rsa -b 4096 -N '' -C "rthijssen@gmail.com" -f ~/.ssh/mozilla_rsa
@prachauthit
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">
<head>
<title>Matt subscriptions in feedly Cloud</title>
</head>
<body>
<outline text="RedTeaming" title="RedTeaming">
<outline type="rss" text="Strategic Cyber LLC" title="Strategic Cyber LLC" xmlUrl="http://blog.strategiccyber.com/feed/" htmlUrl="https://blog.cobaltstrike.com"/>
<outline type="rss" text="Silent Break Security" title="Silent Break Security" xmlUrl="http://silentbreaksecurity.com/feed/" htmlUrl="https://silentbreaksecurity.com"/>
@Anonimous05
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
N5ZD3FF9AY-eyJsaWNlbnNlSWQiOiJONVpEM0ZGOUFZIiwibGljZW5zZWVOYW1lIjoiSmV0QnJhaW4gQ29kZSIsImFzc2lnbmVlTmFtZSI6IiIsImFzc2lnbmVlRW1haWwiOiIiLCJsaWNlbnNlUmVzdHJpY3Rpb24iOiIiLCJjaGVja0NvbmN1cnJlbnRVc2UiOmZhbHNlLCJwcm9kdWN0cyI6W3siY29kZSI6IkRQTiIsImZhbGxiYWNrRGF0ZSI6IjIwMjMtMDMtMDUiLCJwYWlkVXBUbyI6IjIwMjQtMDMtMDQiLCJleHRlbmRlZCI6ZmFsc2V9LHsiY29kZSI6IkRCIiwiZmFsbGJhY2tEYXRlIjoiMjAyMy0wMy0wNSIsInBhaWRVcFRvIjoiMjAyNC0wMy0wNCIsImV4dGVuZGVkIjpmYWxzZX0seyJjb2RlIjoiUFMiLCJmYWxsYmFja0RhdGUiOiIyMDIzLTAzLTA1IiwicGFpZFVwVG8iOiIyMDI0LTAzLTA0IiwiZXh0ZW5kZWQiOmZhbHNlfSx7ImNvZGUiOiJJSSIsImZhbGxiYWNrRGF0ZSI6IjIwMjMtMDMtMDUiLCJwYWlkVXBUbyI6IjIwMjQtMDMtMDQiLCJleHRlbmRlZCI6ZmFsc2V9LHsiY29kZSI6IlJTQyIsImZhbGxiYWNrRGF0ZSI6IjIwMjMtMDMtMDUiLCJwYWlkVXBUbyI6IjIwMjQtMDMtMDQiLCJleHRlbmRlZCI6dHJ1ZX0seyJjb2RlIjoiR08iLCJmYWxsYmFja0RhdGUiOiIyMDIzLTAzLTA1IiwicGFpZFVwVG8iOiIyMDI0LTAzLTA0IiwiZXh0ZW5kZWQiOmZhbHNlfSx7ImNvZGUiOiJETSIsImZhbGxiYWNrRGF0ZSI6IjIwMjMtMDMtMDUiLCJwYWlkVXBUbyI6IjIwMjQtMDMtMDQiLCJleHRlbmRlZCI6ZmFsc2V9LHsiY29kZSI6IlJTRiIsImZhbGxiY
@vpnwall-services
vpnwall-services / SWAP-101.md
Created September 12, 2023 08:24
[SWAP 101] Swap 101 #linux #swap #101
View SWAP-101.md

SWAP 101

  • Allocate swap sudo fallocate -l 1G /swapfile

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

  • Perms

@maelvls
maelvls / How-to-automate-build-bottles-your-homebrew-tap.md
Last active September 26, 2023 14:31
Automate build workflow for Homebrew tap bottles (Linux and macOS)
View How-to-automate-build-bottles-your-homebrew-tap.md

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 https://github.com//homebrew- with the following tree
@ryankurte
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
rnagle / wpdb_default_tables.sql
Last active September 26, 2023 14:20
Default WordPress Database Table Create Statements
View wpdb_default_tables.sql
DROP TABLE IF EXISTS wp_users;
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
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
mstoan / BI
Created December 21, 2016 16:50
Bible Institute
View BI
Testing Website