Return code | Definition |
---|---|
100 | Success |
101 | Unknown error |
102 | Version not supported |
103 | Illegal request |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const path = require('path'); | |
const feathers = require('@feathersjs/feathers'); | |
const express = require('@feathersjs/express'); | |
const socketio = require('@feathersjs/socketio'); | |
const Sequelize = require('sequelize'); | |
const service = require('feathers-sequelize'); | |
const sequelize = new Sequelize('featherstutorial', 'databaseUser', 'databasePassword', { | |
host: 'localhost', | |
dialect: 'mysql', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
This works on 2/12/2018, but will need to be updated as facebook updates it's DOM | |
1: Go to your profile, click More->Likes | |
2: Scroll down to the bottom of the page and keep scrolling as facebook loads more of your 'likes' | |
3: Open the console and c&p this: | |
*/ | |
document.querySelectorAll('button.PageLikedButton').forEach(b=>b.click()); | |
document.querySelectorAll('li[data-label="Unlike"] a').forEach(a=>a.click()); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Foo\Bar; | |
use phpmock\MockBuilder; | |
use phpmock\phpunit\PHPMock; | |
use PHPUnit_Framework_TestCase; | |
class Baz | |
{ | |
/** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Stop all containers | |
docker stop `docker ps -qa` | |
# Remove all containers | |
docker rm `docker ps -qa` | |
# Remove all images | |
docker rmi -f `docker images -qa ` | |
# Remove all volumes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Joy | |
(^ω^) | |
(-‿‿-) | |
(o^▽^o) | |
(⌒▽⌒)☆ | |
<( ̄︶ ̄)> | |
ヽ(・∀・)ノ | |
(´。• ω •。`) | |
( ̄ω ̄) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# UPDATED 17 February 2019 | |
# Redirect all HTTP traffic to HTTPS | |
server { | |
listen 80; | |
listen [::]:80; | |
server_name www.domain.com domain.com; | |
return 301 https://$host$request_uri; | |
} | |
# SSL configuration |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
################################################################# | |
# = This script transfers bash history to zsh history | |
# = Change bash and zsh history files, if you don't use defaults | |
# | |
# = Usage: ruby bash_to_zsh_history.rb | |
# | |
# = Author: Ankit Goyal | |
################################################################# | |
# change if you don't use default values |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
_vimup() { | |
vim -N -u ~/.vimrc -c "try | \ | |
NeoBundleClean! | \ | |
NeoBundleCheck | \ | |
NeoBundleUpdate! | \ | |
NeoBundleUpdatesLog $* | \ | |
finally | qall! | endtry" \ | |
-U NONE -i NONE -V1 -e -s |
People
![]() :bowtie: |
😄 :smile: |
😆 :laughing: |
---|---|---|
😊 :blush: |
😃 :smiley: |
:relaxed: |
😏 :smirk: |
😍 :heart_eyes: |
😘 :kissing_heart: |
😚 :kissing_closed_eyes: |
😳 :flushed: |
😌 :relieved: |
😆 :satisfied: |
😁 :grin: |
😉 :wink: |
😜 :stuck_out_tongue_winking_eye: |
😝 :stuck_out_tongue_closed_eyes: |
😀 :grinning: |
😗 :kissing: |
😙 :kissing_smiling_eyes: |
😛 :stuck_out_tongue: |
NewerOlder