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/sh | |
for fname in *.c *.h *.ld *.py Makefile README.md | |
do | |
grep -L "SPDX-License-Identifier: Apache-2.0" $fname | |
if [ $? -ne 0 ] | |
then | |
echo "LICENSE in $fname is not NOK. Run 'make fixlicenses'." | |
exit 1 | |
fi |
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
sed 's/archive.ubuntu.com/mirror.init7.net/g' /etc/apt/sources.list | sed 's/security.ubuntu.com/mirror.init7.net/g' > /tmp/sources.list |
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
# generate actual sources.list with sed "s/DIST/`lsb_release -c -s`/g" sources.list.init7.template | |
# main | |
deb http://mirror.init7.net/ubuntu/ DIST main restricted | |
deb-src http://mirror.init7.net/ubuntu/ DIST main restricted | |
deb http://mirror.init7.net/ubuntu/ DIST-updates main restricted | |
deb-src http://mirror.init7.net/ubuntu/ DIST-updates main restricted | |
deb http://mirror.init7.net/ubuntu/ DIST-security main restricted | |
# universe |
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
arp -na | grep -i "b8:27:eb" | |
arp -na | grep -i "dc:a6:32" |
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
wget -O ~/.vimrc https://gist.githubusercontent.com/metebalci/b7f033056ea919608672292cca7ab325/raw | |
mkdir -p ~/.vim/colors | |
mkdir -p ~/.vim/autoload | |
wget -O ~/.vim/colors/sonokai.vim https://raw.githubusercontent.com/sainnhe/sonokai/master/colors/sonokai.vim | |
wget -O ~/.vim/autoload/sonokai.vim https://raw.githubusercontent.com/sainnhe/sonokai/master/autoload/sonokai.vim |
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
import java.io.Serializable; | |
import java.io.ByteArrayOutputStream; | |
import java.io.ByteArrayInputStream; | |
import java.io.ObjectOutputStream; | |
import java.io.ObjectInputStream; | |
import java.io.ObjectInputFilter; | |
class JEP290 implements Serializable { | |
public static class Dummy implements Serializable { |
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
import dns | |
import dns.message | |
import dns.name | |
import dns.query | |
import dns.rdatatype | |
ns = "8.8.8.8" | |
q = dns.message.make_query( | |
dns.name.from_text("www.metebalci.com"), |
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
import dns | |
import dns.message | |
import dns.name | |
import dns.query | |
import dns.rdatatype | |
# name server we are sending the query | |
# google public dns | |
ns = "8.8.8.8" |
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
import java.util.Arrays; | |
public class JEP323 { | |
public static void main(String[] args) { | |
var xs = new int[]{3, 2, 6, 4, 8, 9}; | |
int x = Arrays.stream(xs).filter((var a) -> a < 5).sum(); | |
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
import java.lang.reflect.Field; | |
public class JEP181 { | |
public static class Nest1 { | |
private int varNest1; | |
public void f() throws Exception { | |
NewerOlder