URL | HTTP Verb | Action |
---|---|---|
/photos/ | GET | index |
/photos/new | GET | new |
/photos | POST | create |
/photos/:id | GET | show |
/photos/:id/edit | GET | edit |
/photos/:id | PATCH/PUT | update |
/photos/:id | DELETE | destroy |
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
{ | |
"schemes" : | |
[ | |
{ | |
"name" : "Seoul256", | |
"background" : "#545454", | |
"foreground" : "#d0d0d0", | |
"cursorColor" : "#d0d0d0", | |
"brightBlack" : "#626262", | |
"brightRed" : "#d68787", |
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
name: CI | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
jobs: |
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
# general shortcuts | |
alias home="cd ~" | |
alias ls="ls -lG " | |
alias lsla="ls -laG " | |
# Git Shortcuts | |
alias gs="git status" | |
alias ga="git add" | |
alias gaa="git add ." |
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
APP_ENV=testing | |
APP_KEY=SomeRandomString | |
DB_CONNECTION=testing | |
DB_TEST_USERNAME=root | |
DB_TEST_PASSWORD= | |
CACHE_DRIVER=array | |
SESSION_DRIVER=array | |
QUEUE_DRIVER=sync |
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
public function view() { | |
if($this->request->is('post')) { | |
$data = $this->request->data['HashAlgorithm']; | |
$this->log($data); | |
$this->redirect(array('controller' => 'HashResults' ,'action' => 'inputPlaintext', $data)); | |
} | |
$conditions = array( | |
'fields' => array('name'), | |
'order' => array('name ASC') |
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
public static String readTextFile () { | |
String fileContent = ""; | |
BufferedReader br = null; ; | |
try { | |
br = new BufferedReader (new FileReader("TextFile.txt")); | |
StringBuilder sb = new StringBuilder(); | |
String fileLine = ""; | |
while ((fileLine = br.readLine()) != null) { | |
System.out.println(fileLine); | |
sb.append(fileLine); |
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 | |
/** | |
* | |
* Gmail attachment extractor. | |
* | |
* Downloads attachments from Gmail and saves it to a file. | |
* Uses PHP IMAP extension, so make sure it is enabled in your php.ini, | |
* extension=php_imap.dll |
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
#!/bin/bash | |
### | |
# | |
# forked from https://gist.github.com/1264701/08f93534ba177f173b9382b53c419cd0de5b07ea | |
# Copyright (c) 2011 Cake Development Corporation (http//cakedc.com) | |
# | |
# Ubuntu 12.10 based web server installation script | |
# Run this by executing the following from a fresh install of Ubuntu 12.10 server: | |
# |
NewerOlder