Having trouble installing the latest stable version of tmux?
I know, official package for your OS/distro is outdated and you just want the newest version of tmux.
Well, this script should save you some time with that.
- gcc
package | |
{ | |
import net.flashpunk.Entity; | |
import net.flashpunk.Sfx; | |
import net.flashpunk.tweens.misc.ColorTween; | |
import net.flashpunk.tweens.misc.VarTween; | |
import net.flashpunk.graphics.Image; | |
import flash.filters.GlowFilter; | |
import flash.display.BitmapData; | |
import flash.geom.Rectangle; |
package { | |
import flash.display.Bitmap; | |
import flash.display.BitmapData; | |
import flash.display.Sprite; | |
import flash.display.StageAlign; | |
import flash.display.StageQuality; | |
import flash.display.StageScaleMode; | |
import flash.geom.Point; | |
import flash.geom.Rectangle; | |
import flash.events.Event; |
// This theme is based on https://medium.com/@docodemore/an-alternative-to-operator-mono-font-6e5d040e1c7e#.nk01drf9k | |
// I am using Cobalt2 for the Syntax Theme and One Dark for the UI Theme. | |
atom-text-editor { | |
font-family: 'Fira Code'; | |
font-style: normal; | |
text-rendering: optimizeLegibility; | |
} | |
atom-text-editor::shadow { |
/** ********************************************************* | |
* API - Model - User | |
********************************************************* */ | |
module.exports = function (sequelize, DataTypes) { | |
return sequelize.define('User', { | |
username: DataTypes.STRING, | |
password: DataTypes.STRING, | |
firstName: DataTypes.STRING, | |
lastName: DataTypes.STRING, |
Having trouble installing the latest stable version of tmux?
I know, official package for your OS/distro is outdated and you just want the newest version of tmux.
Well, this script should save you some time with that.
// ************** Instructions for connecting to the LiveCoding chatrooms from a 3rd party application. **************** | |
Step 1a (Ubuntu/ any OS with aptitude (aka apt-get)) : | |
sudo apt-add-repository ppa:rsrchboy/profanity && sudo apt-get update | |
apt-get install profanity | |
-- | |
Step 1b (OSX w/ homebrew): | |
$ brew install profanity | |
-------- |
#! /bin/sh | |
### BEGIN INIT INFO | |
# Provides: gogs | |
# Required-Start: $remote_fs $syslog | |
# Required-Stop: $remote_fs $syslog | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: Git repository manager Gogs | |
# Description: Starts and stops the self-hosted git repository manager Gogs | |
### END INIT INFO |
The handy script below (x4-debug.bat) can be used as a shortcut to start x4 in debug mode. You get:
Copy paste the code in the file below, then update the value for X4_EXE_PATH
- change it to wherever X4.exe is located.
/** | |
* IE 5.5+, Firefox, Opera, Chrome, Safari XHR object | |
* | |
* @param string url | |
* @param object callback | |
* @param mixed data | |
* @param null x | |
*/ | |
function ajax(url, callback, data, x) { | |
try { |
echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc | |
. ~/.bashrc | |
mkdir ~/local | |
mkdir ~/node-latest-install | |
cd ~/node-latest-install | |
curl http://nodejs.org/dist/node-latest.tar.gz | tar xz --strip-components=1 | |
./configure --prefix=~/local | |
make install # ok, fine, this step probably takes more than 30 seconds... | |
curl https://www.npmjs.org/install.sh | sh |