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 | |
if [ $# -eq 0 ] ; then | |
echo "avaiable commands" | |
echo "- artisan" | |
echo "- composer" | |
echo "- shell" | |
echo "- yarn" | |
exit 1 |
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
mix.webpackConfig({ | |
resolve: { | |
extensions: ['.js', '.vue', '.json'], | |
alias: { | |
'vue$': 'vue/dist/vue.esm.js', | |
'@': __dirname + '/resources/js' | |
}, | |
}, | |
}); |
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
iTerm | |
------- | |
New Tab ⌘ + T | |
Previous Tab ⌘ + ← | |
Next Tab ⌘ + → | |
Close tab ⌘ + w |
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
IP=$(ifconfig | sed -En 's/127.0.0.1//;s/.*inet (addr:)?(([0-9]*\.){3}[0-9]*).*/\2/p') | |
echo $IP | |
cd /usr/share/phpmyadmin && php -S $IP:3400 |
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
#include <iostream> | |
#include "md5.h" | |
using namespace std; | |
MD5 md5; | |
void md5conv (char val){ | |
cout << "md5 hash of the value " << val << " is " << md5.digestString(val) ; | |
} | |
int main() |
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/ruby | |
require 'net/http' | |
def req_get(url) | |
uri = URI(url) | |
#puts uri | |
Net::HTTP.start(uri.host, uri.port) do |http| | |
request = Net::HTTP::Get.new uri.request_uri | |
response = http.request request # Net::HTTPResponse object | |
# puts response.body |
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/ruby | |
require 'optparse' | |
OptionParser.new do |op| | |
op.on('-h') {|h| $host = h} | |
op.on('-i') {|h| $inj = h} | |
op.on('-h') { puts o; exit } | |
end | |
if $host and $inj |
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
require 'webrick' | |
require 'webrick/httpproxy' | |
require 'pp' | |
s = WEBrick::HTTPProxyServer.new(:Port => 8080, | |
:RequestCallback => Proc.new{|req,res| | |
#puts req.request_line | |
#puts "+--------------------------------------+" | |
pp req.raw_header | |
}) |
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
require 'tk' | |
class Actions | |
def self.input(fname,sname) | |
return "Your Name is #{fname} #{sname}" | |
end | |
end | |
panel = TkRoot.new{title "First Ruby App"} |
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/ruby | |
require 'lib/command_execution' | |
require 'lib/zcode_mods' | |
class Core | |
#include Super | |
@@prompt = nil | |
@@active_module = nil | |
@@target = nil | |
#Core Command Gather |
NewerOlder