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 <stdio.h> | |
| #include <unistd.h> | |
| static const int OFFSETS[8][2] = { | |
| {-1, -2}, {-2, -1}, {-2, 1}, {-1, 2}, {1, 2}, {2, 1}, {2, -1}, {1, -2} | |
| }; | |
| static void print_board(int const board[8][8], long solution_num) { | |
| fputs("\033[10A\033[2K", stdout); | |
| if(solution_num != 0) { |
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 <cassert> | |
| #include <cstdio> | |
| #include <cstdlib> | |
| #include <cstring> | |
| #include <deque> | |
| #include <queue> | |
| #include <unistd.h> | |
| #include <utility> | |
| #include <vector> |
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
| #!/usr/local/bin/fontforge | |
| Open($1) | |
| Generate($1:r + ".otf") | |
| Generate($1:r + ".svg") | |
| Generate($1:r + ".woff") | |
| Generate($1:r + ".woff2") |
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
| /* | |
| TagCloud.pde | |
| Copyright (C) 2017 StarBrilliant <[email protected]> | |
| This program is free software: you can redistribute it and/or modify | |
| it under the terms of the GNU General Public License as published by | |
| the Free Software Foundation, either version 3 of the License, or | |
| (at your option) any later version. | |
| This program is distributed in the hope that it will be useful, |
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
| package main | |
| import ( | |
| "log" | |
| "github.com/miekg/dns" | |
| ) | |
| func main() { | |
| err := dns.ListenAndServe(":5533", "udp", dns.HandlerFunc(handler)) | |
| if err != nil { |
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/busybox sh | |
| # 1) Download a prebuilt BusyBox binary here: | |
| # https://busybox.net/downloads/binaries/ | |
| # | |
| # 2) Prepare your kernel | |
| # cp /boot/vmlinuz vmlinuz | |
| # | |
| # 3) Copy the files | |
| # install -Dm0755 busybox-x86_64 initramfs/bin/busybox |
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
| # BIRD 3.0 utility for DN42 related operations | |
| # To be used with: | |
| # include "bird-dn42-util.conf"; | |
| # in bird.conf main configuration file. | |
| function reset_origin (int transit_; int origin) | |
| { | |
| bgp_path.empty; | |
| bgp_path.prepend(origin); | |
| bgp_path.prepend(transit_); # "transit" is a keyword since BIRD 3.0 |
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 <X11/Xlib.h> | |
| #include <X11/Xutil.h> | |
| int main(int argc, char* argv[]) | |
| { | |
| Display* display = XOpenDisplay(NULL); | |
| XVisualInfo vinfo; | |
| XMatchVisualInfo(display, DefaultScreen(display), 32, TrueColor, &vinfo); |
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
| #!/usr/bin/gjs | |
| const GObject = imports.gi.GObject; | |
| const Gdk = imports.gi.Gdk; | |
| const Gtk = imports.gi.Gtk; | |
| const Lang = imports.lang; | |
| const MouseTest = new Lang.Class({ | |
| Name: "Mouse Test", |
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
| adb shell settings put global captive_portal_https_url https://connect.rom.miui.com/generate_204 | |
| adb shell settings put global captive_portal_http_url http://connect.rom.miui.com/generate_204 |