Skip to content

Instantly share code, notes, and snippets.

@MohamedAlaa
MohamedAlaa / tmux-cheatsheet.markdown
Last active May 29, 2025 00:09
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@ayosec
ayosec / README.md
Created October 17, 2012 14:48
PhantomJS to generate charts

Usage

$ phantomjs render-google-chart.js > output.svg
$ eog output.svg

Output

Resultado

@0xjjpa
0xjjpa / onlineResources.html
Created November 20, 2012 18:56
Online [Paid] Developer Screencasts/Tutorials/Courses
#Description
I'm listing premium sites that describe the latest technologies, mainly aimed for web engineers, front end engineers, mobile developers, back end engineers, OSX/iOSX, devOps practices, CI, BDD/TDD and system administrators.
I'm thinking in updating this every once in a while, so I'll be creating a Gist [here]() with this article code, so please feel free to drop in some suggestions and I'll update it in Coderwall.
I have purchased in some of their content, but I'll refrain to write a review until I tried them all. I won't neither list prices or rating, as probably the amount of courses I have don't represent a good sample.
Finally, I'm in no way related to any of those, but I would like other companies to share their employees training programs (if any) or resources provided as perks and which of the following they use.
@akiatoji
akiatoji / _sns_description
Last active January 15, 2020 02:30
AWS SNS Sample code.
Notes on how to use AWS SNS:
1. Subscribe an HTTP endpoint (i.e. http://myhost/sns_endpoint) on AWS Console
2. AWS will send subscription confirmation right away
3. SNS_controller responds to subscription confirmation by sending confirmation using Fog.
4. Once AWS is happy, you can start sending notifications to your end point via SNS.
@TjWallas
TjWallas / AndroidVimeo.java
Created April 22, 2013 06:59
Embedding Vimeo Videos using WebView on Android
//Auto playing vimeo videos in Android webview
mWebView.getSettings().setJavaScriptEnabled(true);
mWebView.getSettings().setAppCacheEnabled(true);
mWebView.getSettings().setDomStorageEnabled(true);
// how plugin is enabled change in API 8
if (Build.VERSION.SDK_INT < 8) {
mWebView.getSettings().setPluginsEnabled(true);
} else {
mWebView.getSettings().setPluginState(PluginState.ON);
@millermedeiros
millermedeiros / osx_setup.md
Last active March 23, 2025 01:23
Mac OS X setup

Setup Mac OS X

I've done the same process every couple years since 2013 (Mountain Lion, Mavericks, High Sierra, Catalina) and I updated the Gist each time I've done it.

I kinda regret for not using something like Boxen (or anything similar) to automate the process, but TBH I only actually needed to these steps once every couple years...

@zenorocha
zenorocha / .hyper.js
Last active April 11, 2025 07:01 — forked from millermedeiros/osx_setup.md
Setup macOS Sierra (10.12)
// Future versions of Hyper may add additional config options,
// which will not automatically be merged into this file.
// See https://hyper.is#cfg for all currently supported options.
module.exports = {
config: {
// default font size in pixels for all tabs
fontSize: 14,
// font family with optional fallbacks
@denji
denji / nginx-tuning.md
Last active May 23, 2025 12:54
NGINX tuning for best performance

NGINX Tuning For Best Performance

For this configuration you can use web server you like, i decided, because i work mostly with it to use nginx.

Generally, properly configured nginx can handle up to 400K to 500K requests per second (clustered), most what i saw is 50K to 80K (non-clustered) requests per second and 30% CPU load, course, this was 2 x Intel Xeon with HyperThreading enabled, but it can work without problem on slower machines.

You must understand that this config is used in testing environment and not in production so you will need to find a way to implement most of those features best possible for your servers.

@kevin-smets
kevin-smets / iterm2-solarized.md
Last active May 29, 2025 11:47
iTerm2 + Oh My Zsh + Solarized color scheme + Source Code Pro Powerline + Font Awesome + [Powerlevel10k] - (macOS)

Default

Default

Powerlevel10k

Powerlevel10k

@bradp
bradp / setup.sh
Last active April 18, 2025 02:11
New Mac Setup Script
echo "Creating an SSH key for you..."
ssh-keygen -t rsa
echo "Please add this public key to Github \n"
echo "https://github.com/account/ssh \n"
read -p "Press [Enter] key after this..."
echo "Installing xcode-stuff"
xcode-select --install