- ax, bx, cx, dx general purpose registers (16 bits)
ah: 8bit from front (a-HIGH)
al: 8bit from back (a-LOW)
- ip, sp, bp
ip: instruction pointer
sp, bp: stack stuff. get it?
typedef struct SevenSegmentCombination { | |
bool pinA; | |
bool pinB; | |
bool pinC; | |
bool pinD; | |
bool pinE; | |
bool pinF; | |
bool pinG; | |
} SevenSegmentCombination; |
typedef struct SevenSegmentCombination { | |
bool pinA; | |
bool pinB; | |
bool pinC; | |
bool pinD; | |
bool pinE; | |
bool pinF; | |
bool pinG; | |
} SevenSegmentCombination; |
#!/bin/bash | |
echo "The Mac Changer" | |
echo | |
echo "Copyright (c) Alex4386, Distributed under HRPL" | |
read -p "Type Interface you want to change: " interface | |
read -p "Type Mac Address you want to change: " mac | |
echo | |
echo Backing up your previous mac | |
ifconfig $interface | grep ether > mac_bak.txt | |
echo Backup is now available at mac_bak.txt |
# If you come from bash you might have to change your $PATH. | |
# export PATH=$HOME/bin:/usr/local/bin:$PATH | |
# whether you need verbose boot results: 0 to disable | |
VERBOSE=0 | |
# Verbose Terminal Start | |
if [ ! $VERBOSE = 0 ]; then | |
figlet Alex4386 | |
echo "Copyright (c) Alex4386" |
try { | |
let e; | |
let tweets; | |
} catch(e) { } | |
d = document; | |
tweets = d.getElementsByClassName("r-1j3t67a"); | |
for ( const tweet of tweets ) { | |
try { |
const data = []; | |
const characters = $0.getElementsByTagName("li") | |
for (const character of characters) { | |
const charName = character.getElementsByTagName("a")[0].innerText; | |
console.log(charName); | |
data.push(charName); | |
} |
WAY MORE UP-TO-DATE GIST (and includes some setup stuff that I forgot to document): https://gist.github.com/sarimarton/471e9ff8046cc746f6ecb8340f942647
Current Development for Building Libre-version of CrossOver: https://github.com/GabLeRoux/macos-crossover-cloud-build.
For Latest Discussions: https://github.com/GabLeRoux/macos-crossover-cloud-build/issues.
This version of gist is outdated since it was written while I was compiling CrossOver v19. and seems to be there are some breaking changes in v19.1+ and 20. Also, I think I missed some required libraries/stub files that was required in build (that I previously installed beforehand). Oops.
#!/bin/bash | |
mkdir ~/.escape | |
echo "μλ ν κ³μΈμ μ¬λ¬λΆ" > ~/.escape/msg.txt | |
echo "μ λ μ΄ μΈμ λͺ¨λ κ΅΄λ μ μλ°μ λ²μ΄λμ§κ³ " >> ~/.escape/msg.txt | |
echo "μ ν볡μ μ°Ύμ λ λ©λλ€" >> ~/.escape/msg.txt | |
echo " " >> ~/.escape/msg.txt | |
echo "μ¬λ¬λΆλ ν볡νμΈμ~" >> ~/.escape/msg.txt | |
cat ~/.escape/msg.txt | wall |
function isSorted(a) { | |
for (let i = 0; i < a.length - 1; i++) { | |
if (a[i] > a[i+1]) return false; | |
} | |
return true; | |
} | |
function bogoSort(a) { | |
while (!isSorted(a)) { | |
a.sort(() => Math.random() - 0.5); |