As configured in my dotfiles.
start new:
tmux
start new with session name:
# Use the Apache rewrite engine to redirect downloads to our script. | |
RewriteEngine On | |
RewriteBase / | |
RewriteRule ^repo/((Packages|Release)(.*)?)$ /repo/counter.php?filename=$1 [L,QSA] | |
RewriteRule ^repo/downloads/(.*)\.deb$ /repo/counter.php?filename=$1 [L,QSA] |
As configured in my dotfiles.
start new:
tmux
start new with session name:
# Compiled source # | |
################### | |
*.com | |
*.class | |
*.dll | |
*.exe | |
*.o | |
*.so | |
# Packages # |
#!/bin/sh | |
echo "Running pre-push hook..." | |
branch=`git rev-parse --abbrev-ref HEAD` | |
if [ $branch == "master" ]; then | |
echo "Deploying to FTP..." | |
git ftp push | |
echo "done!" | |
fi |
I've sniffed most of the Tinder API to see how it works. You can use this to create bots (etc) very trivially. Some example python bot code is here -> https://gist.github.com/rtt/5a2e0cfa638c938cca59 (horribly quick and dirty, you've been warned!)
/** | |
* Returns a string concatenation of the elements of a matrix (2d array) in "spiral" order. | |
* @param {[[]]} matrix - the 2d array | |
* @param {string} [separator] - optional separator to use between values in string, defaults to ", " | |
* @returns {string} | |
*/ | |
function spiralMatrix(matrix, separator) { | |
if (matrix.length === 0 || matrix[0].length === 0) { | |
return ""; | |
} |
rebase
vs merge
).rebase
vs merge
)reset
vs checkout
vs revert
)git rev-parse
)pull
vs fetch
)stash
vs branch
)reset
vs checkout
vs revert
)<!-- | |
THIS IS ONE PART OF THREE | |
Check out the others here: | |
https://codepen.io/collection/DgggNa/ | |
--> | |
import React, { Component } from 'react'; | |
import PropTypes from 'prop-types'; | |
import styled from 'styled-components'; | |
import withRipple from './withRipple'; | |
const TabContent = styled.div` | |
flex: 1; | |
width: 100%; | |
`; |
/* NOTICE: THIS WAS MADE BACK IN 2017, OF COURSE IT'S NOT GOING TO WORK WELL NOW THAT TWITTER'S FUCKED THINGS UP */ | |
@namespace url(http://www.w3.org/1999/xhtml); | |
@-moz-document domain("twitter.com") { | |
[data-component-context="suggest_recap"], | |
[data-component-context="suggest_who_to_follow"], | |
[data-component-context="suggest_activity"], | |
[data-component-context="suggest_activity_tweet"], | |
[data-component-context="suggest_recycled_tweet_inline"], | |
[data-component-context="suggest_recycled_tweet"]{ |