This file contains hidden or 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 | |
| # Function to validate IPv4 address | |
| validate_ip() { | |
| local ip=$1 | |
| local IFS='.' | |
| local -a octets=($ip) | |
| # Check if we have exactly 4 octets | |
| if [ ${#octets[@]} -ne 4 ]; then |
This file contains hidden or 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
| set-option -g status-position top | |
| set-option -g renumber-windows on | |
| #set-option -g default-terminal screen-256color | |
| set -g default-terminal "xterm-256color" | |
| #set -g terminal-overrides 'xterm:colors=256' | |
| set -g prefix C-f | |
| unbind C-b |
This file contains hidden or 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
| このチートシートのファイル場所 | |
| ``` | |
| ~/.vim_cheat | |
| ``` | |
| 設定の再読み込み | |
| ``` | |
| :source ~/.vimrc | |
| ``` |
This file contains hidden or 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: フジテレビ | |
| type: GR | |
| channel: '21' | |
| - name: TBS | |
| type: GR | |
| channel: '22' | |
| - name: テレビ東京 | |
| type: GR | |
| channel: '23' | |
| - name: テレビ朝日 |
This file contains hidden or 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 is a configuration file for the MOC player. It should be named | |
| # 'config' and placed in the ~/.moc directory. As this file can specify | |
| # commands which invoke other applications, MOC will refuse to start if it | |
| # is not owned by either root or the current user, or if it is writable by | |
| # anyone other than its owner. All options are given with their default | |
| # values, and therefore commented. | |
| # Comments begin with '#'. | |
| # You can use quotes and escape ('\') in parameters. | |
| # |
This file contains hidden or 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
| autoload -U colors; colors | |
| setopt correct | |
| setopt re_match_pcre | |
| setopt prompt_subst | |
| PROMPT=" | |
| ((\ | |
| °(๑•௰•).oO(%~) | |
| %(?.%{$fg[green]%}.%{$fg[blue]%})%(?!( *'-')<!( ˚˃̣̣⌓˂̣̣%)?<)%{${reset_color}%} " |
This file contains hidden or 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 | |
| $socket = @fsockopen('127.0.0.1', 17000, $errno, $errstr, 30); | |
| if ( ! $socket ) { | |
| return $errno . ': ' . $errstr; | |
| } | |
| //データ送信(コメントを解除している部分が実行されます) | |
| fputs($socket, 'VolUp'); //ボリューム上げ | |
| //fputs($socket, 'VolDown'); //ボリューム下げ |
This file contains hidden or 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
| import java.io.*; | |
| import java.net.*; | |
| public class TvTestRemoteClientExample { | |
| public static void main(String[] args) { | |
| Socket socket = null; | |
| DataOutputStream os = null; | |
| BufferedReader is = null; | |
| // サーバを開く |
This file contains hidden or 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 <SPI.h> | |
| #include <MFRC522.h> | |
| #define RST_PIN 9 | |
| #define SS_PIN 10 | |
| MFRC522 mfrc522(SS_PIN, RST_PIN); | |
| String s = "218146177180"; | |
| String temp = ""; |
This file contains hidden or 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 | |
| //wakeonlanするために必要なもの | |
| //http://gsd.di.uminho.pt/jpo/software/wakeonlan/ | |
| //ユーザ名 | |
| define("USERNAME","username"); | |
| //パスワード(初期値はpassword) | |
| //パスワードを変更する場合はこのページのハッシュを使用してください。 | |
| //http://phpspot.net/php/pg%EF%BC%AD%EF%BC%A4%EF%BC%95%E3%83%8F%E3%83%83%E3%82%B7%E3%83%A5%E8%A8%88%E7%AE%97%E3%83%84%E3%83%BC%E3%83%AB.html | |
| define("PASSWORD","5f4dcc3b5aa765d61d8327deb882cf99"); |
NewerOlder