Skip to content

Instantly share code, notes, and snippets.

Original Message
Message ID <[email protected]>
Created at: Mon, Feb 6, 2017 at 5:48 PM (Delivered after 7454 seconds)
From: LastPass <[email protected]>Using LastPass.com (www.lastpass.com)
To: "[email protected]" <[email protected]>
Subject: LastPass Verification Email
SPF: PASS with IP 74.84.128.88 Learn more
DKIM: PASS with domain lastpass.com Learn more
DMARC: PASS Learn more
@timneutkens
timneutkens / index.js
Last active February 14, 2025 21:45
Clear console/terminal in node.js the right way
const readline = require('readline')
const blank = '\n'.repeat(process.stdout.rows)
console.log(blank)
readline.cursorTo(process.stdout, 0, 0)
readline.clearScreenDown(process.stdout)
@eddowh
eddowh / schema.md
Created March 20, 2017 04:07
CSCI201 Team #14

User

Schema

uuid

Unique identifier that needs to auto-check for collisions.

username, email

tell application "System Events"
key down {command}
keystroke {tab}
delay 0.2
key up {command}
end tell
@mthrynn
mthrynn / OSX_TCP_options.command
Last active June 3, 2024 15:56 — forked from Zillionx/OSX_TCP_options.command
OSX - Tuning the Network Stack TCP
## Quick fix for slow internet after update to OSX 10.11 "El Capitan"
## Changes are not permanent, just restart your mac if it doesn't work.
## write config
sudo su -
sysctl -w net.inet.tcp.doautorcvbuf=0
sysctl -w net.inet.tcp.doautosndbuf=0
sysctl -w net.inet.tcp.win_scale_factor=0
sysctl -w kern.ipc.somaxconn=2048
sysctl -w net.inet.tcp.rfc1323=1
@minhoryang
minhoryang / concept.md
Last active September 17, 2021 13:49
Semver based API Gateway?
  • api.corp.domain.local/$service/$semver/... -> 307 Temporary Redirect to SEMVER Matched Server.

  • api.corp.domain.local/frontend/^2.0.0/... $service: frontend, $semver: ^2.0.0

  • api.corp.domain.local/frontend/~2.0.0/... $service: frontend, $semver: ~2.0.0

  • api.corp.domain.local/frontend/2.0.0/...

  • api.corp.domain.local/frontend/2.0/...

  • api.corp.domain.local/frontend/2/...

  • $service.api.corp.domain.local/$semver/...

  • frontend.api.corp.domain.local/2.0.0/...

  • frontend.api.corp.domain.local/latest/...

@jagrosh
jagrosh / Growing A Discord Server.md
Last active June 23, 2025 07:49
Tips for creating and growing a new Discord server

This guide is kept up-to-date as Discord and available resources change!
A basic server template is available here

Creating and Growing a Discord Server

logo

Introduction

Hello! I'm jagrosh#4824! I'm writing this guide to try to help new server owners set up and grow their servers, which is a commonly-requested topic. It's very easy to go about this the wrong way, so it's best to be prepared and make smart decisions so that your community can flourish!

Background

@haircut
haircut / collect-info.py
Last active September 15, 2021 02:15
Spiffy GUI for Jamf Pro workflows
#!/usr/bin/python
"""
Collect Info
To be used in a Jamf Pro workflow to prompt a user/tech for info
Heavily cribbed from Jamf's iPhone ordering script:
https://github.com/jamfit/iPhone-Ordering
"""

(This is an excerpt from a much longer paper I'm writing about code quality and maintaining FOSS projects.)

FOSS dependency scoring

In an effort to improve the quality of search results on sites like https://npmjs.com, there has been more and more discussion about factoring in the ranking/scoring of dependencies to influence search results. The general idea is that a library should be ranked not only on its own merits, but dependencies should weigh into the score as well.

I’m not sure what my opinion is on this yet. I was initially in favor of this, and still might be, but this document is a summary of some things that crossed my mind about the topic.

Should dependencies weigh into the search score for a library?

@pprawdz
pprawdz / Linux cheatsheet
Last active September 17, 2021 13:40
Lockdown
General
Change root password su into root account, passwd
User modification Add useradd
Delete userdel
Modify usermod
Change Password passwd
View users Logged in w –i who
All users cat /etc/passwd | cut -d':' -f1
Who can sudo visudo Identify privileged users and groups
cat /etc/group Identify users in privileged groups