- Check if your network adapter is recognized : lspci -vvnn | grep 14e4
- Then go read the link https://help.ubuntu.com/community/WifiDocs/Driver/bcm43xx#STA_-_Internet_access
- In case you want to use the windows driver : https://help.ubuntu.com/community/WifiDocs/Driver/Ndiswrapper
View bcm4352-wifi-ac.md
View global.d.ts
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
declare module "*.mdx" { | |
let MDXComponent: (props: any) => JSX.Element; | |
export default MDXComponent; | |
export const frontMatter: FrontMatter[]; | |
} |
View countries.sql
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
CREATE SEQUENCE country_seq; | |
CREATE TABLE IF NOT EXISTS country ( | |
id int NOT NULL DEFAULT NEXTVAL ('country_seq'), | |
iso char(2) NOT NULL, | |
name varchar(80) NOT NULL, | |
nicename varchar(80) NOT NULL, | |
iso3 char(3) DEFAULT NULL, | |
numcode smallint DEFAULT NULL, | |
phonecode int NOT NULL, |
View amazon.md
Prologue
I wrote this answer on stackexchange, here: https://stackoverflow.com/posts/12597919/
It was wrongly deleted for containing "proprietary information" years later. I think that's bullshit so I am posting it here. Come at me.
The Question
Amazon is a SOA system with 100s of services (or so says Amazon Chief Technology Officer Werner Vogels). How do they handle build and release?
View useTimedEvent.ts
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
// Usage: | |
// const Button = () => { | |
// const { completion, ...bind } = useTimedEvent(() => { fire(); }, { duration: 1000 }); | |
// return <button {...bind}>Button</button>; | |
// }; | |
import { useEffect, useRef, useState } from "react"; | |
const useTimedEvent = ( | |
callback: (() => void) | (() => Promise<void>), |
View flushdns.bat
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
netsh winsock reset | |
ipconfig /release | |
netsh int ip reset | |
ipconfig /flushdns | |
ipconfig /renew |
View useStatusBarHeight.ts
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 { useEffect, useState } from "react"; | |
import { | |
NativeEventEmitter, | |
NativeModules, | |
Platform, | |
StatusBar, | |
} from "react-native"; | |
const { StatusBarManager } = NativeModules; |
View Uninstall-pkg.md
Mac Uninstall pkg Manually
- using
pkgutil
# list all your installed packages
pkgutil --pkgs
# show your package info
pkgutil --pkg-info
View next.config.js
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
const Webpackbar = require('webpackbar') | |
module.exports = { | |
webpack: (config, { isServer }) => { | |
config.plugins.push(new Webpackbar({ name: isServer ? 'server' : 'client' })) | |
return config | |
} | |
} |
View lodash-webpack-plugin+0.11.5.patch
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
diff --git a/node_modules/lodash-webpack-plugin/lib/index.js b/node_modules/lodash-webpack-plugin/lib/index.js | |
index d791223..2aca193 100644 | |
--- a/node_modules/lodash-webpack-plugin/lib/index.js | |
+++ b/node_modules/lodash-webpack-plugin/lib/index.js | |
@@ -84,13 +84,17 @@ function () { | |
/* Webpack >= 4 */ | |
if (compiler.hooks) { | |
+ const webpackVersion = parseInt(require('webpack/package.json').version, 10) | |
+ |
NewerOlder