set release 32
set build (fedpkg verrel)
set pkg (string split -m 2 -r - $build)[1]
set tag (koji add-sidetag f$release-build)
fedpkg clone $pkg
cd $pkg
fedpkg request-branch f$release --no-git-branch
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
| /** | |
| * @author Muhammad Ahsan Ayaz | |
| * Usage: | |
| * Go to https://www.facebook.com/friends/requests/ | |
| * Run the following code | |
| */ | |
| function removeFriendRequest({row, removeRequests, counter, timerDelay}) { | |
| if (removeRequests) { | |
| const removeButton = row.closest('a').querySelector('[aria-label="Remove"]:not([aria-disabled="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
| #include <stdio.h> | |
| /* | |
| * Calculates what Ada Lovelace labeled "B7", which today we would call the 8th | |
| * Bernoulli number. | |
| */ | |
| int main(int argc, char* argv[]) | |
| { | |
| // ------------------------------------------------------------------------ | |
| // Data |
If you haven’t worked with JavaScript in the last few years, these three points should give you enough knowledge to feel comfortable reading the React documentation:
- We define variables with
letandconststatements. For the purposes of the React documentation, you can consider them equivalent tovar. - We use the
classkeyword to define JavaScript classes. There are two things worth remembering about them. Firstly, unlike with objects, you don't need to put commas between class method definitions. Secondly, unlike many other languages with classes, in JavaScript the value ofthisin a method [depends on how it is called](https://developer.mozilla.org/en-US/docs/Web/Jav
The speed limit of Shahrah-e-Faisal is 60 km/hr. Write a program that, given a car's speed, tells whether it is Overspeeding or not.
Your task is to develop a mini-facebook. If the user is logged in, it should print Welcome, <user's name>, otherwise it should print Please log in to continue!
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/env nix-shell | |
| #!nix-shell -i bash -p bind.dnsutils -p traceroute -p curl | |
| # impure: needs ping | |
| #source: https://s3.amazonaws.com/aws-cloudfront-testing/CustomerTesting.html | |
| function _e { | |
| echo "> $@" | |
| eval "$@" 2>&1 | sed -e "s/^/ /" | |
| printf "Exit: %s\n\n\n" "$?" | |
| } |
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 ( | |
| "fmt" | |
| "os" | |
| "os/exec" | |
| "syscall" | |
| ) | |
| func main() { |
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
| gdisk /dev/sda # make 1 partition | |
| mkfs.vfat -n BOOT /dev/sda1 | |
| mkfs.btrfs -L root /dev/sdb | |
| mkfs.btrfs -L docker /dev/sdc | |
| mount -t btrfs -o noatime,discard,ssd,autodefrag,compress=lzo,space_cache /dev/sdb /mnt/ | |
| btrfs subvolume create /mnt/nixos | |
| umount /mnt/ | |
| mount -t btrfs -o noatime,discard,ssd,autodefrag,compress=lzo,space_cache,subvol=nixos /dev/sdb /mnt/ |