bibimbap as i make it is basically
- rice
- sitr fried vegetables
- some meat in tasty spices
- gochujang (this is fermented soy bean paste with paprika)
- a fried egg
| #!/bin/bash | |
| # Hacked together by JeroenJanssens.com on 2013-12-10 | |
| # Requires: https://github.com/joewalnes/websocketd | |
| # Run: websocketd --devconsole --port 8080 ./chat.sh | |
| echo "Please enter your name:"; read USER | |
| echo "[$(date)] ${USER} joined the chat" >> chat.log | |
| echo "[$(date)] Welcome to the chat ${USER}!" | |
| tail -n 0 -f chat.log --pid=$$ | grep --line-buffered -v "] ${USER}>" & | |
| while read MSG; do echo "[$(date)] ${USER}> ${MSG}" >> chat.log; done |
| // Just before switching jobs: | |
| // Add one of these. | |
| // Preferably into the same commit where you do a large merge. | |
| // | |
| // This started as a tweet with a joke of "C++ pro-tip: #define private public", | |
| // and then it quickly escalated into more and more evil suggestions. | |
| // I've tried to capture interesting suggestions here. | |
| // | |
| // Contributors: @r2d2rigo, @joeldevahl, @msinilo, @_Humus_, | |
| // @YuriyODonnell, @rygorous, @cmuratori, @mike_acton, @grumpygiant, |
| #!/usr/bin/env zsh | |
| # This script prints a bell character when a command finishes | |
| # if it has been running for longer than $zbell_duration seconds. | |
| # If there are programs that you know run long that you don't | |
| # want to bell after, then add them to $zbell_ignore. | |
| # | |
| # This script uses only zsh builtins so its fast, there's no needless | |
| # forking, and its only dependency is zsh and its standard modules | |
| # |
If like me you find it frustrating to define the same vendor prefixes over and over again. Sure, you might create mixins that help reduce the amount of repetitiveness but when your mixins file becomes a library (or not) you see so many lines of near-identical code and wonder if there is an easier way.
Say you have this (all-too familiar) mixin:
@mixin border-radius($radius) {
-webkit-border-radius: $radius;
-moz-border-radius: $radius;
-ms-border-radius: $radius;
-o-border-radius: $radius;| <style> | |
| .fade-right { | |
| -webkit-mask-image: -webkit-gradient(linear, left top, right top, from(rgba(0,0,0,1)), color-stop(0.75, rgba(0,0,0,1)), to(rgba(0,0,0,0))); | |
| mask: url(#fade_right_svg_mask); | |
| } | |
| #mask_demo { | |
| background: #d0d0d0; | |
| height: 100px; | |
| width: 500px; | |
| padding: 10px; |
| $global: one; | |
| @mixin foo { | |
| $local: 1; | |
| $mixin-local: true; | |
| global-before-content: $global; | |
| mixin-local-before-content: $local; | |
| @content; |
| #!/bin/bash | |
| # License: Public Domain. | |
| # Author: Joseph Wecker, 2012 | |
| # | |
| # -- DEPRICATED -- | |
| # This gist is slow and is missing .bashrc_once | |
| # Use the one in the repo instead! https://github.com/josephwecker/bashrc_dispatch | |
| # (Thanks gioele) | |
| # | |
| # Are you tired of trying to remember what .bashrc does vs .bash_profile vs .profile? |
This script only works for older versions of Spotify for Linux.
An actively developed admute script for Spotify on Linux can be found here: https://github.com/SecUpwN/Spotify-AdKiller
| #!/bin/bash | |
| EXPECTED_ARGS=3 | |
| E_BADARGS=65 | |
| MYSQL=`which mysql` | |
| Q1="CREATE DATABASE IF NOT EXISTS $1;" | |
| Q2="GRANT ALL ON *.* TO '$2'@'localhost' IDENTIFIED BY '$3';" | |
| Q3="FLUSH PRIVILEGES;" | |
| SQL="${Q1}${Q2}${Q3}" |