茨城高専の学内Wifi接続時のプロキシ設定を自動化するスクリプト
.bashrcに書いておくとターミナル起動時に自動でプロキシ設定を行う
setProxy.shを.bashrcにコピペする- terminalで
iwconfigを実行しwifi受信機のインターフェイス名を取得する(例:wlp3s0)
| import requests, glob, json, datetime, re | |
| UUDI_TO_PROFILE_URL = "https://sessionserver.mojang.com/session/minecraft/profile/{uuid}" | |
| achivements_pattern = re.compile(r'minecraft:(story|nether|end|adventure|husbandry)/.*') | |
| files = glob.glob("*.json") | |
| user = {} | |
| for file in files: | |
| uuid = file.split(".")[0] |
| type obj = { | |
| [key: string]: any | |
| } | |
| const typeOf = (obj: any): string => { | |
| return toString.call(obj).slice(8, -1).toLowerCase() | |
| } | |
| const camelToSnakeArray = (arr: any[]): any[] => { | |
| return arr.map((item: any) => { |
| snippet = [] | |
| while True: | |
| s = input() | |
| if s == "exit": | |
| break | |
| snippet.append(s) | |
| for s in snippet: | |
| print(f'"{s}",') |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| int comp(const void *left, const void *right) | |
| { | |
| return *(int *)left - *(int *)right; | |
| } | |
| int a[10] = {23, 2, 15, 7, 19, 10, 13, 4, 1, 27}; |
| package week102; | |
| public class MyClass { | |
| public static void main(String[] args) { | |
| // TODO 自動生成されたメソッド・スタブ | |
| int a, b; | |
| String str1, str2; | |
| a = 1; |
| # 参考 : https://qiita.com/drken/items/97e37dd6143e33a64c8c | |
| a = [1, 14, 32, 51, 51, 51, 243, 419, 750, 910] | |
| def binary_search(key, list_): | |
| def isOK(index, key): | |
| if a[index] >= key: | |
| return True | |
| return False |
| <html> | |
| <head> | |
| <style> | |
| * { | |
| margin: 0; | |
| } | |
| body { | |
| background-image: url(https://images.unsplash.com/photo-1488203602058-8db2ce840718?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=500&q=60); |