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
| obj-m += tcp_svr_sample.o | |
| all: | |
| make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules | |
| clean: | |
| make -C /lib/modules/$(shell uname -r)/build M=$(PWD) clea |
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
| !xrdb ~/.Xresources | |
| xterm.locale:true | |
| xterm.utf8: true | |
| xterm*utf8Title:true | |
| xterm*fontMenu*fontdefault*Label:Default | |
| xterm*faceName:xos4 Terminus Regular:antialias=true:pixelsize=12 | |
| xterm*faceNameDoublesize:WenQuanYi Micro Hei Mono:pixelsize=12:antialias=true |
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 | |
| # First we need to get the modeline string for xrandr | |
| # Luckily, the tool `gtf` will help you calculate it. | |
| # All you have to do is to pass the resolution & the- | |
| # refresh-rate as the command parameters: | |
| gtf 1920 1080 60 | |
| # In this case, the horizontal resolution is 1920px the | |
| # vertical resolution is 1080px & refresh-rate is 60Hz. |
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
| # | |
| # The following script will | |
| # - Create Linux bridge $BR_WAN, $BR_LAN | |
| # - Install IP addresses and basic routes | |
| # - Enable proxy_arp on $BR_WAN | |
| # - Enable ip_forward | |
| # - Enable MASQUERADE on $IF_INET | |
| # - $BR_LAN, $BR_WAN has to be allowed in ~/.usr/etc/qemu/bridge.conf | |
| # |
Original post : https://unix.stackexchange.com/a/310699
nmcli con add type wifi ifname wlan0 con-name Hostspot autoconnect yes ssid Hostspot
nmcli con modify Hostspot 802-11-wireless.mode ap 802-11-wireless.band bg ipv4.method shared
nmcli con modify Hostspot wifi-sec.key-mgmt wpa-psk
nmcli con modify Hostspot wifi-sec.psk "veryveryhardpassword1234"
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
| # Linux Interface Bonding on Wireless Link (OpenWrt / LEDE) | |
| # Attention: This was not tested yet. | |
| # Important: WLAN Interfaces must be AP - STA, it does not work in ad-hoc - infraestructure mode. | |
| # This "Adds" two interfaces in to one. In this sample we are using Wireless Interfaces | |
| # Should be equally configured on both ends, even the hash function for the distribution of data packets | |
| # Intallation of required packages: |
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
| # Path to your oh-my-zsh installation. | |
| export ZSH=/Users/dimitar.danailov/.oh-my-zsh | |
| # Set name of the theme to load. | |
| # Look in ~/.oh-my-zsh/themes/ | |
| # Optionally, if you set this to "random", it'll load a random theme each | |
| # time that oh-my-zsh is loaded. | |
| # ZSH_THEME="robbyrussell" | |
| ZSH_THEME="agnoster" |
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
| MAX_BUILDS = 10 // max builds to keep | |
| def jobs = Jenkins.instance.items; | |
| for (job in jobs) { | |
| println "Job: " + job.name | |
| try { | |
| if(job instanceof jenkins.branch.MultiBranchProject) { | |
| println "Multibranch" | |
| job = job.getJob("master") |
OlderNewer