Skip to content

Instantly share code, notes, and snippets.

Avatar

Antonios Hadjigeorgalis AntoniosHadji

View GitHub Profile
@jsgoller1
jsgoller1 / interviews.md
Last active Feb 1, 2021
How to Slay Programming Interviews
View interviews.md

How to slay programming interviews

This gist is currently under re-development after my most recent round of interview prep and will be re-posted with major edits soon.

@claus
claus / ipfs-server-setup.md
Last active Jan 8, 2021
Host Your Site Under Your Domain on IPFS
View ipfs-server-setup.md

Host Your Site Under Your Domain on IPFS

This is a step-by-step tutorial for hosting your website under your domain on IPFS, from zero, on a DigitalOcean Ubuntu 16.04.3 x64 Droplet (i am using the $10 variant with 2GB RAM).

Install IPFS

Log in as root.

First, make sure the system is up to date, and install tar and wget:

@reavon
reavon / gnome-terminal-profiles.adoc
Created Jul 5, 2017
Export / Import Gnome Terminal Profiles
View gnome-terminal-profiles.adoc

Export Gnome Terminal Profile

List profiles

dconf dump /org/gnome/terminal/legacy/profiles:/

Determine the terminal profile string for the profile you will need. This is the terminal profile that I will export:

@yossorion
yossorion / what-i-wish-id-known-about-equity-before-joining-a-unicorn.md
Last active Mar 6, 2021
What I Wish I'd Known About Equity Before Joining A Unicorn
View what-i-wish-id-known-about-equity-before-joining-a-unicorn.md

What I Wish I'd Known About Equity Before Joining A Unicorn

Disclaimer: This piece is written anonymously. The names of a few particular companies are mentioned, but as common examples only.

This is a short write-up on things that I wish I'd known and considered before joining a private company (aka startup, aka unicorn in some cases). I'm not trying to make the case that you should never join a private company, but the power imbalance between founder and employee is extreme, and that potential candidates would

View patch_glib_trash.sh
#!/bin/bash
# Author: CzBiX
# URL: https://gist.github.com/CzBiX/e64256b23687bb13da02
# Support only Ubuntu 16.04
DEST_PACKAGE="libglib2.0-0"
DEST_VERSION="2.48.1-1~ubuntu16.04.1"
DEST_FILE="/usr/lib/x86_64-linux-gnu/libgio-2.0.so.0.4800.1"
PATCH_DATA="f626c: eb"
SUCCESS_MSG="Please quit nautilus with 'nautilus -q' to make sure patch worked."
@jasonrdsouza
jasonrdsouza / combineS3Files.py
Last active Jan 6, 2021
Python script to efficiently concatenate S3 files
View combineS3Files.py
'''
This script performs efficient concatenation of files stored in S3. Given a
folder, output location, and optional suffix, all files with the given suffix
will be concatenated into one file stored in the output location.
Concatenation is performed within S3 when possible, falling back to local
operations when necessary.
Run `python combineS3Files.py -h` for more info.
'''
@ChloeTigre
ChloeTigre / -etc-default-keyboard
Last active Mar 9, 2019
Debian /etc/default/keyboard for dvorak & dvorak-intl support, toggling mode with caps lock (used w/ a TypeMatrix)
View -etc-default-keyboard
# KEYBOARD CONFIGURATION FILE
# Consult the keyboard(5) manual page.
XKBMODEL="pc105"
XKBLAYOUT="us,us"
XKBVARIANT="dvorak-intl,dvorak"
XKBOPTIONS="grp:caps_toggle"
BACKSPACE="guess"
@ericandrewlewis
ericandrewlewis / gist:95239573dc97c0e86714
Last active Jan 27, 2021
Setting up a WordPress site on AWS
View gist:95239573dc97c0e86714

Setting up a WordPress site on AWS

This tutorial walks through setting up AWS infrastructure for WordPress, starting at creating an AWS account. We'll manually provision a single EC2 instance (i.e an AWS virtual machine) to run WordPress using Nginx, PHP-FPM, and MySQL.

This tutorial assumes you're relatively comfortable on the command line and editing system configuration files. It is intended for folks who want a high-level of control and understanding of their infrastructure. It will take about half an hour if you don't Google away at some point.

If you experience any difficulties or have any feedback, leave a comment. 🐬

Coming soon: I'll write another tutorial on a high availability setup for WordPress on AWS, including load-balancing multiple application servers in an auto-scaling group and utilizing RDS.

@rochacbruno
rochacbruno / mainpython.md
Last active Jan 20, 2021
Use of __main__.py
View mainpython.md

The use of __main__.py to create executables

myprojectfolder/
    |_ __main__.py
    |_ __init__.py

Being __main__.py:

print("Hello")
@davidfowl
davidfowl / dotnetlayout.md
Last active Mar 7, 2021
.NET project structure
View dotnetlayout.md
$/
  artifacts/
  build/
  docs/
  lib/
  packages/
  samples/
  src/
  tests/