Skip to content

Instantly share code, notes, and snippets.

@nimacks
nimacks / iterm2-solarized.md
Created October 29, 2023 07:18 — forked from kevin-smets/iterm2-solarized.md
iTerm2 + Oh My Zsh + Solarized color scheme + Source Code Pro Powerline + Font Awesome + [Powerlevel10k] - (macOS)

Default

Default

Powerlevel10k

Powerlevel10k

@nimacks
nimacks / System Design.md
Created December 5, 2021 19:38 — forked from vasanthk/System Design.md
System Design Cheatsheet

System Design Cheatsheet

Picking the right architecture = Picking the right battles + Managing trade-offs

Basic Steps

  1. Clarify and agree on the scope of the system
  • User cases (description of sequences of events that, taken together, lead to a system doing something useful)
    • Who is going to use it?
    • How are they going to use it?
@nimacks
nimacks / job-opportunities-with-aws-amplify.md
Last active June 21, 2022 05:49
Job Opportunities with AWS Amplify
@nimacks
nimacks / README.md
Created November 15, 2020 04:47 — forked from petermorlion/README.md
Find AWS lambda cold start durations

Full code I used to get the amount and duration of AWS Lambda cold starts during 2 given months.

Also see the question on StackOverflow.

@nimacks
nimacks / iterm2.md
Created April 27, 2020 05:49 — forked from squarism/iterm2.md
iterm2 cheatsheet

Tabs and Windows

Function Shortcut
New Tab + T
Close Tab or Window + W (same as many mac apps)
Go to Tab + Number Key (ie: ⌘2 is 2nd tab)
Go to Split Pane by Direction + Option + Arrow Key
Cycle iTerm Windows + backtick (true of all mac apps and works with desktops/mission control)

Oh my zsh.

Install with curl

sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"

Enabling Plugins (zsh-autosuggestions & zsh-syntax-highlighting)

  • Download zsh-autosuggestions by
/* http://meyerweb.com/eric/tools/css/reset/ v2.0 | 20110126 */
html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
@charset "UTF-8";
body {
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
-webkit-font-smoothing: antialiased;
}
h1 {
color: #fff;
font-size: 36px;
public class Program
{
private static readonly Logger Logger = LogManager.GetCurrentClassLogger();
public static void Main(string[] args)
{
string connectionString = @"Data Source=pc-samuelnm;Integrated Security=True";
var sourceDataTable = GetSourceDataTable();
SqlBulkCopySettings settings = SqlBulkCopySettings.GetSettings();
@nimacks
nimacks / gist:b3396686b33590e3ef7e
Created February 18, 2015 17:20
BCP Import Refactoring
void Main()
{
//Setup Chain of Responsibility
ImportPhase readData = new DataReadingPhase();
ImportPhase mapData = new DataMappingPhase();
ImportPhase importData = new DataImportPhase();
readData.SetNextPhase(mapData);
mapData.SetNextPhase(importData);