sudo apt-get update && sudo apt-get upgrade
sudo apt-get install -y apache2
Discover gists
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 {Dimensions, FlatList, View} from 'react-native'; | |
const screenWidth = Dimensions.get('window').width; | |
const numColumns = 2; | |
const gap = 5; | |
const availableSpace = screenWidth - (numColumns - 1) * gap; | |
const itemSize = availableSpace / numColumns; | |
const renderItem = ({item}) => { |
Consider supporting my work by purchasing the course this tutorial is a part of i.e. VSCode Power User →
- Make sure your
Local by FlyWheel
WordPress install is a custom install
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
############ WordPress #################### | |
# Disable logging for favicon and robots.txt | |
location = /favicon.ico { | |
try_files /favicon.ico @empty; | |
access_log off; | |
log_not_found off; | |
expires max; | |
} |
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
# Install dependencies | |
# | |
# * checkinstall: package the .deb | |
# * libpcre3, libpcre3-dev: required for HTTP rewrite module | |
# * zlib1g zlib1g-dbg zlib1g-dev: required for HTTP gzip module | |
apt-get install checkinstall libpcre3 libpcre3-dev zlib1g zlib1g-dbg zlib1g-dev && \ | |
mkdir -p ~/sources/ && \ | |
# Compile against OpenSSL to enable NPN |
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/bash | |
# The following commands should install openvpn3 successfully on Kali Linux as of 2023-10-11 | |
# Please check libssl1.1 version is newest at https://packages.debian.org/bullseye/amd64/libssl1.1 | |
# PM me if broken and I will update | |
# Thanks to the following for bug reports / additions | |
# asingh-lp, Pyr0technicien | |
# update packages | |
sudo apt update |
- Accept the quest under User Settings -> Gift Inventory.
- Join a vc to your alt or your friend.
- Stream any window
- Press
Ctrl
+Shift
+I
to open DevTools - Go to the
Console
tab - Paste this code and press enter:
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
--[[ | |
This script renders the enemy HP in screen + forces a difficulty/loop level | |
Made with the help of the followin apps & resources | |
bizhawk@Linux = monocomplete + libopenal1 | |
Game Genius Addresses: https://gamehacking.org/game/29281 | |
Contra Lua Sample Code: https://www.romhacking.net/games/137/ | |
HP of enemies in final level |
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
Node: | |
init: | |
self.data = data | |
self.next = None | |
self.prev = None | |
DoublyLinkedList: | |
init: | |
self.head = None | |
self.tail = None |
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
struct Node<T> { | |
} | |
struct DoublyLinkedList<T> { | |
} | |
impl<T> DoublyLinkedList<T> { | |
/// Removes the last element from a list and returns it, or None if it is empty. | |
/// This operation should compute in O(1) time. | |
fn pop_back(&mut self) -> Option<T> { |
NewerOlder